Changeset 2942 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/28/04 13:43:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc
r2237 r2942 191 191 const UInt_t pixid = pixel.GetPixelId(); 192 192 193 //194 // sanity check (old MC files sometimes have pixids>577)195 //196 if (fPedestals && !fPedestals->CheckBounds(pixid))197 {198 *fLog << inf << "Pixel ID larger than camera... skipping event." << endl;199 return kCONTINUE;200 }201 202 193 fCerPhotEvt->AddPixel(pixid, nphot, sigmaped/2.236); 203 194 -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r2563 r2942 216 216 { 217 217 const UInt_t idx = pixel.GetPixelId(); 218 //219 // sanity check (old MC files sometimes have pixids>577)220 //221 if (!fPedestals->CheckBounds(idx))222 {223 *fLog << inf << "Pixel Index out of MPedestalCam bounds... skipping event." << endl;224 return kCONTINUE;225 }226 218 227 219 MPedestalPix &ped = (*fPedestals)[idx]; -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r2937 r2942 74 74 fArray->ExpandCreate(i); 75 75 } 76 77 // --------------------------------------------------------------------------78 //79 // Check if position i is inside bounds80 //81 Bool_t MPedestalCam::CheckBounds(Int_t i) const82 {83 return i < GetSize();84 }85 76 86 77 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.h
r2929 r2942 31 31 Float_t GetPedestalMax(const MGeomCam *cam) const; 32 32 33 Bool_t CheckBounds(Int_t i) const;34 35 33 void Print(Option_t *o="") const; 36 34
Note:
See TracChangeset
for help on using the changeset viewer.