Changeset 3291 for trunk/MagicSoft


Ignore:
Timestamp:
02/25/04 05:54:45 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3290 r3291  
    2727     - loosened criterium convFFactorRelErrLimit from 0.1 to 0.2
    2828     - CalcFFactor asks for IsChargeValid before calculating anything
     29
     30   * mcalib/MCalibrationChargePINDiode.[h,cc]
     31     - added function SetFluxOutsidePlexiglassAvailable
    2932
    3033   * mcalib/MHCalibrationChargePix.cc
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePINDiode.cc

    r3247 r3291  
    193193}
    194194
     195void MCalibrationChargePINDiode::SetFluxOutsidePlexiglassAvailable (const Bool_t b)
     196{
     197  b ?  SETBIT(fFlags, kFluxOutsidePlexiglassAvailable) : CLRBIT(fFlags, kFluxOutsidePlexiglassAvailable);
     198}
    195199
    196200void MCalibrationChargePINDiode::SetMeanTimeInFirstBin(const Bool_t b)
     
    240244{
    241245
    242   if (TESTBIT(fFlags,kExcludeQualityCheck))
    243     return kTRUE;
    244246
    245247  if (fMeanCharge < fChargeLimit*GetPedRms())
     
    279281Bool_t MCalibrationChargePINDiode::CheckTimeFitValidity()
    280282{
    281 
    282   if (TESTBIT(fFlags,kExcludeQualityCheck))
    283     return kTRUE;
    284283
    285284  if ( fAbsTimeMean < fTimeLowerEdge+1.)
     
    347346        << fMeanFluxOutsidePlexiglass << endl;
    348347
    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;
    356350
    357351  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(); 
    364355
    365356  // Finish calculation of errors -> convert from relative variance to absolute error
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePINDiode.h

    r3264 r3291  
    116116  void SetChargeFitValid     ( const Bool_t b = kTRUE );
    117117  void SetTimeFitValid       ( const Bool_t b = kTRUE );
     118  void SetFluxOutsidePlexiglassAvailable ( const Bool_t b = kTRUE );
    118119
    119120  // Setters ONLY for MC:
Note: See TracChangeset for help on using the changeset viewer.