Changeset 1982 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 04/22/03 17:33:59 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfilter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc
r1921 r1982 46 46 #include "MMcEvt.hxx" 47 47 #include "MGeomCam.h" 48 #include "MGeomCamCT1.h" 48 49 #include "MGeomPix.h" 49 50 #include "MHadronness.h" … … 68 69 fHadronnessName = "MHadronness"; 69 70 71 MGeomCamCT1 camct1; 72 fMm2Deg = camct1.GetConvMm2Deg(); 73 70 74 // default values of cuts 71 SetCuts(1.0, 100.0 );75 SetCuts(1.0, 100.0, 10.); 72 76 } 73 77 … … 77 81 // 78 82 // 79 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax )83 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax) 80 84 { 81 85 fHadronnessMax = hadmax; 82 fAlphaMax = alphamax; 86 fAlphaMax = alphamax; 87 fDistMax = distmax; 83 88 84 89 *fLog << inf << "MFCT1SelFinal cut values : fHadronnessMax, fAlphaMax = " 85 << fHadronnessMax << ", " << fAlphaMax << endl; 90 << fHadronnessMax << ", " << fAlphaMax << ", fDistMax = " << fDistMax 91 << endl; 86 92 } 87 93 … … 150 156 { 151 157 rc = 2; 158 fResult = kTRUE; 159 } 160 161 else if ( fMm2Deg*fHilSrc->GetDist() > fDistMax ) 162 { 163 rc = 3; 152 164 fResult = kTRUE; 153 165 } … … 180 192 << " [degrees]" << endl; 181 193 194 *fLog << " " << setw(7) << fCut[3] << " (" << setw(3) 195 << (int)(fCut[3]*100/GetNumExecutions()) 196 << "%) Evts skipped due to: DIST > " << fDistMax 197 << " [degrees]" << endl; 198 182 199 *fLog << " " << fCut[0] << " (" 183 200 << (int)(fCut[0]*100/GetNumExecutions()) -
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.h
r1947 r1982 32 32 33 33 Double_t fMm2Deg; // conversion mm to degrees in camera 34 Int_t fCut[ 3];34 Int_t fCut[4]; 35 35 TString fHilName; 36 36 TString fHilSrcName; … … 39 39 Float_t fHadronnessMax; 40 40 Float_t fAlphaMax; 41 Float_t fDistMax; 41 42 42 43 Bool_t fResult; … … 54 55 Bool_t PostProcess(); 55 56 56 void SetCuts(Float_t hadmax, Float_t alphamax );57 void SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax); 57 58 58 59 ClassDef(MFCT1SelFinal, 0) // Class to evaluate final cuts
Note:
See TracChangeset
for help on using the changeset viewer.