Changeset 3299
- Timestamp:
- 02/25/04 12:29:24 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r3265 r3299 100 100 Int_t MCalibrateData::PreProcess(MParList *pList) 101 101 { 102 103 MGeomCam *fCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam")); 104 if (!fCam) 105 { 106 *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl; 107 return kFALSE; 108 } 109 102 110 fPedestal = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 103 111 if (!fPedestal) … … 106 114 return kFALSE; 107 115 } 116 108 117 109 118 fSignals = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam")); … … 127 136 if (!fPedPhot) 128 137 return kFALSE; 138 fPedPhot->InitSize(fCam->GetNumPixels()); 129 139 130 140 fCerPhotEvt = (MCerPhotEvt*)pList->FindCreateObj(AddSerialNumber("MCerPhotEvt")); … … 166 176 167 177 // is pixid equal to pixidx ? 168 if ( fPedestal->GetSize() != fSignals->GetSize())178 if ( (Int_t)(fPedestal->GetSize()) != fSignals->GetSize()) 169 179 { 170 180 *fLog << err << "MCalibrateData::ReInit(); sizes of MPedestalCam and MCalibrationCam are different" … … 178 188 *fLog << all << " pixid, calibrationConversionFactor, ped, pedRMS, pedphot, pedphotRMS :" 179 189 << endl; 180 for ( Int_t pixid=0; pixid<fPedestal->GetSize(); pixid++)190 for (UInt_t pixid=0; pixid<fPedestal->GetSize(); pixid++) 181 191 { 182 192 const MPedestalPix &ped = (*fPedestal)[pixid]; -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r3249 r3299 33 33 { 34 34 private: 35 MPedestalCam *fPedestal; // Pedestals/slice [ADC counts] 36 MCalibrationChargeCam *fCalibrations; // Calibration constants 37 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts 35 MGeomCam *fCam; 36 MPedestalCam *fPedestal; // Pedestals/slice [ADC counts] 37 MCalibrationCam *fCalibrations; // Calibration constants 38 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts 38 39 39 40 MPedPhotCam *fPedPhot; // Pedestals/(used slices) [photons] … … 68 69 69 70 #endif 71 72 73 74 75 76 77 78 79
Note:
See TracChangeset
for help on using the changeset viewer.