Class to store hit energy and time in LAr cell from G4 simulation.
More...
#include <LArHit.h>
|
| Identifier | m_ID |
| | identifier of the cell in which this hit occured.
|
| double | m_energy |
| | energy (in MeV) deposited in this hit
|
| double | m_time |
| | time (in ns)
|
Class to store hit energy and time in LAr cell from G4 simulation.
Definition at line 21 of file LArHit.h.
◆ LArHit() [1/2]
| LArHit::LArHit |
( |
Identifier | l_cell, |
|
|
double | l_energy, |
|
|
double | l_time ) |
|
inline |
LArHit Constructor.
inlines
- Parameters
-
| [in] | l_cell | Identifier of the cell in which the hit occured. |
| [in] | l_energy | Energy (in MeV) deposited in the cell. |
| [in] | l_time | Time (in ns) of the hit.
energy and time should be double in transient memory to have proper rounding accuracy in accumulating sum(E) and sum(E.t) from G4 steps |
Definition at line 86 of file LArHit.h.
87 :
90 m_time( (l_time*l_energy) )
91{}
double m_time
time (in ns)
Identifier m_ID
identifier of the cell in which this hit occured.
double m_energy
energy (in MeV) deposited in this hit
◆ LArHit() [2/2]
Default constructor for persistency.
Should never be used
Definition at line 95 of file LArHit.h.
◆ ~LArHit()
◆ Add()
| void LArHit::Add |
( |
LArHit *const & | h | ) |
|
|
inline |
Add another hit ot this hit.
- Parameters
-
Definition at line 133 of file LArHit.h.
◆ cellID()
- Returns
- cell identifier of this hit
Definition at line 108 of file LArHit.h.
◆ energy()
| double LArHit::energy |
( |
| ) |
const |
|
inline |
- Returns
- energy in MeV of this hit
Definition at line 113 of file LArHit.h.
◆ Equals()
| bool LArHit::Equals |
( |
LArHit *const & | h | ) |
const |
|
inline |
Operator Equals this.
Definition at line 128 of file LArHit.h.
129{
return m_ID ==
h->m_ID; }
◆ finalize()
| void LArHit::finalize |
( |
| ) |
|
|
inline |
The method to be called at the end of event by SD.
Finalize time computation time = Sum(E.t)/Sum(E)
Definition at line 143 of file LArHit.h.
◆ Less()
| bool LArHit::Less |
( |
LArHit *const & | h | ) |
const |
|
inline |
Operator Less than this for hit ordering.
Definition at line 123 of file LArHit.h.
124{
return m_ID <
h->m_ID; }
◆ time()
| double LArHit::time |
( |
| ) |
const |
|
inline |
- Returns
- time in ns of this hit
Time is defined as the g4 time minus the time of flight at speed of light from the center of Atlas
Definition at line 118 of file LArHit.h.
◆ m_energy
energy (in MeV) deposited in this hit
Definition at line 76 of file LArHit.h.
◆ m_ID
identifier of the cell in which this hit occured.
Definition at line 73 of file LArHit.h.
◆ m_time
time (in ns)
Definition at line 79 of file LArHit.h.
The documentation for this class was generated from the following file: