Changeset 2282 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 07/17/03 08:06:40 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfilter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc
r2206 r2282 30 30 // This is a class to evaluate basic cuts 31 31 // 32 // WHAT ARE THE BASIC CUTS?33 //34 32 // to be called after the calibration (when the number of photons is 35 33 // available for all pixels) 36 34 // 35 // The basic cuts are : 36 // 37 // remove bad runs 38 // thetamin < theta < thetamax 39 // software trigger fullfilled (with minimum no.of photons = minphotons) 40 // 41 // 37 42 ///////////////////////////////////////////////////////////////////////////// 38 43 … … 44 49 45 50 #include "MCerPhotEvt.h" 46 //nclude "MRawRunHeader.h"51 #include "MRawRunHeader.h" 47 52 48 53 #include "MGeomPix.h" … … 95 100 Int_t MFCT1SelBasic::PreProcess(MParList *pList) 96 101 { 97 /*98 102 fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 99 103 if (!fRawRun) … … 102 106 return kFALSE; 103 107 } 104 */105 108 106 109 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); … … 148 151 // Evaluate basic cuts 149 152 // 150 // if cuts are fulfilled: fResult = kTRUE;151 // if they are not fullfilled: fResult = kFALSE;153 // bad events : fResult = kTRUE; 154 // good events : fResult = kFALSE; 152 155 // 153 156 Int_t MFCT1SelBasic::Process() … … 157 160 fResult = kFALSE; 158 161 162 // remove bad runs for MC gammas 163 if (fMcEvt->GetEnergy() == 0.0 && fMcEvt->GetImpact() == 0.0) 164 { 165 if (fRawRun->GetRunNumber() == 601 || 166 fRawRun->GetRunNumber() == 613 || 167 fRawRun->GetRunNumber() == 614 ) 168 return Set(1); 169 } 170 159 171 if (theta<fThetaMin) 160 return Set( 1);172 return Set(2); 161 173 162 174 if (theta>fThetaMax) 163 return Set( 2);175 return Set(3); 164 176 165 177 if (!SwTrigger()) 166 return Set( 3);178 return Set(4); 167 179 168 180 fCut[0]++; … … 234 246 *fLog << GetDescriptor() << " execution statistics:" << endl; 235 247 *fLog << dec << setfill(' '); 248 236 249 *fLog << " " << setw(7) << fCut[1] << " (" << setw(3) ; 237 250 *fLog << (int)(fCut[1]*100/GetNumExecutions()) ; 238 *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin<< endl;251 *fLog << "%) Evts skipped due to: bad run " << endl; 239 252 240 253 *fLog << " " << setw(7) << fCut[2] << " (" << setw(3) ; 241 254 *fLog << (int)(fCut[2]*100/GetNumExecutions()) ; 242 *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax<< endl;255 *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin << endl; 243 256 244 257 *fLog << " " << setw(7) << fCut[3] << " (" << setw(3) ; 245 258 *fLog << (int)(fCut[3]*100/GetNumExecutions()) ; 259 *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl; 260 261 *fLog << " " << setw(7) << fCut[4] << " (" << setw(3) ; 262 *fLog << (int)(fCut[4]*100/GetNumExecutions()) ; 246 263 *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ; 247 264 *fLog << " (with fMinPhotons = " << fMinPhotons << ")" << endl; -
trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.h
r2206 r2282 18 18 class MCerPhotEvt; 19 19 class MPedestalCam; 20 //class MRawRunHeader;20 class MRawRunHeader; 21 21 22 22 class MFCT1SelBasic : public MFilter … … 27 27 const MCerPhotEvt *fEvt; // Cerenkov Photon Event 28 28 //const MPedestalCam *fPed; // Pedestal information 29 //const MRawRunHeader *fRawRun;29 const MRawRunHeader *fRawRun; 30 30 31 31 Float_t fMinPhotons; … … 33 33 Float_t fThetaMax; 34 34 35 Int_t fCut[ 4];35 Int_t fCut[5]; 36 36 37 37 Bool_t fResult;
Note:
See TracChangeset
for help on using the changeset viewer.