Changeset 6686 for trunk/MagicSoft


Ignore:
Timestamp:
02/28/05 18:26:20 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6685 r6686  
    356356      while (p < end)
    357357        {
    358           if (*p++ > max)
    359             maxpos = p-start-1;
     358          if (*p > max)
     359            {
     360              max = *p;
     361              maxpos = p-start-1;
     362            }
     363          p++;
    360364        }
    361365
     
    366370      while (p < end)
    367371        {
    368           if (*p++ > max)
    369             maxpos = p-start+pixel.GetNumHiGainSamples() - 1;
     372          if (*p > max)
     373            {
     374              max = *p;
     375              maxpos = p-start+pixel.GetNumHiGainSamples() - 1;
     376            }
     377          p++;
    370378        }
     379
     380      *fLog << err << (Int_t)max <<  "  " << maxpos << endl;
    371381
    372382      if ((Int_t)max < fLowerSignalLimit)
     
    376386      histhi.FillHist(time);
    377387       
     388      *fLog << inf << time << endl;
     389
    378390      const Int_t aidx   = (*fGeom)[i].GetAidx();
    379391      const Int_t sector = (*fGeom)[i].GetSector();
Note: See TracChangeset for help on using the changeset viewer.