Ignore:
Timestamp:
02/26/04 04:21:51 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3181 r3317  
    3939#include "MHCalibrationRelTimePix.h"
    4040
    41 #include "MArrivalTime.h"
     41#include "MArrivalTimeCam.h"
     42#include "MArrivalTimePix.h"
    4243
    4344ClassImp(MHCalibrationRelTimeCam);
     
    147148{
    148149
    149   MArrivalTime *arrtime = (MArrivalTime*)par;
     150  MArrivalTimeCam *arrtime = (MArrivalTimeCam*)par;
    150151  if (!arrtime)
    151152    {
     
    175176    }
    176177 
     178  const MArrivalTimePix &refpix = (*arrtime)[1];
     179  const Float_t reftime = refpix.IsLoGainUsed() ? refpix.GetArrivalTimeLoGain() : refpix.GetArrivalTimeHiGain();
     180
    177181  for (Int_t i=0; i<n; i++)
    178182    {
    179 
    180       const Float_t reltime = (*arrtime)[i] - (*arrtime)[1];
    181 
    182       MHCalibrationRelTimePix  &hist = (*this)[i];
    183       hist.FillHistAndArray(reltime);
     183        const MArrivalTimePix &pix = (*arrtime)[i];
     184        const Float_t time = pix.IsLoGainUsed() ? pix.GetArrivalTimeLoGain() : pix.GetArrivalTimeHiGain(); 
     185
     186        MHCalibrationRelTimePix  &hist = (*this)[i];
     187        hist.FillHistAndArray(time - reftime);
    184188    }
    185189 
Note: See TracChangeset for help on using the changeset viewer.