Changeset 3644 for trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimePix.cc
- Timestamp:
- 04/04/04 19:06:45 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimePix.cc
r3638 r3644 25 25 // MCalibrationRelTimePix // 26 26 // // 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 // 29 40 // // 30 41 ///////////////////////////////////////////////////////////////////////////// … … 36 47 // -------------------------------------------------------------------------- 37 48 // 38 // Default Constructor :49 // Default Constructor 39 50 // 40 51 MCalibrationRelTimePix::MCalibrationRelTimePix(const char *name, const char *title) 41 : fRelTimeFlags(0)42 52 { 43 53 44 54 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 "; 48 56 49 57 } 50 58 51 // ------------------------------------------------------------------------52 //53 // Invalidate values54 //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 outside83 //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() const91 {92 if (fConversionVar < 0.)93 return -1.;94 return TMath::Sqrt(fConversionVar);95 }96 97 98 Bool_t MCalibrationRelTimePix::IsValid() const99 {100 return TESTBIT(fRelTimeFlags, kValid);101 }
Note:
See TracChangeset
for help on using the changeset viewer.