Changeset 8367
- Timestamp:
- 03/04/07 15:35:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc
r8304 r8367 73 73 74 74 #include "MRawEvtData.h" 75 #include "MRawRunHeader.h" 75 76 #include "MRawEvtPixelIter.h" 76 77 … … 273 274 274 275 MRawEvtPixelIter pixel(fRawEvt); 275 276 276 277 fPINDiode->Clear(); 277 278 fSlices->Reset(); 278 279 279 280 pixel.Jump(fPINDiodeIdx); 280 281 281 282 Byte_t sat = 0; 282 283 283 Int_t higainsamples = pixel.GetNumHiGainSamples();284 Int_t logainsamples = pixel.GetNumLoGainSamples();285 284 const Int_t higainsamples = fRunHeader->GetNumSamplesHiGain(); 285 const Int_t logainsamples = fRunHeader->GetNumSamplesLoGain(); 286 286 287 const Bool_t higainabflag = pixel.HasABFlag(); 287 288 Byte_t *ptr = pixel.GetHiGainSamples()+fHiGainFirst; 288 289 Byte_t *end = ptr+higainsamples; 289 290 290 291 Int_t cnt=0; 291 292 292 293 Float_t max = 0.; 293 294 Int_t maxpos = 0; 294 295 295 296 while (ptr<end) 296 297 { 297 298 298 299 if (*ptr >= fSaturationLimit) 299 300 { … … 317 318 cnt = 0; 318 319 319 if ( pixel.HasLoGain()&& !sat)320 if (logainsamples>0 && !sat) 320 321 { 321 322 … … 323 324 end = ptr+logainsamples; 324 325 325 const Bool_t logainabflag = (higainabflag + pixel.GetNumHiGainSamples()) & 0x1;326 const Bool_t logainabflag = (higainabflag + higainsamples) & 0x1; 326 327 327 328 while (ptr<end)
Note:
See TracChangeset
for help on using the changeset viewer.