Changeset 2889 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/23/04 13:29:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note:
See TracChangeset
for help on using the changeset viewer.