Ignore:
Timestamp:
01/16/05 17:31:49 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc

    r5851 r5858  
    8181
    8282#include "MRawRunHeader.h"
    83 #include "MTriggerPattern.h"
    8483
    8584ClassImp(MHCalibrationCam);
     
    121120       fColor(MCalibrationCam::kNONE), fIntensBad(NULL),
    122121       fBadPixels(NULL), fIntensCam(NULL), fCam(NULL), fGeom(NULL),
    123        fRunHeader(NULL), fTrigPattern(NULL), fInterlacedFlags(0),
    124        fMaskInterlaced(0)
     122       fRunHeader(NULL)
    125123{
    126124
     
    151149    SetOscillations(kTRUE);
    152150    SetSizeCheck   (kTRUE);
    153     SetInterlaced  (kFALSE);
    154151}
    155152
     
    515512  }
    516513
    517   if (IsInterlaced())
    518     {
    519       fTrigPattern = (MTriggerPattern*)pList->FindObject("MTriggerPattern");
    520       if (!fTrigPattern)
    521         {
    522           *fLog << err << "MTriggerPattern not found... abort." << endl;
    523           return kFALSE;
    524         }
    525       if (IsInterlacedTypePed())
    526         fMaskInterlaced |= MTriggerPattern::kPedestal;
    527       if (IsInterlacedTypeCal())
    528         fMaskInterlaced |= MTriggerPattern::kCalibration;
    529       if (IsInterlacedTypePin())
    530         fMaskInterlaced |= MTriggerPattern::kPinDiode;
    531     }
    532  
    533514  return SetupHists(pList);
    534515}
     
    863844{
    864845
    865   if (IsInterlaced())
    866     // check whether one of the bits in fMaskInterlaced is set in the trigger pattern
    867     if (!(fTrigPattern->GetPrescaled() & fMaskInterlaced))
    868       return kTRUE;
    869 
    870846  if (!IsSizeCheck())
    871847    return FillHists(par,w);
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h

    r5851 r5858  
    2929class MGeomCam;
    3030class MRawRunHeader;
    31 class MTriggerPattern;
    3231class MCalibrationIntensityCam;
    3332class MCalibrationCam;
     
    8988  MGeomCam         *fGeom;                //! Camera geometry
    9089  MRawRunHeader    *fRunHeader;           //! Run Header
    91   MTriggerPattern  *fTrigPattern;         //! Trigger Pattern
    9290 
    9391  TOrdCollection *fHiGainArray;           // Array of calibration pixels, one per pixel
     
    9795
    9896  enum { kDebug, kLoGain, kAverageing,
    99          kOscillations, kSizeCheck,
    100          kInterlaced  };                  // Possible global flags
     97         kOscillations, kSizeCheck };     // Possible global flags
    10198   
    10299  Byte_t  fFlags;                         // Bit-field to hold the global flags
    103  
    104   enum InterlacedMode_t
    105     {
    106       kInterlacedPed = BIT(0),
    107       kInterlacedCal = BIT(1),
    108       kInterlacedPin = BIT(2)
    109     };                                    // Possible interlaced event types to be treated
    110 
    111   Byte_t  fInterlacedFlags;               // Bit-field to hold the interlaced flags
    112   Byte_t  fMaskInterlaced;                // Mask to define the interlaced event types
    113100 
    114101  virtual Bool_t SetupHists ( const MParList *pList ) { return kTRUE; }
     
    157144  Bool_t IsOscillations() const  { return TESTBIT(fFlags,kOscillations); }
    158145  Bool_t IsSizeCheck   () const  { return TESTBIT(fFlags,kSizeCheck);    }
    159   Bool_t IsInterlaced  () const  { return TESTBIT(fFlags,kInterlaced);   }
    160 
    161   Bool_t IsInterlacedTypePed() const { return TESTBIT(fInterlacedFlags,kInterlacedPed); }
    162   Bool_t IsInterlacedTypeCal() const { return TESTBIT(fInterlacedFlags,kInterlacedCal); }
    163   Bool_t IsInterlacedTypePin() const { return TESTBIT(fInterlacedFlags,kInterlacedPin); }
    164  
     146
    165147  void   Remove  ( TOrdCollection *col );
    166148 
     
    222204                                                                ? SETBIT(fFlags,kSizeCheck)
    223205                                                                : CLRBIT(fFlags,kSizeCheck); }
    224   void SetInterlaced              ( const Bool_t b=kTRUE ) { b
    225                                                                 ? SETBIT(fFlags,kInterlaced)
    226                                                                 : CLRBIT(fFlags,kInterlaced); }
    227 
    228   void SetInterlacedTypePed() { SETBIT(fInterlacedFlags,kInterlacedPed); }
    229   void SetInterlacedTypeCal() { SETBIT(fInterlacedFlags,kInterlacedCal); }
    230   void SetInterlacedTypePin() { SETBIT(fInterlacedFlags,kInterlacedPin); }
    231 
    232206  void SetHistName  ( const char *name )  { fHistName  = name;  }
    233207  void SetHistTitle ( const char *name )  { fHistTitle = name;  }
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc

    r5849 r5858  
    282282
    283283  InitHiGainArrays(npixels,nareas,nsectors);
    284   if (IsLoGain())
    285     InitLoGainArrays(npixels,nareas,nsectors);
     284  InitLoGainArrays(npixels,nareas,nsectors);
    286285
    287286  fSumareahi  .Set(nareas);
Note: See TracChangeset for help on using the changeset viewer.