| 1 | /* ======================================================================== *\ | 
|---|
| 2 | ! | 
|---|
| 3 | ! * | 
|---|
| 4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction | 
|---|
| 5 | ! * Software. It is distributed to you in the hope that it can be a useful | 
|---|
| 6 | ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes. | 
|---|
| 7 | ! * It is distributed WITHOUT ANY WARRANTY. | 
|---|
| 8 | ! * | 
|---|
| 9 | ! * Permission to use, copy, modify and distribute this software and its | 
|---|
| 10 | ! * documentation for any purpose is hereby granted without fee, | 
|---|
| 11 | ! * provided that the above copyright notice appear in all copies and | 
|---|
| 12 | ! * that both that copyright notice and this permission notice appear | 
|---|
| 13 | ! * in supporting documentation. It is provided "as is" without express | 
|---|
| 14 | ! * or implied warranty. | 
|---|
| 15 | ! * | 
|---|
| 16 | ! | 
|---|
| 17 | ! | 
|---|
| 18 | !   Author(s): Markus Gaug   02/2004 <mailto:markus@ifae.es> | 
|---|
| 19 | ! | 
|---|
| 20 | !   Copyright: MAGIC Software Development, 2000-2005 | 
|---|
| 21 | ! | 
|---|
| 22 | \* ======================================================================== */ | 
|---|
| 23 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 24 | // | 
|---|
| 25 | // MCalibrationHiLoPix | 
|---|
| 26 | // | 
|---|
| 27 | // Storage container for high-gain vs. low-gain charge calibration results | 
|---|
| 28 | // of one Pixel (PMT). | 
|---|
| 29 | // The following "calibration" constants can be retrieved: | 
|---|
| 30 | // - GetHiLoRatio(): The mean conversion High-gain vs. Low-gain | 
|---|
| 31 | //   with which the low-gain result has to be multiplied | 
|---|
| 32 | // - GetHiLoSigma(): The Gauss sigma of histogrammed High-gain vs. | 
|---|
| 33 | //   Low-gain ratios | 
|---|
| 34 | // | 
|---|
| 35 | // See also: MHCalibrationHiLoPix, MHCalibrationHiLoCam | 
|---|
| 36 | // | 
|---|
| 37 | // Class Version 2: | 
|---|
| 38 | //  + Float_t fOffsetPerSlice;  // Offset from fit (per FADC slice) | 
|---|
| 39 | //  + Float_t fGainRatio;       // Ratio of gains from fit | 
|---|
| 40 | // | 
|---|
| 41 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 42 | #include "MCalibrationHiLoPix.h" | 
|---|
| 43 |  | 
|---|
| 44 | ClassImp(MCalibrationHiLoPix); | 
|---|
| 45 |  | 
|---|
| 46 | using namespace std; | 
|---|
| 47 |  | 
|---|
| 48 | // -------------------------------------------------------------------------- | 
|---|
| 49 | // | 
|---|
| 50 | // Default Constructor | 
|---|
| 51 | // | 
|---|
| 52 | MCalibrationHiLoPix::MCalibrationHiLoPix(const char *name, const char *title) | 
|---|
| 53 | : fOffsetPerSlice(-9999.), fGainRatio(-1.) | 
|---|
| 54 | { | 
|---|
| 55 |  | 
|---|
| 56 | fName  = name  ? name  : "MCalibrationHiLoPix"; | 
|---|
| 57 | fTitle = title ? title : "Results of MHCalibrationHiLoPix "; | 
|---|
| 58 |  | 
|---|
| 59 | } | 
|---|