Changeset 2994


Ignore:
Timestamp:
01/30/04 20:33:42 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2993 r2994  
    102102       number)
    103103
    104 
     104   * manalysis/MExtractSignal.cc
     105     - not access to MArrivalTime any more. The same information is
     106       stored in MRawEvt->GetPixelContent(...)
     107
     108   * manalysis/MCalibrationCalc.cc
     109     - retrieve default arrival time from MRawEvt
    105110
    106111 2004/01/29: Abelardo Moralejo
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2958 r2994  
    4646#include "MExtractedSignalPix.h"
    4747
    48 #include "MArrivalTime.h"
    49 
    5048ClassImp(MExtractSignal);
    5149
     
    114112
    115113    fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));
     114
    116115    if (!fPedestals)
    117116    {
     
    120119    }
    121120
    122     fArrivalTime = (MArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime"));
    123     if (!fArrivalTime)
    124         return kFALSE;
    125    
    126121    return kTRUE;
    127122}
     
    206201
    207202        pix.SetGainSaturation(satHi, satHi, satLo);
    208 
    209         fArrivalTime->SetTime(pixid, satHi?midlo:midhi);
    210203
    211204      } /* while (pixel.Next()) */
  • 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.