Ignore:
Timestamp:
01/30/04 20:33:42 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2972 r2994  
    213213
    214214    fArrivalTime  = (MArrivalTime*)pList->FindObject("MArrivalTime");
    215 
    216     if (!fArrivalTime)
    217       CLRBIT(fFlags,kUseTimes);
    218215
    219216    fEvtTime      = (MTime*)pList->FindObject("MTime");
     
    458455
    459456      if (TESTBIT(fFlags,kUseTimes))
    460         mtime = (*fArrivalTime)[pixid];
     457        {
     458          //
     459          // first, have a look in MArrivalTime,
     460          // otherwise search the position of maximum bin
     461          // in MRawEvtData
     462          //
     463          if (fArrivalTime)
     464            mtime = (*fArrivalTime)[pixid];
     465          else
     466            if (sig.IsLoGainUsed())
     467              fRawEvt->GetPixelContent(mtime, pixid, NULL, 4);
     468            else
     469              fRawEvt->GetPixelContent(mtime, pixid, NULL, 3);
     470        }
    461471     
    462472      switch(pixid)
Note: See TracChangeset for help on using the changeset viewer.