- Timestamp:
- 01/11/05 12:02:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5801 r5802 31 31 32 32 * mhcalib/MHCalibrationCam.[h,cc] 33 - add possible flag 'kInterlaced' 33 - add possible flag 'kInterlaced': default: kFALSE (like before) 34 - added pointer to MRawEvtHeader to deny cosmics events in case 35 of 'interlaced' flag is set. No changes for 'normal' calibration 34 36 35 37 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r5791 r5802 81 81 82 82 #include "MRawRunHeader.h" 83 #include "MRawEvtHeader.h" 83 84 84 85 ClassImp(MHCalibrationCam); … … 113 114 //- SetOscillations(kTRUE); 114 115 //- SetSizeCheck (kTRUE); 116 //- SetInterlaced (kFALSE); 115 117 // 116 118 MHCalibrationCam::MHCalibrationCam(const char *name, const char *title) … … 118 120 fHistXTitle(gsHistXTitle),fHistYTitle(gsHistYTitle), 119 121 fColor(MCalibrationCam::kNONE), fIntensBad(NULL), 120 fBadPixels(NULL), fIntensCam(NULL), fCam(NULL), fGeom(NULL), fRunHeader(NULL) 122 fBadPixels(NULL), fIntensCam(NULL), fCam(NULL), fGeom(NULL), 123 fRunHeader(NULL), fEvtHeader(NULL) 121 124 { 122 125 … … 147 150 SetOscillations(kTRUE); 148 151 SetSizeCheck (kTRUE); 152 SetInterlaced (kFALSE); 149 153 } 150 154 … … 510 514 } 511 515 512 /* not needed -> Class is never used twice513 fHiGainArray->Delete();514 fLoGainArray->Delete();515 516 fAverageHiGainAreas->Delete();517 fAverageLoGainAreas->Delete();518 519 fAverageHiGainSectors->Delete();520 fAverageLoGainSectors->Delete();521 */516 fEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 517 if (!fEvtHeader) 518 { 519 if (IsInterlaced()) 520 { 521 *fLog << err << GetDescriptor() 522 << ": MRawEvtHeader not found... Cannot run interlaced calibration events." << endl; 523 return kFALSE; 524 } 525 } 522 526 523 527 return SetupHists(pList); … … 853 857 { 854 858 859 if (IsInterlaced()) 860 if (!(fEvtHeader->GetTriggerID() & BIT(1))) 861 return kTRUE; 862 855 863 if (!IsSizeCheck()) 856 864 return FillHists(par,w); … … 1439 1447 return rc; 1440 1448 } 1449 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r5685 r5802 29 29 class MGeomCam; 30 30 class MRawRunHeader; 31 class MRawEvtHeader; 31 32 class MCalibrationIntensityCam; 32 33 class MCalibrationCam; … … 88 89 MGeomCam *fGeom; //! Camera geometry 89 90 MRawRunHeader *fRunHeader; //! Run Header 91 MRawEvtHeader *fEvtHeader; //! Evt Header 90 92 91 93 TOrdCollection *fHiGainArray; // Array of calibration pixels, one per pixel … … 95 97 96 98 enum { kDebug, kLoGain, kAverageing, 97 kOscillations, kSizeCheck }; // Possible flags 99 kOscillations, kSizeCheck, 100 kInterlaced }; // Possible flags 98 101 99 102 Byte_t fFlags; // Bit-field to hold the flags … … 144 147 Bool_t IsOscillations() const { return TESTBIT(fFlags,kOscillations); } 145 148 Bool_t IsSizeCheck () const { return TESTBIT(fFlags,kSizeCheck); } 149 Bool_t IsInterlaced () const { return TESTBIT(fFlags,kInterlaced); } 146 150 147 151 void Remove(TOrdCollection *col); … … 204 208 ? SETBIT(fFlags,kSizeCheck) 205 209 : CLRBIT(fFlags,kSizeCheck); } 210 void SetInterlaced ( const Bool_t b=kTRUE ) { b 211 ? SETBIT(fFlags,kInterlaced) 212 : CLRBIT(fFlags,kInterlaced); } 206 213 void SetHistName ( const char *name ) { fHistName = name; } 207 214 void SetHistTitle ( const char *name ) { fHistTitle = name; }
Note:
See TracChangeset
for help on using the changeset viewer.