ATLAS Offline Software
ScintillatorHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ScintillatorHit.h
7 // Header file for class ScintillatorHit
8 //
9 // Author Thomas Kittelmann <kittel@nbi.dk>
11 
12 #ifndef SCINTILLATORHIT_H
13 #define SCINTILLATORHIT_H
14 
16 
18 
19 public:
20 
21  ScintillatorHit( const int volNumber,
22  const int particleEncoding,
23  const float kineticEnergy,
24  const float energyDeposit,
25  const float preStepX,
26  const float preStepY,
27  const float preStepZ,
28  const float postStepX,
29  const float postStepY,
30  const float postStepZ,
31  const float globalPreStepX,
32  const float globalPreStepY,
33  const float globalPreStepZ,
34  const float globalPostStepX,
35  const float globalPostStepY,
36  const float globalPostStepZ,
37  const float globalTime,
38  const int track);
39 
40  // Needed by athenaRoot apparently
42  // Destructor:
43  virtual ~ScintillatorHit(); //temporary make it virtual for Pool!
44 
45  int GetVolNumber() const;
46  int truthBarcode() const;
47  int truthID() const;
48  int GetParticleEncoding() const;
49  float GetKineticEnergy() const;
50  float GetEnergyDeposit() const;
51  float GetPreStepX() const;
52  float GetPreStepY() const;
53  float GetPreStepZ() const;
54  float GetPostStepX() const;
55  float GetPostStepY() const;
56  float GetPostStepZ() const;
57  float GetGlobalPreStepX() const;
58  float GetGlobalPreStepY() const;
59  float GetGlobalPreStepZ() const;
60  float GetGlobalPostStepX() const;
61  float GetGlobalPostStepY() const;
62  float GetGlobalPostStepZ() const;
63  float GetGlobalTime() const;
64 
65  // link to the particle generating the hit
67 
68 private:
69 
70  // Forbidden. (TK: why should the copy cons. be forbidden?
71  // ScintillatorHit(const ScintillatorHit&);
72  // ScintillatorHit &operator=(const ScintillatorHit&);
73 
78  float m_preStepX;
79  float m_preStepY;
80  float m_preStepZ;
81  float m_postStepX;
82  float m_postStepY;
83  float m_postStepZ;
90  float m_globalTime;
92 
93 };
94 
95 // Inline definitions:
96 #include "ScintillatorHit.icc"
97 
98 #endif // SCINTILLATORHIT_H
ScintillatorHit::truthID
int truthID() const
Definition: ScintillatorHit.cxx:79
ScintillatorHit::GetGlobalPreStepX
float GetGlobalPreStepX() const
ScintillatorHit::m_preStepY
float m_preStepY
Definition: ScintillatorHit.h:79
ScintillatorHit::GetGlobalPreStepY
float GetGlobalPreStepY() const
ScintillatorHit::ScintillatorHit
ScintillatorHit()
Definition: ScintillatorHit.cxx:14
ScintillatorHit::m_postStepZ
float m_postStepZ
Definition: ScintillatorHit.h:83
ScintillatorHit.icc
ScintillatorHit::m_globalTime
float m_globalTime
Definition: ScintillatorHit.h:90
ScintillatorHit::GetPreStepZ
float GetPreStepZ() const
ScintillatorHit::GetParticleEncoding
int GetParticleEncoding() const
ScintillatorHit::~ScintillatorHit
virtual ~ScintillatorHit()
Definition: ScintillatorHit.cxx:34
ScintillatorHit::m_kineticEnergy
float m_kineticEnergy
Definition: ScintillatorHit.h:76
ScintillatorHit
Definition: ScintillatorHit.h:17
Trk::energyDeposit
@ energyDeposit
Definition: MeasurementType.h:32
ScintillatorHit::GetPreStepX
float GetPreStepX() const
ScintillatorHit::m_globalPreStepX
float m_globalPreStepX
Definition: ScintillatorHit.h:84
ScintillatorHit::GetGlobalPreStepZ
float GetGlobalPreStepZ() const
ScintillatorHit::GetPostStepY
float GetPostStepY() const
ScintillatorHit::m_preStepZ
float m_preStepZ
Definition: ScintillatorHit.h:80
ScintillatorHit::m_preStepX
float m_preStepX
Definition: ScintillatorHit.h:78
ScintillatorHit::GetVolNumber
int GetVolNumber() const
ScintillatorHit::GetGlobalPostStepY
float GetGlobalPostStepY() const
ScintillatorHit::GetPostStepZ
float GetPostStepZ() const
ScintillatorHit::truthBarcode
int truthBarcode() const
Definition: ScintillatorHit.cxx:75
ScintillatorHit::m_globalPostStepY
float m_globalPostStepY
Definition: ScintillatorHit.h:88
ScintillatorHit::GetGlobalPostStepZ
float GetGlobalPostStepZ() const
ScintillatorHit::m_energyDeposit
float m_energyDeposit
Definition: ScintillatorHit.h:77
ScintillatorHit::m_particleEncoding
int m_particleEncoding
Definition: ScintillatorHit.h:75
ScintillatorHit::m_globalPreStepY
float m_globalPreStepY
Definition: ScintillatorHit.h:85
ScintillatorHit::m_postStepX
float m_postStepX
Definition: ScintillatorHit.h:81
ScintillatorHit::GetPostStepX
float GetPostStepX() const
ScintillatorHit::m_postStepY
float m_postStepY
Definition: ScintillatorHit.h:82
ScintillatorHit::m_globalPostStepZ
float m_globalPostStepZ
Definition: ScintillatorHit.h:89
ScintillatorHit::m_partLink
HepMcParticleLink m_partLink
Definition: ScintillatorHit.h:91
ScintillatorHit::GetKineticEnergy
float GetKineticEnergy() const
ScintillatorHit::m_volNumber
int m_volNumber
Definition: ScintillatorHit.h:74
ScintillatorHit::GetPreStepY
float GetPreStepY() const
ScintillatorHit::particleLink
const HepMcParticleLink & particleLink() const
ScintillatorHit::GetGlobalPostStepX
float GetGlobalPostStepX() const
ScintillatorHit::GetEnergyDeposit
float GetEnergyDeposit() const
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
ScintillatorHit::m_globalPreStepZ
float m_globalPreStepZ
Definition: ScintillatorHit.h:86
ScintillatorHit::GetGlobalTime
float GetGlobalTime() const
ScintillatorHit::m_globalPostStepX
float m_globalPostStepX
Definition: ScintillatorHit.h:87