Changeset 8147 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 10/23/06 13:27:21 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r7886 r8147 719 719 720 720 const Float_t sumhi = pix.GetExtractedSignalHiGain(); 721 const Bool_t sathi = pix.IsHiGainSaturated();721 const Int_t sathi = pix.IsHiGainSaturated() ? 1 : 0; 722 722 723 723 if (IsOscillations()) … … 742 742 { 743 743 MHCalibrationChargePix &histlo = (MHCalibrationChargePix&)(*this)(i); 744 const Float_t sumlo 745 const Int_t satlo = (Int_t)pix.GetNumLoGainSaturated();744 const Float_t sumlo = pix.GetExtractedSignalLoGain(); 745 const Int_t satlo = pix.IsLoGainSaturated() ? 1 : 0; 746 746 747 747 if (IsOscillations()) … … 1130 1130 if (mean<lowerlimit) 1131 1131 { 1132 *fLog << warn << "Mean Arr.Time: "1132 *fLog << warn << hist.GetName() << ": Mean Arr.Time: " 1133 1133 << Form("%4.1f < %4.1f, %3.1f", mean, TMath::Floor(first)+fTimeLowerLimit, fTimeLowerLimit) 1134 << " slices below " << Form("%2i", (Int_t)first) << " in " 1135 << hist.GetName() << endl; 1134 << " slices below " << Form("%2i", (Int_t)first) << endl; 1136 1135 bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInFirstBin ); 1137 1136 } … … 1139 1138 if (mean>upperlimit) 1140 1139 { 1141 *fLog << warn << "Mean Arr.Time: "1140 *fLog << warn << hist.GetName() << ": Mean Arr.Time: " 1142 1141 << Form("%4.1f > %4.1f, %3.1f", mean, TMath::Floor(last)-fTimeUpperLimit, fTimeUpperLimit) 1143 << " slices above " << Form("%2i", (Int_t)last) << " in " 1144 << hist.GetName() << endl; 1142 << " slices above " << Form("%2i", (Int_t)last) << endl; 1145 1143 bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInLast2Bins ); 1146 1144 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r7430 r8147 414 414 Byte_t *end = start + pixel.GetNumHiGainSamples(); 415 415 Byte_t *p = start; 416 Byte_t max = 0;416 Byte_t *max = start; 417 417 Int_t maxpos = 0; 418 418 419 419 while (p < end) 420 420 { 421 if ( (*p > max) && (*p < fSaturationLimit))421 if (*p > *max) 422 422 { 423 max = *p;423 max = p; 424 424 maxpos = p-start-1; 425 425 } … … 433 433 while (p < end) 434 434 { 435 if ( (*p > max) && (*p < fSaturationLimit))435 if (*p > *max) 436 436 { 437 max = *p;437 max = p; 438 438 maxpos = p-start+pixel.GetNumHiGainSamples() - 1; 439 439 } … … 441 441 } 442 442 443 if ( max < fLowerSignalLimit)443 if (*max < fLowerSignalLimit || *max > fSaturationLimit) 444 444 continue; 445 445
Note:
See TracChangeset
for help on using the changeset viewer.