Ignore:
Timestamp:
01/31/05 16:22:52 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r6074 r6155  
    590590
    591591  const MCalibrationCam::PulserColor_t col = fCalibPattern->GetPulserColor();
    592 
    593   if (col == fPulserColor)
     592  const Float_t strength = fCalibPattern->GetPulserStrength();
     593  const Float_t strdiff  = TMath::Abs(strength-fStrength);
     594
     595  if (col == fPulserColor && strdiff < 0.05 )
    594596    {
    595597      fNumProcessed++;
     
    630632 
    631633  fPulserColor = col;
     634  fStrength    = strength;
    632635
    633636  *fLog << inf << "Found new colour ... " << flush;
     
    642645    }
    643646
    644   *fLog << inf << " with strength: " << fCalibPattern->GetPulserStrength() << endl;
     647  *fLog << inf << " with strength: " << strength << endl;
    645648 
    646649  fHCam->SetColor(col);
Note: See TracChangeset for help on using the changeset viewer.