Changeset 6177
- Timestamp:
- 02/01/05 17:13:52 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6173 r6177 117 117 // 118 118 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 119 : fRuns(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsHiLoCalibration(kFALSE) 119 : fRuns(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsHiLoCalibration(kFALSE), 120 fDataFlag(0) 120 121 { 121 122 fName = name ? name : "MJCalibrateSignal"; -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r6150 r6177 27 27 Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains 28 28 29 30 enum DataType_t 31 { 32 kIsUseRawData, 33 kIsUseRootData, 34 kIsUseMC 35 }; 36 37 Byte_t fDataFlag; // Bit-field to store the data type 38 39 Bool_t IsUseRawData() const { return TESTBIT(fDataFlag,kIsUseRawData); } 40 Bool_t IsUseRootData() const { return TESTBIT(fDataFlag,kIsUseRootData); } 41 Bool_t IsUseMC() const { return TESTBIT(fDataFlag,kIsUseMC); } 42 43 void SetUseRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRawData) : CLRBIT(fDataFlag,kIsUseRawData); } 44 void SetUseRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRootData) : CLRBIT(fDataFlag,kIsUseRootData); } 45 void SetUseMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseMC) : CLRBIT(fDataFlag,kIsUseMC); } 46 29 47 Bool_t CheckEnvLocal(); 30 48 … … 36 54 37 55 public: 56 38 57 MJCalibrateSignal(const char *name=NULL, const char *title=NULL); 39 58 … … 44 63 void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; } 45 64 46 void SetInput 47 65 void SetInput ( MRunIter *iter ) { fRuns = iter; } 66 48 67 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam) 49 68 }; -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6173 r6177 188 188 : fRuns(0), fExtractor(NULL), fTimeExtractor(NULL), 189 189 fColor(MCalibrationCam::kNONE), fDisplayType(kDataCheckDisplay), 190 f Geometry("MGeomCamMagic")190 fDataFlag(0), fGeometry("MGeomCamMagic") 191 191 { 192 192 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r6173 r6177 146 146 Byte_t fFlags; // Bit-field for the flags 147 147 148 enum DataType_t 149 { 150 kIsUseRawData, 151 kIsUseRootData, 152 kIsUseMC 153 }; 154 155 Byte_t fDataFlag; // Bit-field to store the data type 156 157 Bool_t IsUseRawData() const { return TESTBIT(fDataFlag,kIsUseRawData); } 158 Bool_t IsUseRootData() const { return TESTBIT(fDataFlag,kIsUseRootData); } 159 Bool_t IsUseMC() const { return TESTBIT(fDataFlag,kIsUseMC); } 160 161 void SetUseRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRawData) : CLRBIT(fDataFlag,kIsUseRawData); } 162 void SetUseRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRootData) : CLRBIT(fDataFlag,kIsUseRootData); } 163 void SetUseMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseMC) : CLRBIT(fDataFlag,kIsUseMC); } 164 165 148 166 TString fGeometry; // Class name geometry 149 167 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6173 r6177 102 102 MJPedestal::MJPedestal(const char *name, const char *title) 103 103 : fRuns(0), fExtractor(NULL), fDisplayType(kDisplayDataCheck), 104 fExtractType(kUsePedRun), fExtractionType(kFundamental) 104 fExtractType(kUsePedRun), fExtractionType(kFundamental), fDataFlag(0) 105 105 { 106 106 fName = name ? name : "MJPedestal"; -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r6172 r6177 65 65 Int_t fExtractionType; // Flag if the extractor is used to calculate the pedestals 66 66 67 enum DataType_t 68 { 69 kIsUseRawData, 70 kIsUseRootData, 71 kIsUseMC 72 }; 73 74 Byte_t fDataFlag; // Bit-field to store the data type 75 76 Bool_t IsUseRawData() const { return TESTBIT(fDataFlag,kIsUseRawData); } 77 Bool_t IsUseRootData() const { return TESTBIT(fDataFlag,kIsUseRootData); } 78 Bool_t IsUseMC() const { return TESTBIT(fDataFlag,kIsUseMC); } 79 80 void SetUseRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRawData) : CLRBIT(fDataFlag,kIsUseRawData); } 81 void SetUseRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRootData) : CLRBIT(fDataFlag,kIsUseRootData); } 82 void SetUseMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseMC) : CLRBIT(fDataFlag,kIsUseMC); } 83 67 84 MExtractor *ReadCalibration() const; 68 85 Bool_t ReadPedestalCam(); -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r6150 r6177 54 54 // Sets fDataFlag to 0 55 55 // 56 MJob::MJob(const char *name, const char *title) : fEnv(0), f DataFlag(0), fOverwrite(kFALSE), fMaxEvents(0)56 MJob::MJob(const char *name, const char *title) : fEnv(0), fOverwrite(kFALSE), fMaxEvents(0) 57 57 58 58 { -
trunk/MagicSoft/Mars/mjobs/MJob.h
r6172 r6177 18 18 Bool_t fEnvDebug; // Debug setup of resources 19 19 20 enum DataType_t {21 kIsUseRawData,22 kIsUseRootData,23 kIsUseMC24 };25 26 20 protected: 27 21 28 Byte_t fDataFlag; // Bit-field to store the data type29 22 TString fPathOut; // Directory to write output file to (eg. calib*.root) 30 23 TString fPathIn; // Directory to read output from (eg. calib*.root) … … 35 28 36 29 MSequence fSequence; // Sequence 37 38 Bool_t IsUseRawData() const { return TESTBIT(fDataFlag,kIsUseRawData); }39 Bool_t IsUseRootData() const { return TESTBIT(fDataFlag,kIsUseRootData); }40 Bool_t IsUseMC() const { return TESTBIT(fDataFlag,kIsUseMC); }41 42 void SetUseRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRawData) : CLRBIT(fDataFlag,kIsUseRawData); }43 void SetUseRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRootData) : CLRBIT(fDataFlag,kIsUseRootData); }44 void SetUseMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseMC) : CLRBIT(fDataFlag,kIsUseMC); }45 30 46 31 const TEnv *GetEnv() const { return fEnv; }
Note:
See TracChangeset
for help on using the changeset viewer.