Changeset 2265 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 07/06/03 21:02:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal2.cc
r2259 r2265 86 86 Int_t MCerPhotAnal2::PreProcess(MParList *pList) 87 87 { 88 fSkip = 0; 89 88 90 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 89 91 if (!fRunHeader) … … 149 151 if (ptr[i]==255) 150 152 sat++; 153 151 154 //if (sat>1) 152 155 // continue; … … 184 187 { 185 188 if (ptr[i]>250) 189 { 190 fSkip++; 186 191 return kCONTINUE; 192 } 187 193 if (i<max-fBefore || i>max+fAfter) 188 194 { … … 237 243 } 238 244 245 Int_t MCerPhotAnal2::PostProcess() 246 { 247 if (GetNumExecutions()==0 || fSkip==0) 248 return kTRUE; 249 250 *fLog << inf << endl; 251 *fLog << GetDescriptor() << " execution statistics:" << endl; 252 *fLog << dec << setfill(' '); 253 *fLog << " " << setw(7) << fSkip << " (" << setw(3) << (int)(fSkip*100/GetNumExecutions()) << "%) Evts skipped due to: lo gain saturated." << endl; 254 255 return kTRUE; 256 } -
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal2.h
r2251 r2265 22 22 class MCerPhotAnal2 : public MTask 23 23 { 24 private: 24 25 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera 25 26 MRawEvtData *fRawEvt; // raw event data (time slices) … … 30 31 Byte_t fAfter; 31 32 32 public: 33 MCerPhotAnal2(Byte_t b=2, Byte_t a=5, const char *name=NULL, const char *title=NULL); 33 Int_t fSkip; //! 34 34 35 35 Int_t PreProcess(MParList *pList); 36 36 Int_t Process(); 37 Int_t PostProcess(); 38 39 public: 40 MCerPhotAnal2(Byte_t b=2, Byte_t a=5, const char *name=NULL, const char *title=NULL); 37 41 38 42 ClassDef(MCerPhotAnal2, 0) // Task to calculate cerenkov photons from raw data
Note:
See TracChangeset
for help on using the changeset viewer.