ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArHitFloat Class Reference

Class to store hit energy and time in LAr cell from G4 simulation. More...

#include <LArHitFloat.h>

Collaboration diagram for LArHitFloat:

Public Member Functions

 LArHitFloat (Identifier l_cell, float l_energy, float l_time)
 LArHitFloat Constructor. More...
 
 LArHitFloat ()
 Default constructor for persistency. More...
 
 ~LArHitFloat ()
 Destructor. More...
 
Identifier cellID () const
 
float energy () const
 
float time () const
 

Private Attributes

Identifier m_ID
 identifier of the cell in which this hit occured. More...
 
float m_energy
 energy (in MeV) deposited in this hit More...
 
float m_time
 time (in ns) More...
 

Detailed Description

Class to store hit energy and time in LAr cell from G4 simulation.

Definition at line 14 of file LArHitFloat.h.

Constructor & Destructor Documentation

◆ LArHitFloat() [1/2]

LArHitFloat::LArHitFloat ( Identifier  l_cell,
float  l_energy,
float  l_time 
)
inline

LArHitFloat Constructor.

inlines

Parameters
[in]l_cellIdentifier of the cell in which the hit occured.
[in]l_energyEnergy (in MeV) deposited in the cell.
[in]l_timeTime (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 64 of file LArHitFloat.h.

65  :
66  m_ID(l_cell),
67  m_energy(l_energy),
68  m_time(l_time )
69 {}

◆ LArHitFloat() [2/2]

LArHitFloat::LArHitFloat ( )
inline

Default constructor for persistency.

Should never be used

Definition at line 73 of file LArHitFloat.h.

74  :
75  m_ID(Identifier()),
76  m_energy(0.),
77  m_time(0.)
78 {}

◆ ~LArHitFloat()

LArHitFloat::~LArHitFloat ( )
inline

Destructor.

Definition at line 81 of file LArHitFloat.h.

82 { }

Member Function Documentation

◆ cellID()

Identifier LArHitFloat::cellID ( ) const
inline
Returns
cell identifier of this hit

Definition at line 86 of file LArHitFloat.h.

87 { return m_ID; }

◆ energy()

float LArHitFloat::energy ( ) const
inline
Returns
energy in MeV of this hit

Definition at line 91 of file LArHitFloat.h.

92 { return m_energy; }

◆ time()

float LArHitFloat::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 96 of file LArHitFloat.h.

97 { return m_time; }

Member Data Documentation

◆ m_energy

float LArHitFloat::m_energy
private

energy (in MeV) deposited in this hit

Definition at line 54 of file LArHitFloat.h.

◆ m_ID

Identifier LArHitFloat::m_ID
private

identifier of the cell in which this hit occured.

Definition at line 51 of file LArHitFloat.h.

◆ m_time

float LArHitFloat::m_time
private

time (in ns)

Definition at line 57 of file LArHitFloat.h.


The documentation for this class was generated from the following file:
LArHitFloat::m_energy
float m_energy
energy (in MeV) deposited in this hit
Definition: LArHitFloat.h:54
LArHitFloat::m_time
float m_time
time (in ns)
Definition: LArHitFloat.h:57
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
LArHitFloat::m_ID
Identifier m_ID
identifier of the cell in which this hit occured.
Definition: LArHitFloat.h:51