Changeset 2979
- Timestamp:
- 01/30/04 10:49:33 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2974 r2979 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/01/30: Thomas Bretz 7 8 * mbase/MDirIter.h: 9 - added GetNumEntries 10 11 * mhist/MHEvent.cc: 12 - added a dynamic_cast from MParContainer to MCamEvent to get the 13 correct pointer to the correct base-class. 14 15 16 6 17 2004/01/30: Markus Gaug 7 18 … … 12 23 - modified GetPixelContent 13 24 14 * manalysis/MPedestalCam.cc 15 * manalysis/MPedCalcPedRun.cc 25 * manalysis/MPedestalCam.cc, manalysis/MPedCalcPedRun.cc: 16 26 - include storage of number of used FADC slices to compare later 17 27 the pedestal per slice ( and sigma per slice_ … … 32 42 and displays of errors, correction for different FADC slice 33 43 number) 44 34 45 35 46 -
trunk/MagicSoft/Mars/mbase/MDirIter.h
r2296 r2979 59 59 60 60 void SetFilter(const char *f="") { fFilter = f; } 61 UInt_t GetNumEntries() const 62 { 63 UInt_t n = 0; 64 MDirIter Next(*this); 65 while (!Next().IsNull()) n++; 66 return n; 67 } 61 68 62 69 void Print(const Option_t *o="") const; -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r2826 r2979 170 170 return kFALSE; 171 171 172 const MCamEvent *event = dynamic_cast<const MCamEvent*>(par); 173 if (!event) 174 { 175 *fLog << err << par->GetDescriptor() << " doesn't inherit from MCamEvent... abort." << endl; 176 return kFALSE; 177 } 178 172 179 if (fRawEvtData) 173 180 fRawEvtData->Copy(*fClone); … … 177 184 case kEvtSignal: 178 185 case kEvtPedestal: 179 fHist->SetCamContent(* (MCamEvent*)par, 0);186 fHist->SetCamContent(*event, 0); 180 187 break; 181 188 case kEvtPedestalRMS: 182 fHist->SetCamContent(* (MCamEvent*)par, 1);189 fHist->SetCamContent(*event, 1); 183 190 break; 184 191 case kEvtRelativeSignal: 185 fHist->SetCamContent(* (MCamEvent*)par, 0);192 fHist->SetCamContent(*event, 0); 186 193 break; 187 194 case kEvtCleaningLevels: … … 190 197 lvl[0] = fImgCleanStd->GetCleanLvl2(); 191 198 lvl[1] = fImgCleanStd->GetCleanLvl1(); 192 fHist->SetCamContent(* (MCamEvent*)par, 0);199 fHist->SetCamContent(*event, 0); 193 200 fHist->SetLevels(lvl); 194 201 } 195 202 break; 196 203 case kEvtIdxMax: 197 fHist->SetCamContent(* (MCamEvent*)par, 5);204 fHist->SetCamContent(*event, 5); 198 205 break; 199 206 case kEvtArrTime: 200 fHist->SetCamContent(* (MCamEvent*)par, 0);207 fHist->SetCamContent(*event, 0); 201 208 break; 202 209 }
Note:
See TracChangeset
for help on using the changeset viewer.