Ignore:
Timestamp:
06/03/05 18:02:36 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r7126 r7130  
    242242  // is not the first anymore
    243243  //
    244   if (fRunHeader->GetRunType()==MRawRunHeader::kRTPedestal)
    245     {
     244  switch (fRunHeader->GetRunType())
     245  {
     246  case MRawRunHeader::kRTPedestal:
     247  case MRawRunHeader::kRTMonteCarlo:
    246248      fIsFirstPedRun = kFALSE;
    247249      fIsNotPedRun   = kFALSE;
    248250      return kTRUE;
    249     }
    250  
    251   if (fRunHeader->GetRunType()==MRawRunHeader::kRTCalibration)
    252     {
    253       TString proj(fRunHeader->GetProjectName());
    254       proj.ToLower();
    255      
    256       // test if a continuous light run has been declared as calibration...
    257       if (proj.Contains("cl"))
    258         {
    259           fIsFirstPedRun = kFALSE;
    260           fIsNotPedRun   = kFALSE;
    261           return kTRUE;
    262         }
    263     }
    264  
    265 
     251 
     252  case MRawRunHeader::kRTCalibration:
     253      {
     254          TString proj(fRunHeader->GetProjectName());
     255          proj.ToLower();
     256
     257          // test if a continuous light run has been declared as calibration...
     258          if (proj.Contains("cl"))
     259          {
     260              fIsFirstPedRun = kFALSE;
     261              fIsNotPedRun   = kFALSE;
     262              return kTRUE;
     263          }
     264      }
     265  }
    266266
    267267  fIsNotPedRun = kTRUE;
     268
    268269  //
    269270  // If this is the first call to ReInit (before reading the first file)
     
    464465}
    465466
    466 //-------------------------------------------------------------
     467//-----------------------------------------------------------------------
    467468//
    468469// Return if the pedestal bit was set from the calibration trigger box.
     
    473474Bool_t MPedCalcPedRun::IsPedBitSet()
    474475{
     476    if (fRunHeader->GetRunNumber()<gkFirstRunWithFinalBits)
     477        return kFALSE;
     478
    475479    if (!fTrigPattern)
    476         return kFALSE;
    477  
    478     if (fRunHeader->GetRunNumber() < gkFirstRunWithFinalBits)
    479480        return kFALSE;
    480481
Note: See TracChangeset for help on using the changeset viewer.