Ignore:
Timestamp:
04/04/04 19:06:45 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimePix.cc

    r3638 r3644  
    2525// MCalibrationRelTimePix                                                  //
    2626//                                                                         //
    27 // Storage container to hold informations about the calibrated arrival time//
    28 // value of one Pixel (PMT).                                               //
     27// Storage container for relative arrival time calibration results         //
     28// of one Pixel (PMT).                                                     //
     29// The following "calibration" constants can be retrieved:                 //
     30// - GetTimeOffset(): The mean offset in relative times,
     31//   has to be added to any calculated relative time in the camera.
     32// - GetTimePrecision(): The Gauss sigma of histogrammed relative arrival
     33//   times for the calibration run. Gives an estimate about the timing
     34//   resolution.
     35//
     36// ALL RELATIVE TIMES HAVE TO BE CALCULATED W.R.T. PIXEL IDX 1
     37// (HARDWARE NUMBER: 2) !!
     38//
     39// See also: MHCalibrationRelTimePix, MHCalibrationRelTimeCam              //
    2940//                                                                         //
    3041/////////////////////////////////////////////////////////////////////////////
     
    3647// --------------------------------------------------------------------------
    3748//
    38 // Default Constructor:
     49// Default Constructor
    3950//
    4051MCalibrationRelTimePix::MCalibrationRelTimePix(const char *name, const char *title)
    41     : fRelTimeFlags(0)
    4252{
    4353
    4454  fName  = name  ? name  : "MCalibrationRelTimePix";
    45   fTitle = title ? title : "Container of the fit results of MHCalibrationRelTimePixs ";
    46 
    47   Clear();
     55  fTitle = title ? title : "Results of MHCalibrationRelTimePix ";
    4856
    4957}
    5058
    51 // ------------------------------------------------------------------------
    52 //
    53 // Invalidate values
    54 //
    55 void MCalibrationRelTimePix::Clear(Option_t *o)
    56 {
    57 
    58   SetValid     ( kFALSE );
    59 
    60   fMeanConversion   =  -1.;
    61   fConversionVar    =  -1.;
    62   fSigmaConversion  =  -1.;
    63 
    64   MCalibrationPix::Clear();
    65 }
    66 
    67 
    68 // --------------------------------------------------------------------------
    69 //
    70 // Set the conversion factors from outside (only for MC)
    71 //
    72 void MCalibrationRelTimePix::SetConversion(Float_t c, Float_t err, Float_t sig)
    73 {
    74   fMeanConversion  = c;
    75   fConversionVar   = err*err;
    76   fSigmaConversion = sig;
    77 }
    78 
    79 
    80 // --------------------------------------------------------------------------
    81 //
    82 // Set the Excluded Bit from outside
    83 //
    84 void MCalibrationRelTimePix::SetValid(const Bool_t b )
    85 {
    86   b ?  SETBIT(fRelTimeFlags, kValid) : CLRBIT(fRelTimeFlags, kValid);
    87 }   
    88 
    89 
    90 Float_t MCalibrationRelTimePix::GetConversionErr()  const
    91 {
    92   if (fConversionVar < 0.)
    93     return -1.;
    94   return TMath::Sqrt(fConversionVar);
    95 }
    96 
    97 
    98 Bool_t MCalibrationRelTimePix::IsValid() const
    99 {
    100   return TESTBIT(fRelTimeFlags, kValid);
    101 }
Note: See TracChangeset for help on using the changeset viewer.