ATLAS Offline Software
LArHitFloat.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // 12-march-2006 G.Unal: alternative LArHit object with float energy and time
6 // to be used in digitization /pileup to optimize memory usage
7 
8 #ifndef LArSimEvent_LArHitFloat_h
9 #define LArSimEvent_LArHitFloat_h
10 
11 #include "Identifier/Identifier.h"
12 #include "CLHEP/Units/SystemOfUnits.h"
13 
15 
18 {
19 public:
20 
27  LArHitFloat(Identifier l_cell, float l_energy, float l_time);
28 
32  LArHitFloat();
33 
35  ~LArHitFloat();
36 
38  Identifier cellID() const;
39 
41  float energy() const;
42 
46  float time() const;
47 
48 private:
49 
52 
54  float m_energy;
55 
57  float m_time;
58 
59 };
60 
61 
63 inline
64 LArHitFloat::LArHitFloat(Identifier l_cell, float l_energy, float l_time)
65  :
66  m_ID(l_cell),
67  m_energy(l_energy),
68  m_time(l_time )
69 {}
70 
71 
72 inline
74  :
75  m_ID(Identifier()),
76  m_energy(0.),
77  m_time(0.)
78 {}
79 
80 inline
82 { }
83 
84 inline
87 { return m_ID; }
88 
89 inline
90 float
92 { return m_energy; }
93 
94 inline
95 float
97 { return m_time; }
98 
99 #endif // LArSimEvent_LArHitFloat_h
LArHitFloat::energy
float energy() const
Definition: LArHitFloat.h:91
LArHitFloat
Class to store hit energy and time in LAr cell from G4 simulation.
Definition: LArHitFloat.h:18
LArHitFloat::m_energy
float m_energy
energy (in MeV) deposited in this hit
Definition: LArHitFloat.h:54
LArHitFloat::~LArHitFloat
~LArHitFloat()
Destructor.
Definition: LArHitFloat.h:81
LArHitFloat::m_time
float m_time
time (in ns)
Definition: LArHitFloat.h:57
LArHitFloat::LArHitFloat
LArHitFloat()
Default constructor for persistency.
Definition: LArHitFloat.h:73
LArHitFloat::time
float time() const
Definition: LArHitFloat.h:96
LArHitFloat::cellID
Identifier cellID() const
Definition: LArHitFloat.h:86
LArHitFloat::m_ID
Identifier m_ID
identifier of the cell in which this hit occured.
Definition: LArHitFloat.h:51
Identifier
Definition: IdentifierFieldParser.cxx:14