Changeset 2487 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 11/07/03 18:50:44 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2466 r2487 269 269 270 270 TH1F *histhi = graphhi->GetHistogram(); 271 271 histhi->SetMinimum(0); 272 histhi->SetMaximum(255); 273 272 274 histhi->SetXTitle("Time/FADC Slices"); 273 275 histhi->SetYTitle("Signal/FADC Units"); … … 302 304 303 305 TH1F *histh = new TH1F(name, "FADC Samples", nh, -0.5, nh-.5); 306 histh->SetMinimum(0); 307 histh->SetMaximum(255); 304 308 histh->SetXTitle("Time [FADC Slices]"); 305 309 histh->SetYTitle("Signal [FADC Units]"); -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2404 r2487 57 57 ClassImp(MRawEvtPixelIter); 58 58 59 using namespace std; 60 59 61 MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat) 60 62 { … … 92 94 // 93 95 if (fNumLoGainEntry != fData->fLoGainPixId->GetSize()) 94 if ( *fHiGainId == *fLoGainId)96 if (HasLoGain()) 95 97 { 96 98 // … … 133 135 // 134 136 fHiGainId = fData->fHiGainPixId->GetArray()-1; 135 fLoGainId = fData->fLoGainPixId->GetArray() -1;137 fLoGainId = fData->fLoGainPixId->GetArray(); 136 138 fHiGainPos = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples; 137 139 fLoGainPos = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples; 140 141 // 142 // In case fLoGainPixId.GetSize()=0 some root versions seems to 143 // initialize the array with NULL. This makes both cases work. 144 // 145 if (fLoGainId) 146 fLoGainId -= 1; 138 147 } 139 148 -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r2404 r2487 91 91 // return kTRUE the lo gains exist for the actual pixel, else return kFALSE 92 92 // 93 return *fHiGainId==*fLoGainId;93 return fLoGainId && *fHiGainId==*fLoGainId; 94 94 } 95 95
Note:
See TracChangeset
for help on using the changeset viewer.