Changeset 3291 for trunk/MagicSoft
- Timestamp:
- 02/25/04 05:54:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3290 r3291 27 27 - loosened criterium convFFactorRelErrLimit from 0.1 to 0.2 28 28 - CalcFFactor asks for IsChargeValid before calculating anything 29 30 * mcalib/MCalibrationChargePINDiode.[h,cc] 31 - added function SetFluxOutsidePlexiglassAvailable 29 32 30 33 * mcalib/MHCalibrationChargePix.cc -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePINDiode.cc
r3247 r3291 193 193 } 194 194 195 void MCalibrationChargePINDiode::SetFluxOutsidePlexiglassAvailable (const Bool_t b) 196 { 197 b ? SETBIT(fFlags, kFluxOutsidePlexiglassAvailable) : CLRBIT(fFlags, kFluxOutsidePlexiglassAvailable); 198 } 195 199 196 200 void MCalibrationChargePINDiode::SetMeanTimeInFirstBin(const Bool_t b) … … 240 244 { 241 245 242 if (TESTBIT(fFlags,kExcludeQualityCheck))243 return kTRUE;244 246 245 247 if (fMeanCharge < fChargeLimit*GetPedRms()) … … 279 281 Bool_t MCalibrationChargePINDiode::CheckTimeFitValidity() 280 282 { 281 282 if (TESTBIT(fFlags,kExcludeQualityCheck))283 return kTRUE;284 283 285 284 if ( fAbsTimeMean < fTimeLowerEdge+1.) … … 347 346 << fMeanFluxOutsidePlexiglass << endl; 348 347 349 if (fMeanFluxOutsidePlexiglass > 0.) 350 SETBIT(fFlags,kFluxOutsidePlexiglassAvailable); 351 else 352 { 353 CLRBIT(fFlags,kFluxOutsidePlexiglassAvailable); 354 return kFALSE; 355 } 348 if (fMeanFluxOutsidePlexiglass < 0.) 349 return kFALSE; 356 350 357 351 if (fMeanFluxErrOutsidePlexiglass < 0.) 358 { 359 *fLog << warn << "Relative Variance on Photon flux outside Plexiglass: " 360 << fMeanFluxErrOutsidePlexiglass << endl; 361 CLRBIT(fFlags,kFluxOutsidePlexiglassAvailable); 362 return kFALSE; 363 } 352 return kFALSE; 353 354 SetFluxOutsidePlexiglassAvailable(); 364 355 365 356 // Finish calculation of errors -> convert from relative variance to absolute error -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePINDiode.h
r3264 r3291 116 116 void SetChargeFitValid ( const Bool_t b = kTRUE ); 117 117 void SetTimeFitValid ( const Bool_t b = kTRUE ); 118 void SetFluxOutsidePlexiglassAvailable ( const Bool_t b = kTRUE ); 118 119 119 120 // Setters ONLY for MC:
Note:
See TracChangeset
for help on using the changeset viewer.