Changeset 3437 for trunk/MagicSoft/Mars
- Timestamp:
- 03/07/04 21:00:11 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3425 r3437 85 85 // Default constructor. 86 86 // 87 MCalibrate::MCalibrate(CalibrationMode_t calmode,const char *name, const char *title) : fCalibrationMode(calmode) 87 MCalibrate::MCalibrate(CalibrationMode_t calmode,const char *name, const char *title) 88 : fGeomCam(NULL), fCalibrations(NULL), fBadPixels(NULL), fSignals(NULL), 89 fCerPhotEvt(NULL), fCalibrationMode(calmode) 88 90 { 89 91 fName = name ? name : "MCalibrate"; … … 111 113 { 112 114 *fLog << err << AddSerialNumber("MExtractedSignalCam") << " not found ... aborting" << endl; 115 return kFALSE; 116 } 117 118 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 119 120 if (!fBadPixels) 121 { 122 *fLog << err << AddSerialNumber("MBadPixelsCam") << " not found ... aborting" << endl; 113 123 return kFALSE; 114 124 } … … 217 227 if(fCalibrationMode!=kNone) 218 228 { 229 219 230 MCalibrationChargePix &pix = (*fCalibrations)[pixidx]; 220 221 222 // 223 // Will be replaced by a call to MBadPixels 224 //if (!pix.IsChargeValid()) 225 //continue; 231 MBadPixelsPix &bad = (*fBadPixels)[pixidx]; 232 233 if (!bad.IsCalibrationResultOK()) 234 continue; 226 235 227 236 switch(fCalibrationMode) -
trunk/MagicSoft/Mars/mcalib/MCalibrate.h
r3249 r3437 15 15 16 16 class MGeomCam; 17 class MBadPixelsCam; 17 18 class MCalibrationChargeCam; 18 19 class MExtractedSignalCam; … … 23 24 private: 24 25 MGeomCam *fGeomCam; // Camera geometry container 25 MCalibrationChargeCam *fCalibrations; // Calibration constants 26 MCalibrationChargeCam *fCalibrations; // Calibration constants 27 MBadPixelsCam *fBadPixels; // Bad Pixels information 26 28 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts 27 29 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r3425 r3437 69 69 #include "MPedPhotPix.h" 70 70 71 #include "MBadPixelsCam.h" 72 #include "MBadPixelsPix.h" 73 71 74 #include "MCerPhotEvt.h" 72 75 … … 78 81 // Default constructor. 79 82 // 80 MCalibrateData::MCalibrateData(CalibrationMode_t calmode,const char *name, const char *title) : fCalibrationMode(calmode) 83 MCalibrateData::MCalibrateData(CalibrationMode_t calmode,const char *name, const char *title) 84 : fCam(NULL), fPedestal(NULL), fBadPixels(NULL), fCalibrations(NULL), fSignals(NULL), 85 fPedPhot(NULL), fCerPhotEvt(NULL), fCalibrationMode(calmode) 81 86 { 82 87 fName = name ? name : "MCalibrateData"; … … 112 117 { 113 118 *fLog << err << AddSerialNumber("MExtractedSignalCam") << " not found ... aborting" << endl; 119 return kFALSE; 120 } 121 122 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 123 124 if (!fBadPixels) 125 { 126 *fLog << err << AddSerialNumber("MBadPixelsCam") << " not found ... aborting" << endl; 114 127 return kFALSE; 115 128 } … … 236 249 { 237 250 MCalibrationChargePix &pix = (*fCalibrations)[pixidx]; 238 239 // 240 // Will be replaced by call to MBadPixels 241 // 242 //if (!pix.IsChargeValid()) 243 // return kFALSE; 244 251 MBadPixelsPix &bad = (*fBadPixels)[pixidx]; 252 253 if (!bad.IsCalibrationResultOK()) 254 return kFALSE; 255 245 256 hiloconv = pix.GetConversionHiLo(); 246 257 hiloconverr= pix.GetConversionHiLoErr(); -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r3301 r3437 23 23 24 24 class MGeomCam; 25 class MBadPixelsCam; 25 26 class MPedestalCam; 26 27 class MCalibrationChargeCam; … … 35 36 MGeomCam *fCam; 36 37 MPedestalCam *fPedestal; // Pedestals/slice [ADC counts] 38 MBadPixelsCam *fBadPixels; // Bad Pixels information 37 39 MCalibrationChargeCam *fCalibrations; // Calibration constants 38 40 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
Note:
See TracChangeset
for help on using the changeset viewer.