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:
29 TrigScintHit() = default;
30
35
39 void clear(Option_t *option = "");
40
44 friend std::ostream &operator<<(std::ostream &o, const TrigScintHit &d);
45
51 void setBarID(const int barID) { bar_id_ = barID; };
52
54 int getBarID() const { return bar_id_; }
55
61 void setPE(const float PE) { pe_ = PE; };
62
64 float getPE() const { return pe_; }
65
71 void setModuleID(const int moduleID) { module_id_ = moduleID; };
72
74 int getModuleID() const { return module_id_; }
75
81 void setBeamEfrac(const float beamEfrac) { beam_efrac_ = beamEfrac; };
82
84 float getBeamEfrac() const { return beam_efrac_; }
85
86 private:
87 // bar/channel number associated with the hit
88 int bar_id_{-1};
89 // module/pad number associated with the hit
90 int module_id_{-1};
91
93 float beam_efrac_{0};
94
95 float pe_{0};
96 ClassDef(TrigScintHit, 5);
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:24
void clear()
Clear the data in the object.
Definition HcalHit.cxx:9
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.
friend std::ostream & operator<<(std::ostream &o, const TrigScintHit &d)
Print out the object.
void setBeamEfrac(const float beamEfrac)
Set beam energy fraction of hit.
TrigScintHit()=default
Class constructor.
float beam_efrac_
The fraction of energy associated with beam electrons.
~TrigScintHit()
Class destructor.
float getPE() const
Get the hit pe.
float getBeamEfrac() const
Get the beam energy fraction.
void setModuleID(const int moduleID)
Set hit module ID.