- Timestamp:
- 12/18/03 20:14:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2720 r2721 6 6 7 7 2003/12/18: Abelardo Moralejo 8 9 * manalysis/MMcCalibrationCalc.[h,cc] 10 - Changed names of conversion factors, because their meaning 11 changed from "ADC->photoelectrons" to "ADC->photons before 12 the PM". Added some comments. Added calls to MCalibrationPix:: 13 SetBlindPixelMethodValid() and SetConversionBlindPixelMethod() 8 14 9 15 * manalysis/MCalibrate.cc 10 16 - Corrected variable names: Convertion -> Conversion, and also 11 17 removed the "f" in from of local (non-member) variables. 18 - Added fGeomCam, fPedPhotCam (created in the PreProcess). 12 19 13 20 2003/12/18: Markus Gaug, Michele Doro -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationCalc.cc
r2669 r2721 54 54 #include "MExtractedSignalCam.h" 55 55 #include "MExtractedSignalPix.h" 56 #include "MGeomCam.h" 56 57 #include "MPedPhotCam.h" 57 58 #include "MPedPhotPix.h" … … 69 70 fTitle = title ? title : "Write MC pedestals and conversion factors into MCalibration Container"; 70 71 71 fADC2Ph eInner = 1.;72 fADC2Ph eOuter = 1.;72 fADC2PhInner = 1.; 73 fADC2PhOuter = 1.; 73 74 74 75 } … … 110 111 } 111 112 113 if ( ! pList->FindCreateObj(AddSerialNumber("MPedPhotCam"))) 114 { 115 *fLog << err << dbginf << "Cannot create MPedPhotCam... aborting." << endl; 116 return kFALSE; 117 } 118 119 fGeom = (MGeomCam*) pList->FindObject(AddSerialNumber("MGeomCam")); 120 if ( ! fGeom ) 121 { 122 *fLog << err << dbginf << "Cannot find MGeomCam... aborting." << endl; 123 return kFALSE; 124 } 125 112 126 fSignalCam = (MExtractedSignalCam*) pList->FindObject(AddSerialNumber("MExtractedSignalCam")); 113 127 if ( ! fSignalCam) … … 124 138 // 125 139 // Check for the runtype. 126 // Search for MCalibrationCam and MMcFadcHeader.140 // Search for MCalibrationCam, MPedPhotCam and MMcFadcHeader. 127 141 // 128 142 Bool_t MMcCalibrationCalc::ReInit(MParList *pList) … … 154 168 } 155 169 170 fPedPhotCam = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam")); 171 172 if (!fPedPhotCam) 173 { 174 *fLog << err << dbginf << "Could not create MPedPhotCam... aborting. " << endl; 175 return kFALSE; 176 } 177 156 178 return kTRUE; 157 179 } … … 160 182 // -------------------------------------------------------------------------- 161 183 // 162 // Fill the MCalibrationCam object184 // Fill the MCalibrationCam and MCerPhotPed objects 163 185 // 164 186 Int_t MMcCalibrationCalc::Process() … … 171 193 MExtractedSignalPix &sigpix = (*fSignalCam)[i]; 172 194 195 // 196 // ped mean and rms per pixel, in ADC counts, according to signal 197 // calculation (hi or low gain and number of integrated slices): 198 // 173 199 const Float_t pedestmean = sigpix.IsLoGainUsed()? 174 200 fSignalCam->GetNumUsedLoGainFADCSlices()*fHeaderFadc->GetPedestal(i) : … … 179 205 sqrt((Double_t)(fSignalCam->GetNumUsedHiGainFADCSlices())) * fHeaderFadc->GetPedestalRmsHigh(i); 180 206 181 // ped mean and rms per pixel, according to signal calculation:182 183 207 calpix.SetPedestal(pedestmean, pedestrms); 184 185 if (i < 397) // FIXME! 186 calpix.SetConversionBlindPixelMethod(fADC2PheInner, 0., 0.); 208 calpix.SetBlindPixelMethodValid(); 209 210 if ( fGeom->GetPixRatio(i) > fGeom->GetPixRatio(0) ) 211 calpix.SetConversionBlindPixelMethod(fADC2PhOuter, 0., 0.); 187 212 else 188 calpix.SetConversionBlindPixelMethod(fADC2Ph eOuter, 0., 0.);213 calpix.SetConversionBlindPixelMethod(fADC2PhInner, 0., 0.); 189 214 190 215 }
Note:
See TracChangeset
for help on using the changeset viewer.