- Timestamp:
- 01/16/05 17:21:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r5856 r5857 62 62 #include "MCalibrateData.h" 63 63 64 #include "MRawRunHeader.h"65 66 64 #include "MGeomCam.h" 67 65 … … 79 77 // 80 78 MCalibCalcFromPast::MCalibCalcFromPast(const char *name, const char *title) 81 : f RunHeader(NULL), fGeom(NULL), fParList(NULL),79 : fGeom(NULL), fParList(NULL), 82 80 fIntensCharge(NULL), fIntensRelTime(NULL), fIntensBad(NULL), 83 81 fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL), … … 99 97 { 100 98 101 /*102 fTrigPattern = (MTriggerPattern*)pList->FindObject("MTriggerPattern");103 if (!fTrigPattern)104 {105 *fLog << err << "MTriggerPattern not found... abort." << endl;106 return kFALSE;107 }108 */109 110 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");111 if (!fRunHeader)112 {113 *fLog << err << "MRawRunHeader not found... abort." << endl;114 return kFALSE;115 }116 117 99 fGeom = (MGeomCam*)pList->FindObject("MGeomCam"); 118 100 if (!fGeom) … … 126 108 { 127 109 *fLog << err << "MParList not found... abort." << endl; 128 return kFALSE;129 }130 131 MTaskList *tlist = (MTaskList*)pList->FindObject("MTaskList");132 if (!tlist)133 {134 *fLog << err << "MTaskList not found... abort." << endl;135 110 return kFALSE; 136 111 } … … 146 121 147 122 // 148 // Look for the MCalibrationIntensityBlindCam 149 // 150 fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam"); 151 if (fIntensBlind) 152 *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << flush; 153 else 154 return kFALSE; 155 156 // 157 // Look for the MFillH name "FillChargeCam". In case yes, initialize the 123 // Look for the MFillH-class "MHCalibrationBlindCam". In case yes, initialize the 124 // corresponding IntensityCam 125 // 126 if (pList->FindObject(AddSerialNumber("MHCalibrationBlindCam"))) 127 { 128 129 *fLog << inf << "Found MHCalibrationBlindCam ... " << flush; 130 131 fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam"); 132 if (!fIntensBlind) 133 { 134 *fLog << err << "Could not find nor create MCalibrationIntensitBlindCam abort... " << endl; 135 return kFALSE; 136 } 137 } 138 139 // 140 // Look for the MFillH-class "MHCalibrationChargeCam". In case yes, initialize the 158 141 // corresponding IntensityCam 159 142 // … … 165 148 166 149 if (!fChargeCalc) 167 fChargeCalc = (MCalibrationChargeCalc*) tlist->FindObject("MCalibrationChargeCalc");150 fChargeCalc = (MCalibrationChargeCalc*)pList->FindObject("MCalibrationChargeCalc"); 168 151 169 152 if (!fCalibrate) 170 fCalibrate = (MCalibrateData*) tlist->FindObject("MCalibrateData");153 fCalibrate = (MCalibrateData*)pList->FindObject("MCalibrateData"); 171 154 172 155 *fLog << inf << "Found MHCalibrationChargeCam ... " << flush; 173 *fLog << err << fCalibrate << flush;174 156 175 157 if (!fIntensCharge) … … 207 189 fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam"); 208 190 if (!fRelTimeCalc) 209 fRelTimeCalc = (MCalibrationRelTimeCalc*) tlist->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));191 fRelTimeCalc = (MCalibrationRelTimeCalc*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc")); 210 192 211 193 *fLog << inf << "Found MHCalibrationRelTimeCam ... " << flush; … … 257 239 Int_t MCalibCalcFromPast::Process() 258 240 { 259 260 /*261 if (!(fTrigPattern->GetPrescaled() & MTriggerPattern::kCalibration))262 return kTRUE;263 */264 241 265 242 if (fNumEvents++ < fNumEventsDump) -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.h
r5856 r5857 8 8 class MParList; 9 9 class MGeomCam; 10 class MRawRunHeader;11 10 class MPedCalcFromLoGain; 12 11 class MCalibrationChargeCalc; … … 25 24 static const UInt_t fgNumEventsDump; //! Default for fNumEventsDump 26 25 27 MRawRunHeader *fRunHeader; //! Run Header28 26 MGeomCam *fGeom; //! Camera Geometry 29 27 MParList *fParList; //! Parameter List -
trunk/MagicSoft/Mars/mcalib/Makefile
r5749 r5857 21 21 INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../mhcalib -I../mhbase \ 22 22 -I../manalysis -I../mraw -I../mtools -I../mmc -I../mhist \ 23 -I../mimage -I../msignal -I../mbadpixels -I../mpedestal 23 -I../mimage -I../msignal -I../mbadpixels -I../mpedestal \ 24 -I../mtrigger 24 25 25 26 # mhbase: MBinning MH … … 34 35 MCalibColorSet.cc \ 35 36 MCalibColorSteer.cc \ 37 MCalibCalcFromPast.cc \ 36 38 MCalibrateData.cc \ 37 39 MCalibrateRelTimes.cc \
Note:
See TracChangeset
for help on using the changeset viewer.