Changeset 5858 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 01/16/05 17:31:49 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r5851 r5858 81 81 82 82 #include "MRawRunHeader.h" 83 #include "MTriggerPattern.h"84 83 85 84 ClassImp(MHCalibrationCam); … … 121 120 fColor(MCalibrationCam::kNONE), fIntensBad(NULL), 122 121 fBadPixels(NULL), fIntensCam(NULL), fCam(NULL), fGeom(NULL), 123 fRunHeader(NULL), fTrigPattern(NULL), fInterlacedFlags(0), 124 fMaskInterlaced(0) 122 fRunHeader(NULL) 125 123 { 126 124 … … 151 149 SetOscillations(kTRUE); 152 150 SetSizeCheck (kTRUE); 153 SetInterlaced (kFALSE);154 151 } 155 152 … … 515 512 } 516 513 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 533 514 return SetupHists(pList); 534 515 } … … 863 844 { 864 845 865 if (IsInterlaced())866 // check whether one of the bits in fMaskInterlaced is set in the trigger pattern867 if (!(fTrigPattern->GetPrescaled() & fMaskInterlaced))868 return kTRUE;869 870 846 if (!IsSizeCheck()) 871 847 return FillHists(par,w); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r5851 r5858 29 29 class MGeomCam; 30 30 class MRawRunHeader; 31 class MTriggerPattern;32 31 class MCalibrationIntensityCam; 33 32 class MCalibrationCam; … … 89 88 MGeomCam *fGeom; //! Camera geometry 90 89 MRawRunHeader *fRunHeader; //! Run Header 91 MTriggerPattern *fTrigPattern; //! Trigger Pattern92 90 93 91 TOrdCollection *fHiGainArray; // Array of calibration pixels, one per pixel … … 97 95 98 96 enum { kDebug, kLoGain, kAverageing, 99 kOscillations, kSizeCheck, 100 kInterlaced }; // Possible global flags 97 kOscillations, kSizeCheck }; // Possible global flags 101 98 102 99 Byte_t fFlags; // Bit-field to hold the global flags 103 104 enum InterlacedMode_t105 {106 kInterlacedPed = BIT(0),107 kInterlacedCal = BIT(1),108 kInterlacedPin = BIT(2)109 }; // Possible interlaced event types to be treated110 111 Byte_t fInterlacedFlags; // Bit-field to hold the interlaced flags112 Byte_t fMaskInterlaced; // Mask to define the interlaced event types113 100 114 101 virtual Bool_t SetupHists ( const MParList *pList ) { return kTRUE; } … … 157 144 Bool_t IsOscillations() const { return TESTBIT(fFlags,kOscillations); } 158 145 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 165 147 void Remove ( TOrdCollection *col ); 166 148 … … 222 204 ? SETBIT(fFlags,kSizeCheck) 223 205 : CLRBIT(fFlags,kSizeCheck); } 224 void SetInterlaced ( const Bool_t b=kTRUE ) { b225 ? 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 232 206 void SetHistName ( const char *name ) { fHistName = name; } 233 207 void SetHistTitle ( const char *name ) { fHistTitle = name; } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r5849 r5858 282 282 283 283 InitHiGainArrays(npixels,nareas,nsectors); 284 if (IsLoGain()) 285 InitLoGainArrays(npixels,nareas,nsectors); 284 InitLoGainArrays(npixels,nareas,nsectors); 286 285 287 286 fSumareahi .Set(nareas);
Note:
See TracChangeset
for help on using the changeset viewer.