All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PmtGain.h
Go to the documentation of this file.
1 /**
2  * \file PmtGain.h
3  *
4  * \ingroup IOVData
5  *
6  * \brief Class def header for a class PmtGain
7  *
8  * @author eberly@slac.stanford.edu
9  */
10 
11 /** \addtogroup IOVData
12 
13  @{*/
14 #ifndef IOVDATA_PMTGAIN_H
15 #define IOVDATA_PMTGAIN_H
16 
17 #include "ChData.h"
18 #include "CalibrationExtraInfo.h"
19 
20 namespace lariov {
21  /**
22  \class PmtGain
23  */
24  class PmtGain : public ChData {
25 
26  public:
27 
28  /// Constructor
29  PmtGain(unsigned int ch) :
30  ChData(ch),
31  fExtraInfo("PmtGain") {}
32 
33  /// Default destructor
34  ~PmtGain() {}
35 
36  float Gain() const { return fGain; }
37  float GainErr() const { return fGainErr; }
38  CalibrationExtraInfo const& ExtraInfo() const { return fExtraInfo; }
39 
40  void SetGain(float v) { fGain = v; }
41  void SetGainErr(float v) { fGainErr = v; }
43  { fExtraInfo = info; }
44 
45  private:
46 
47  float fGain;
48  float fGainErr;
50 
51  }; // end class
52 } // end namespace lariov
53 
54 #endif
55 /** @} */ // end of doxygen group
float GainErr() const
Definition: PmtGain.h:37
void SetExtraInfo(CalibrationExtraInfo const &info)
Definition: PmtGain.h:42
~PmtGain()
Default destructor.
Definition: PmtGain.h:34
CalibrationExtraInfo fExtraInfo
Definition: PmtGain.h:49
void SetGainErr(float v)
Definition: PmtGain.h:41
void SetGain(float v)
Definition: PmtGain.h:40
PmtGain(unsigned int ch)
Constructor.
Definition: PmtGain.h:29
float Gain() const
Definition: PmtGain.h:36
CalibrationExtraInfo const & ExtraInfo() const
Definition: PmtGain.h:38
Class def header for a class ChData.
float fGainErr
Definition: PmtGain.h:48
float fGain
Definition: PmtGain.h:47