DCMOffset.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 /// \brief A DCMOffset contains the resulting offset for a dcm needed for calibration.
3 /// \author eniner@indiana.edu
4 /// \date May 2014
5 ///////////////////////////////////////////////////////////////////////////
6 #ifndef DCMOffset_H
7 #define DCMOffset_H
8 
9 #include <stdint.h>
10 
11 /// Calibration data products
12 namespace caldp
13 {
14  class DCMOffset
15  {
16  public:
17  DCMOffset();
18 
19  ~DCMOffset();
20 
21  /// Return DCM
22  int DCM () const {return dcm; };
23  /// return the timing offset (ns)
24  float Offset () const {return offset; };
25  /// return uncertaint on offset (ns)
26  float Sigma () const {return sigma; };
27  /// return number of track segments for dcm in analysis, quality measure
28  int Stats () const {return stats; };
29  /// return start time offset is valid for
30  uint32_t StartTime () const {return sTime; };
31  /// return end time offset is valid for
32  uint32_t EndTime () const {return eTime; };
33 
34  /// Set DCM
35  void SetDCM (int aDCM) {dcm = aDCM; };
36  /// Set the timing offset (ns)
37  void SetOffset (float aOffset) {offset = aOffset; };
38  /// Set uncertaint on offset (ns)
39  void SetSigma (float aSigma) {sigma = aSigma; };
40  /// Set number of track segments for dcm in analysis, quality measure
41  void SetStats (int aStats) {stats = aStats; };
42  /// Set start time offset is valid for
43  void SetStartTime (uint32_t aStart) {sTime = aStart; };
44  /// Set end time offset is valid for
45  void SetEndTime (uint32_t aEnd) {eTime = aEnd; };
46 
47 
48 
49  protected:
50  int dcm; ///< dcm number
51  float offset; ///< dcm timing offset
52  float sigma; ///< uncertainty in offset
53  float stats; ///< number of track segments for dcm
54  uint32_t sTime; ///< start time offset is valid for
55  uint32_t eTime; ///< end time offset is valid for
56  };
57 
58 } // end namespace
59 
60 #endif // DCMOffset_H
float offset
dcm timing offset
Definition: DCMOffset.h:51
float stats
number of track segments for dcm
Definition: DCMOffset.h:53
int DCM() const
Return DCM.
Definition: DCMOffset.h:22
int dcm
dcm number
Definition: DCMOffset.h:45
uint32_t eTime
end time offset is valid for
Definition: DCMOffset.h:55
int Stats() const
return number of track segments for dcm in analysis, quality measure
Definition: DCMOffset.h:28
void SetStartTime(uint32_t aStart)
Set start time offset is valid for.
Definition: DCMOffset.h:43
void SetOffset(float aOffset)
Set the timing offset (ns)
Definition: DCMOffset.h:37
float sigma
uncertainty in offset
Definition: DCMOffset.h:52
void SetEndTime(uint32_t aEnd)
Set end time offset is valid for.
Definition: DCMOffset.h:45
uint32_t EndTime() const
return end time offset is valid for
Definition: DCMOffset.h:32
void SetDCM(int aDCM)
Set DCM.
Definition: DCMOffset.h:35
float Sigma() const
return uncertaint on offset (ns)
Definition: DCMOffset.h:26
uint32_t StartTime() const
return start time offset is valid for
Definition: DCMOffset.h:30
Histograms used by attenuation calibration.
void SetStats(int aStats)
Set number of track segments for dcm in analysis, quality measure.
Definition: DCMOffset.h:41
uint32_t sTime
start time offset is valid for
Definition: DCMOffset.h:54
void SetSigma(float aSigma)
Set uncertaint on offset (ns)
Definition: DCMOffset.h:39
float Offset() const
return the timing offset (ns)
Definition: DCMOffset.h:24