LDMX Software
TrigScintHit.h
1
7#ifndef TRIGSCINT_EVENT_TRIGSCINTHIT_H
8#define TRIGSCINT_EVENT_TRIGSCINTHIT_H
9
10/*~~~~~~~~~~~*/
11/* Event */
12/*~~~~~~~~~~~*/
13#include "Hcal/Event/HcalHit.h"
14
15namespace ldmx {
16
25 public:
30
35
39 void Clear(Option_t *option = "");
40
44 void Print(Option_t *option = "") const;
45
51 void setBarID(const int barID) { barID_ = barID; };
52
54 int getBarID() const { return barID_; }
55
61 void setPE(const float PE) { pe_ = PE; };
62
64 float getPE() const { return pe_; }
65
71 void setModuleID(const int moduleID) { moduleID_ = moduleID; };
72
74 int getModuleID() const { return moduleID_; }
75
81 void setBeamEfrac(const float beamEfrac) { beamEfrac_ = beamEfrac; };
82
84 float getBeamEfrac() const { return beamEfrac_; }
85
86 private:
87 // bar/channel number associated with the hit
88 int barID_{-1};
89 // module/pad number associated with the hit
90 int moduleID_{-1};
91
93 float beamEfrac_{0};
94
95 float pe_{0};
96 ClassDef(TrigScintHit, 3);
97
98}; // TrigScintHit
99
100} // namespace ldmx
101
102#endif // TRIGSCINT_EVENT_TRIGSCINTHIT_H
Class that stores Stores reconstructed hit information from the HCAL.
Stores reconstructed hit information from the HCAL.
Definition HcalHit.h:23
float beamEfrac_
The fraction of energy associated with beam electrons.
void setPE(const float PE)
Set hit pe.
int getBarID() const
Get the bar ID.
void setBarID(const int barID)
Set hit bar ID.
int getModuleID() const
Get the module ID.
void Print(Option_t *option="") const
Print out the object.
void setBeamEfrac(const float beamEfrac)
Set beam energy fraction of hit.
void Clear(Option_t *option="")
Clear the data in the object.
~TrigScintHit()
Class destructor.
float getPE() const
Get the hit pe.
float getBeamEfrac() const
Get the beam energy fraction.
TrigScintHit()
Class constructor.
void setModuleID(const int moduleID)
Set hit module ID.