ATLAS Offline Software
SimpleScintillatorHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SimpleScintillatorHit.h
7 // Header file for class ScintillatorHit
8 //
9 // Author Andrea Di Simone. Based on ScintillatorHit by Thomas Kittelmann <kittel@nbi.dk>
11 
12 #ifndef SIMPLESCINTILLATORHIT_H
13 #define SIMPLESCINTILLATORHIT_H
14 
16 #include "CLHEP/Vector/ThreeVector.h"
17 
19 
20 public:
21 
22  SimpleScintillatorHit( const int particleEncoding,
23  const float kineticEnergy,
24  const float energyDeposit,
25  const CLHEP::Hep3Vector& position,
26  const float globalTime,
27  const int copyNo,
28  const int track);
29 
30  // Needed by athenaRoot apparently
32  // Destructor:
33  virtual ~SimpleScintillatorHit(); //temporary make it virtual for Pool!
34 
35  int GetParticleEncoding() const;
36  float GetKineticEnergy() const;
37  float GetEnergyDeposit() const;
38  CLHEP::Hep3Vector GetPosition() const;
39  float GetGlobalTime() const;
40  int GetCopyNo() const;
41  int truthBarcode() const;
42  int truthID() const;
43  // link to the particle generating the hit
45 
46 private:
47 
48  // Forbidden. (TK: why should the copy cons. be forbidden?
49  // SimpleScintillatorHit(const SimpleScintillatorHit&);
50  // SimpleScintillatorHit &operator=(const SimpleScintillatorHit&);
51 
55  CLHEP::Hep3Vector m_position;
56  float m_globalTime;
57  int m_copyNo;
59 
60 };
61 
62 // Inline definitions:
64 
65 #endif // SCINTILLATORHIT_H
SimpleScintillatorHit::m_position
CLHEP::Hep3Vector m_position
Definition: SimpleScintillatorHit.h:55
SimpleScintillatorHit::particleLink
const HepMcParticleLink & particleLink() const
SimpleScintillatorHit::GetParticleEncoding
int GetParticleEncoding() const
SimpleScintillatorHit::m_globalTime
float m_globalTime
Definition: SimpleScintillatorHit.h:56
SimpleScintillatorHit::m_energyDeposit
float m_energyDeposit
Definition: SimpleScintillatorHit.h:54
SimpleScintillatorHit::GetCopyNo
int GetCopyNo() const
SimpleScintillatorHit
Definition: SimpleScintillatorHit.h:18
SimpleScintillatorHit::~SimpleScintillatorHit
virtual ~SimpleScintillatorHit()
Definition: SimpleScintillatorHit.cxx:23
SimpleScintillatorHit::GetKineticEnergy
float GetKineticEnergy() const
Trk::energyDeposit
@ energyDeposit
Definition: MeasurementType.h:32
SimpleScintillatorHit.icc
SimpleScintillatorHit::m_kineticEnergy
float m_kineticEnergy
Definition: SimpleScintillatorHit.h:53
SimpleScintillatorHit::GetEnergyDeposit
float GetEnergyDeposit() const
SimpleScintillatorHit::truthID
int truthID() const
Definition: SimpleScintillatorHit.cxx:46
SimpleScintillatorHit::m_partLink
HepMcParticleLink m_partLink
Definition: SimpleScintillatorHit.h:58
SimpleScintillatorHit::GetPosition
CLHEP::Hep3Vector GetPosition() const
SimpleScintillatorHit::m_particleEncoding
int m_particleEncoding
Definition: SimpleScintillatorHit.h:52
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
SimpleScintillatorHit::GetGlobalTime
float GetGlobalTime() const
SimpleScintillatorHit::SimpleScintillatorHit
SimpleScintillatorHit()
Definition: SimpleScintillatorHit.cxx:14
SimpleScintillatorHit::truthBarcode
int truthBarcode() const
Definition: SimpleScintillatorHit.cxx:42
SimpleScintillatorHit::m_copyNo
int m_copyNo
Definition: SimpleScintillatorHit.h:57