Changeset 2889 for trunk/MagicSoft
- Timestamp:
- 01/23/04 13:29:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2887 r2889 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/23: Abelardo Moralejo 8 9 * manalysis/MMcCalibrationUpdate.[h,cc] 10 - Added check to guarantee that the FADC simulation parameters of 11 all read files (those used for calibration and those analyzed) 12 are the same. 13 14 * mcalib/MMcCalibrationCalc.cc 15 - Removed obsolete FIXME comment. 6 16 7 17 2004/01/23: Raquel de los Reyes -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r2886 r2889 74 74 fADC2PhOuter = 1.; 75 75 76 fAmplitude = -1.; 77 fAmplitudeOuter = -1.; 78 fConversionHiLo = -1.; 79 76 80 fFillCalibrationCam = kTRUE; 77 81 … … 178 182 179 183 // 184 // Initialize Fadc simulation parameters: 185 // 186 if ( fAmplitude < 0. ) 187 { 188 fAmplitude = fHeaderFadc->GetAmplitud(); 189 fAmplitudeOuter = fHeaderFadc->GetAmplitudOuter(); 190 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 191 } 192 else // Check that following files have all the same FADC parameters 193 { 194 if ( fabs(fHeaderFadc->GetAmplitud()-fAmplitude) > 1.e-6 || 195 fabs(fHeaderFadc->GetAmplitudOuter()-fAmplitudeOuter) > 1.e-6 || 196 fabs(fConversionHiLo-fHeaderFadc->GetLow2HighGain()) > 1.e-6 ) 197 { 198 *fLog << err << endl << endl << dbginf << "Parameters of MMcFadcHeader are not the same for all the read files. Aborting..." << endl << endl; 199 return kFALSE; 200 } 201 } 202 203 // 180 204 // If MCalibrationCam already existed in the parameter list before 181 205 // MMcCalibrationUpdate::PreProcess was executed (from a … … 189 213 // Set the ADC to photons conversion factor for outer pixels: 190 214 // 191 fADC2PhOuter = fADC2PhInner * 192 (fHeaderFadc->GetAmplitud() / fHeaderFadc->GetAmplitudOuter()); 193 194 // 195 // Set the conversion factor between high and low gain: 196 // 197 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 215 fADC2PhOuter = fADC2PhInner * (fAmplitude / fAmplitudeOuter); 198 216 199 217 const int num = fCalCam->GetSize(); -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.h
r2886 r2889 28 28 Float_t fADC2PhInner; // Conversion factor from ADC counts to photons 29 29 Float_t fADC2PhOuter; // for inner and outer pixels. 30 Float_t fConversionHiLo;31 30 32 31 Bool_t fFillCalibrationCam; 32 33 Float_t fAmplitude; // FADC parameters from camera simulation (see camera manual) 34 Float_t fAmplitudeOuter; // to be read from the MMcFadcHeader. 35 Float_t fConversionHiLo; // Ratio of high to low gain. 36 33 37 34 38 public: -
trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc
r2886 r2889 176 176 } 177 177 178 //179 // FIXME: Check that the relevant parameters in the FADC header are the180 // same for all the analyzed data, both Calibration and Analyzed data!181 //182 183 178 return kTRUE; 184 179 }
Note:
See TracChangeset
for help on using the changeset viewer.