ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18{
19public:
20
27 LArHitFloat(Identifier l_cell, float l_energy, float l_time);
28
33
36
38 Identifier cellID() const;
39
41 float energy() const;
42
46 float time() const;
47
48private:
49
52
54 float m_energy;
55
57 float m_time;
58
59};
60
61
63inline
64LArHitFloat::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
72inline
74 :
76 m_energy(0.),
77 m_time(0.)
78{}
79
80inline
83
84inline
87{ return m_ID; }
88
89inline
90float
92{ return m_energy; }
93
94inline
95float
97{ return m_time; }
98
99#endif // LArSimEvent_LArHitFloat_h
~LArHitFloat()
Destructor.
Definition LArHitFloat.h:81
float energy() const
Definition LArHitFloat.h:91
Identifier m_ID
identifier of the cell in which this hit occured.
Definition LArHitFloat.h:51
Identifier cellID() const
Definition LArHitFloat.h:86
LArHitFloat(Identifier l_cell, float l_energy, float l_time)
LArHitFloat Constructor.
Definition LArHitFloat.h:64
float m_energy
energy (in MeV) deposited in this hit
Definition LArHitFloat.h:54
float m_time
time (in ns)
Definition LArHitFloat.h:57
float time() const
Definition LArHitFloat.h:96
LArHitFloat()
Default constructor for persistency.
Definition LArHitFloat.h:73