Changeset 3400 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 03/04/04 15:46:17 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r3374 r3400 62 62 63 63 #include "MRawRunHeader.h" 64 #include "MMcRunHeader.hxx" 64 65 #include "MMcFadcHeader.hxx" 65 66 … … 169 170 } 170 171 172 MMcRunHeader* mcrunh = (MMcRunHeader*) pList->FindObject("MMcRunHeader"); 173 171 174 // 172 175 // Initialize Fadc simulation parameters: … … 175 178 { 176 179 fAmplitude = fHeaderFadc->GetAmplitud(); 177 fAmplitudeOuter = fHeaderFadc->GetAmplitudOuter(); 178 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 180 if (mcrunh->GetCamVersion() > 60) 181 { 182 fAmplitudeOuter = fHeaderFadc->GetAmplitudOuter(); 183 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 184 } 185 else // old MC files, camera < v0.7 186 { 187 fAmplitudeOuter = fAmplitude; 188 fConversionHiLo = 1; // dummy value 189 } 190 179 191 } 180 192 else // Check that following files have all the same FADC parameters 181 193 { 182 if ( fabs(fHeaderFadc->GetAmplitud()-fAmplitude) > 1.e-6 || 183 fabs(fHeaderFadc->GetAmplitudOuter()-fAmplitudeOuter) > 1.e-6 || 184 fabs(fConversionHiLo-fHeaderFadc->GetLow2HighGain()) > 1.e-6 ) 185 { 186 *fLog << err << "Parameters of MMcFadcHeader are not the same for all files... aborting." << endl; 187 return kFALSE; 188 } 189 } 194 if ( fabs(fHeaderFadc->GetAmplitud()-fAmplitude) > 1.e-6 ) 195 { 196 *fLog << err << "Parameters of MMcFadcHeader are not the same for all files... aborting." << endl; 197 return kFALSE; 198 } 199 200 if (mcrunh->GetCamVersion() > 60) // old MC files, camera < v0.7 201 { 202 if( fabs(fHeaderFadc->GetAmplitudOuter()-fAmplitudeOuter) > 1.e-6 || 203 fabs(fConversionHiLo-fHeaderFadc->GetLow2HighGain()) > 1.e-6 ) 204 { 205 *fLog << err << "Parameters of MMcFadcHeader are not the same for all files... aborting." << endl; 206 return kFALSE; 207 } 208 } 209 } 210 211 190 212 191 213 //
Note:
See TracChangeset
for help on using the changeset viewer.