PCHit.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 /// \brief A PCHit contains the basic information from cosmic track data
3 /// needed for calibration.
4 /// \author rtoner@physics.harvard.edu
5 /// \date Jan. 2013
6 ///////////////////////////////////////////////////////////////////////////
7 #ifndef PCHIT_H
8 #define PCHIT_H
9 
11 
12 /// Calibration data products
13 namespace caldp
14 {
15  /// "Pre-calibration hit". Common input to calibration procedures
16  class PCHit
17  {
18  public:
19  PCHit();
20 
21  ~PCHit();
22 
23  /// Return plane value
24  int Plane () const {return plane; };
25  /// Return cell value
26  int Cell () const {return cell; };
27  /// Return diblock value
28  int Diblock () const {return diblock; };
29  /// Return dcm value
30  int DCM () const {return dcm; };
31  /// Return apd value
32  int APD () const {return apd; };
33  /// Return pixel value
34  int Pixel () const {return pixel; };
35  /// Return view
36  geo::View_t View () const {return view; };
37  /// Return PE value
38  float PE () const {return pe; };
39  /// Return Path value
40  float Path () const {return path; };
41  /// Return W value
42  float W () const {return w; };
43  /// Return True energy (MeV) value
44  float TrueMeV () const {return trueMeV; };
45  /// Return True PE value
46  float TruePE () const {return truePE; };
47  /// Return True Pathlength value
48  float TruePath () const {return truePath; };
49  /// Return True W value
50  float TrueW () const {return trueW; };
51  /// Return uncorrected hit time
52  float TNS () const {return tns; };
53  /// Return quality of timing fit for cell
54  bool GoodTime () const {return goodTime; };
55  /// Return path from start of track to current cell
56  float FlightLen() const {return flightLen; };
57  /// Return distance to readout, with pigtail
58  float ReadDist () const {return readDist; };
59  /// Return number of simulated photons at readout before fluctuations
60  float PoissonLambda () const { return poissonLambda; }
61 
62  /// Set plane value
63  void SetPlane (int aPlane ) { plane = aPlane; };
64  /// Set cell value
65  void SetCell (int aCell ) { cell = aCell; };
66  /// Set diblock value
67  void SetDiblock (int aDiblock ) { diblock = aDiblock; };
68  /// Set dcm value
69  void SetDCM (int aDCM ) { dcm = aDCM; };
70  /// Set apd value
71  void SetAPD (int aAPD ) { apd = aAPD; };
72  /// Set pixel value
73  void SetPixel (int aPixel ) { pixel = aPixel; };
74  /// Set view value
75  void SetView (geo::View_t aView ) { view = aView; };
76  /// Set PE value
77  void SetPE (float aPE ) { pe = aPE; };
78  /// Set Path value
79  void SetPath (float aPath ) { path = aPath; };
80  /// Set W value
81  void SetW (float aW ) { w = aW; };
82  /// Set True energy (MeV) value
83  void SetTrueMeV (float aTrueMeV ) { trueMeV = aTrueMeV; };
84  /// Set True PE value
85  void SetTruePE (float aTruePE ) { truePE = aTruePE; };
86  /// Set True path length value
87  void SetTruePath (float aTruePath) { truePath = aTruePath;};
88  /// Set True W value
89  void SetTrueW (float aTrueW ) { trueW = aTrueW; };
90  /// Set hit time (ns)
91  void SetTNS (float aTNS ) { tns = aTNS; };
92  /// Set quality of timing fit
93  void SetGoodTime (bool aGoodT ) { goodTime = aGoodT; };
94  /// Set path length from start of track
95  void SetFlightLen(float aLen ) { flightLen= aLen; };
96  /// Set distance to cell readout
97  void SetReadDist (float aDist ) { readDist = aDist; };
98  /// Set number of simulated photons at readout before fluctuations
99  void SetPoissonLambda(float aLambda ) { poissonLambda = aLambda; }
100  protected:
101  int plane; ///< plane number
102  int cell; ///< cell number
103  int diblock; ///< diblock number
104  int dcm; ///< number of dcm on diblock
105  int apd; ///< number of apd on dcm
106  int pixel; ///< number pixel on apd
107  geo::View_t view; ///< hit view
108  float pe; ///< uncalibrated PEs
109  float path; ///< Path length
110  float w; ///< Unmeasured coordinate of hit
111  float trueMeV; ///< True energy of hit (MC Truth)
112  float truePE; ///< True number of photoelectrons (MC Truth)
113  float truePath; ///< True pathlength through the cell
114  float trueW; ///< True position along cell W (W)
115  float tns; ///< Time of pchit (ns)
116  bool goodTime; ///< True if the time fit for the hit was good
117  float flightLen; ///< path length from the start of track (cm)
118  float readDist; ///< distance from hit to readout(including pigtail) (cm)
119  float poissonLambda; ///< Number of simulated photons at readout in the absence of fluctuations
120  };
121 
122 } // end namespace
123 
124 #endif // PCHIT_H
int apd
number of apd on dcm
Definition: PCHit.h:105
int Pixel() const
Return pixel value.
Definition: PCHit.h:34
float TrueMeV() const
Return True energy (MeV) value.
Definition: PCHit.h:44
int diblock
diblock number
Definition: PCHit.h:103
float TNS() const
Return uncorrected hit time.
Definition: PCHit.h:52
void SetTNS(float aTNS)
Set hit time (ns)
Definition: PCHit.h:91
float FlightLen() const
Return path from start of track to current cell.
Definition: PCHit.h:56
void SetPE(float aPE)
Set PE value.
Definition: PCHit.h:77
float truePath
True pathlength through the cell.
Definition: PCHit.h:113
float TruePath() const
Return True Pathlength value.
Definition: PCHit.h:48
int pixel
number pixel on apd
Definition: PCHit.h:106
void SetAPD(int aAPD)
Set apd value.
Definition: PCHit.h:71
void SetPixel(int aPixel)
Set pixel value.
Definition: PCHit.h:73
int APD() const
Return apd value.
Definition: PCHit.h:32
void SetFlightLen(float aLen)
Set path length from start of track.
Definition: PCHit.h:95
float poissonLambda
Number of simulated photons at readout in the absence of fluctuations.
Definition: PCHit.h:119
int plane
plane number
Definition: PCHit.h:101
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
void SetPoissonLambda(float aLambda)
Set number of simulated photons at readout before fluctuations.
Definition: PCHit.h:99
void SetTruePE(float aTruePE)
Set True PE value.
Definition: PCHit.h:85
bool GoodTime() const
Return quality of timing fit for cell.
Definition: PCHit.h:54
float trueW
True position along cell W (W)
Definition: PCHit.h:114
int Cell() const
Return cell value.
Definition: PCHit.h:26
float readDist
distance from hit to readout(including pigtail) (cm)
Definition: PCHit.h:118
float trueMeV
True energy of hit (MC Truth)
Definition: PCHit.h:111
bool goodTime
True if the time fit for the hit was good.
Definition: PCHit.h:116
int cell
cell number
Definition: PCHit.h:102
float truePE
True number of photoelectrons (MC Truth)
Definition: PCHit.h:112
float TrueW() const
Return True W value.
Definition: PCHit.h:50
float flightLen
path length from the start of track (cm)
Definition: PCHit.h:117
void SetTrueW(float aTrueW)
Set True W value.
Definition: PCHit.h:89
float tns
Time of pchit (ns)
Definition: PCHit.h:115
"Pre-calibration hit". Common input to calibration procedures
Definition: PCHit.h:16
float Path() const
Return Path value.
Definition: PCHit.h:40
float W() const
Return W value.
Definition: PCHit.h:42
float w
Unmeasured coordinate of hit.
Definition: PCHit.h:110
float PoissonLambda() const
Return number of simulated photons at readout before fluctuations.
Definition: PCHit.h:60
void SetView(geo::View_t aView)
Set view value.
Definition: PCHit.h:75
void SetReadDist(float aDist)
Set distance to cell readout.
Definition: PCHit.h:97
void SetPath(float aPath)
Set Path value.
Definition: PCHit.h:79
float PE() const
Return PE value.
Definition: PCHit.h:38
float TruePE() const
Return True PE value.
Definition: PCHit.h:46
void SetGoodTime(bool aGoodT)
Set quality of timing fit.
Definition: PCHit.h:93
float pe
uncalibrated PEs
Definition: PCHit.h:108
void SetDCM(int aDCM)
Set dcm value.
Definition: PCHit.h:69
void SetDiblock(int aDiblock)
Set diblock value.
Definition: PCHit.h:67
int Plane() const
Return plane value.
Definition: PCHit.h:24
geo::View_t View() const
Return view.
Definition: PCHit.h:36
int Diblock() const
Return diblock value.
Definition: PCHit.h:28
int dcm
number of dcm on diblock
Definition: PCHit.h:104
Histograms used by attenuation calibration.
float path
Path length.
Definition: PCHit.h:109
float ReadDist() const
Return distance to readout, with pigtail.
Definition: PCHit.h:58
geo::View_t view
hit view
Definition: PCHit.h:107
void SetPlane(int aPlane)
Set plane value.
Definition: PCHit.h:63
void SetW(float aW)
Set W value.
Definition: PCHit.h:81
int DCM() const
Return dcm value.
Definition: PCHit.h:30
void SetTruePath(float aTruePath)
Set True path length value.
Definition: PCHit.h:87
void SetCell(int aCell)
Set cell value.
Definition: PCHit.h:65
void SetTrueMeV(float aTrueMeV)
Set True energy (MeV) value.
Definition: PCHit.h:83