Changeset 2540 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/20/03 00:39:37 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2537 r2540  
    1212   * manalysis/MCalibrationCam.cc:
    1313     - function GetPixelContent enlarged
     14
     15   * manalysis/MCalibrationCalc:
     16     - function ReInit added like in MPedCalcPedRun
    1417
    1518
  • trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc

    r2525 r2540  
    123123//
    124124// The PreProcess searches for the following input containers:
    125 //  - MRawRunHeader
    126125//  - MRawEvtData
    127126//  - MPedestalCam
     
    139138    fOverFlow = 0;
    140139    fNrEvents = 0;
    141 
    142     fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    143     if (!fRunHeader)
    144     {
    145         *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
    146         return kFALSE;
    147     }
    148140
    149141    fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData");
     
    211203}
    212204
     205
     206// --------------------------------------------------------------------------
     207//
     208// The ReInit searches for the following input containers:
     209//  - MRawRunHeader
     210//
     211Bool_t MCalibrationCalc::ReInit(MParList *pList )
     212{
     213 
     214    fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     215    if (!fRunHeader)
     216    {
     217        *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
     218        return kFALSE;
     219    }
     220
     221    fNumHiGainSamples =  fRunHeader->GetNumSamplesHiGain();
     222    fNumLoGainSamples =  fRunHeader->GetNumSamplesLoGain();
     223 
     224    return kTRUE;
     225 
     226}
     227
     228
    213229// --------------------------------------------------------------------------
    214230//
     
    282298        // Assume pedestals per time slice ==> multiply with number of slices
    283299        //
    284         pedes *= (sat ? fRawEvt->GetNumLoGainSamples() : fRawEvt->GetNumHiGainSamples() );
     300        pedes *= (sat ? fNumLoGainSamples : fNumHiGainSamples );
    285301
    286302        Float_t rsum      = (float)sum - pedes;
  • trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.h

    r2525 r2540  
    3838  Int_t fOverFlow;                         // Number of events with saturated Low Gain
    3939
     40  Byte_t fNumHiGainSamples;
     41  Byte_t fNumLoGainSamples;
     42
    4043  Byte_t fFlags;                           // Flag for the fits used
    41  
     44   
     45
    4246  enum
    4347    {
     
    5559  PulserColor_t  fColor;
    5660 
     61  Bool_t ReInit(MParList *pList);
    5762  Int_t PreProcess(MParList *pList);
    5863  Int_t Process();
Note: See TracChangeset for help on using the changeset viewer.