Ignore:
Timestamp:
10/23/06 13:27:21 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r7886 r8147  
    719719     
    720720      const Float_t sumhi = pix.GetExtractedSignalHiGain();
    721       const Bool_t  sathi = pix.IsHiGainSaturated();
     721      const Int_t   sathi = pix.IsHiGainSaturated() ? 1 : 0;
    722722
    723723      if (IsOscillations())
     
    742742        {
    743743          MHCalibrationChargePix &histlo = (MHCalibrationChargePix&)(*this)(i);
    744           const Float_t sumlo  = pix.GetExtractedSignalLoGain();
    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;
    746746         
    747747          if (IsOscillations())
     
    11301130    if (mean<lowerlimit)
    11311131    {
    1132         *fLog << warn << "Mean Arr.Time: "
     1132        *fLog << warn << hist.GetName() << ": Mean Arr.Time: "
    11331133            << 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;
    11361135        bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInFirstBin );
    11371136    }
     
    11391138    if (mean>upperlimit)
    11401139    {
    1141         *fLog << warn << "Mean Arr.Time: "
     1140        *fLog << warn << hist.GetName() << ": Mean Arr.Time: "
    11421141            << 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;
    11451143        bad.SetUncalibrated( MBadPixelsPix::kMeanTimeInLast2Bins );
    11461144    }
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r7430 r8147  
    414414      Byte_t *end   = start + pixel.GetNumHiGainSamples();
    415415      Byte_t *p     = start;
    416       Byte_t max    = 0;
     416      Byte_t *max   = start;
    417417      Int_t  maxpos = 0;
    418418
    419419      while (p < end)
    420420        {
    421           if ((*p > max) && (*p < fSaturationLimit))
     421          if (*p > *max)
    422422            {
    423               max = *p;
     423              max = p;
    424424              maxpos = p-start-1;
    425425            }
     
    433433      while (p < end)
    434434        {
    435           if ((*p > max) && (*p < fSaturationLimit))
     435          if (*p > *max)
    436436            {
    437               max = *p;
     437              max = p;
    438438              maxpos = p-start+pixel.GetNumHiGainSamples() - 1;
    439439            }
     
    441441        }
    442442
    443       if (max < fLowerSignalLimit)
     443      if (*max < fLowerSignalLimit || *max > fSaturationLimit)
    444444        continue;
    445445
Note: See TracChangeset for help on using the changeset viewer.