ATLAS Offline Software
ALFA_Hit.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 #ifndef ALFA_Hit_h
6 #define ALFA_Hit_h
7 
8 // #include "GeneratorObjects/HepMcParticleLink.h"
9 
10 class ALFA_Hit
11 {
12  public:
13  ALFA_Hit(int, int, int, float, float, float, float,
14  float, float, float, float, float,
15  int, int, int, int
16  );
17 
18  // needed by athenaRoot
19  ALFA_Hit();
20 
21  // Destructor: FIXME POOL
22  virtual ~ALFA_Hit();
23 
24  bool operator < (const ALFA_Hit& obj) const
25  {return m_hitID < obj.m_hitID;}
26 
27  int GetHitID() const
28  {return m_hitID;}
29 
30  int GetTrackID() const;
31 
32  // link to the particle generating the hit
33 // const HepMcParticleLink& particleLink() const;
34 
35 
36  int GetParticleEncoding() const
37  {return m_particleEncoding;}
38 
39  float GetKineticEnergy() const
40  {return m_kineticEnergy;}
41 
42  float GetEnergyDeposit() const
43  {return m_energyDeposit;}
44 
45  float GetPreStepX() const
46  {return m_preStepX;}
47 
48  float GetPreStepY() const
49  {return m_preStepY;}
50 
51  float GetPreStepZ() const
52  {return m_preStepZ;}
53 
54  float GetPostStepX() const
55  {return m_postStepX;}
56 
57  float GetPostStepY() const
58  {return m_postStepY;}
59 
60  float GetPostStepZ() const
61  {return m_postStepZ;}
62 
63  float GetGlobalTime() const
64  {return m_globalTime;}
65 
66  int GetSignFiber() const
67  {return m_sign_fiber;}
68 
69  int GetPlateNumber() const
70  {return m_n_plate;}
71 
72  int GetFiberNumber () const
73  {return m_n_fiber;}
74 
75  int GetStationNumber () const
76  {return m_n_station;}
77 
78 
79  private:
80  int m_hitID; // To identify the hit
81  //int trackID;
82 // HepMcParticleLink m_partLink; // link to the particle generating the hit
83  int m_particleEncoding; // PDG id
84  float m_kineticEnergy; // kin energy of the particle
85  float m_energyDeposit; // energy deposit by the hit
86  float m_preStepX;
87  float m_preStepY;
88  float m_preStepZ;
89  float m_postStepX;
90  float m_postStepY;
91  float m_postStepZ;
92  float m_globalTime;
93 
95  int m_n_plate;
96  int m_n_fiber;
98 };
99 
100 
101 // inline const HepMcParticleLink& ALFA_Hit::particleLink() const
102 // {
103 // return m_partLink;
104 // }
105 
106 
107 inline float hitTime(const ALFA_Hit& hit)
108 {
109  return (float) hit.GetGlobalTime();
110 }
111 
112 #endif
113 
ALFA_Hit::m_preStepX
float m_preStepX
Definition: ALFA_Hit.h:86
ALFA_Hit::m_n_fiber
int m_n_fiber
Definition: ALFA_Hit.h:96
ALFA_Hit::GetPostStepX
float GetPostStepX() const
Definition: ALFA_Hit.h:54
ALFA_Hit::m_n_station
int m_n_station
Definition: ALFA_Hit.h:97
ALFA_Hit::GetGlobalTime
float GetGlobalTime() const
Definition: ALFA_Hit.h:63
ALFA_Hit::~ALFA_Hit
virtual ~ALFA_Hit()
Definition: ALFA_Hit.cxx:48
ALFA_Hit::GetEnergyDeposit
float GetEnergyDeposit() const
Definition: ALFA_Hit.h:42
ALFA_Hit::GetPostStepZ
float GetPostStepZ() const
Definition: ALFA_Hit.h:60
ALFA_Hit::GetPostStepY
float GetPostStepY() const
Definition: ALFA_Hit.h:57
ALFA_Hit::GetPreStepY
float GetPreStepY() const
Definition: ALFA_Hit.h:48
ALFA_Hit::m_postStepY
float m_postStepY
Definition: ALFA_Hit.h:90
ALFA_Hit::GetParticleEncoding
int GetParticleEncoding() const
Definition: ALFA_Hit.h:36
ALFA_Hit::m_kineticEnergy
float m_kineticEnergy
Definition: ALFA_Hit.h:84
ALFA_Hit::GetPreStepX
float GetPreStepX() const
Definition: ALFA_Hit.h:45
ALFA_Hit::m_n_plate
int m_n_plate
Definition: ALFA_Hit.h:95
ALFA_Hit::GetSignFiber
int GetSignFiber() const
Definition: ALFA_Hit.h:66
ALFA_Hit::m_hitID
int m_hitID
Definition: ALFA_Hit.h:80
ALFA_Hit::GetHitID
int GetHitID() const
Definition: ALFA_Hit.h:27
ALFA_Hit::GetKineticEnergy
float GetKineticEnergy() const
Definition: ALFA_Hit.h:39
ALFA_Hit::m_preStepZ
float m_preStepZ
Definition: ALFA_Hit.h:88
ALFA_Hit::GetTrackID
int GetTrackID() const
Definition: ALFA_Hit.cxx:50
ALFA_Hit::m_energyDeposit
float m_energyDeposit
Definition: ALFA_Hit.h:85
ALFA_Hit::GetFiberNumber
int GetFiberNumber() const
Definition: ALFA_Hit.h:72
ALFA_Hit::m_globalTime
float m_globalTime
Definition: ALFA_Hit.h:92
ALFA_Hit::GetPreStepZ
float GetPreStepZ() const
Definition: ALFA_Hit.h:51
ALFA_Hit::operator<
bool operator<(const ALFA_Hit &obj) const
Definition: ALFA_Hit.h:24
ALFA_Hit::GetPlateNumber
int GetPlateNumber() const
Definition: ALFA_Hit.h:69
ALFA_Hit::m_postStepX
float m_postStepX
Definition: ALFA_Hit.h:89
ALFA_Hit::m_postStepZ
float m_postStepZ
Definition: ALFA_Hit.h:91
ALFA_Hit::GetStationNumber
int GetStationNumber() const
Definition: ALFA_Hit.h:75
ALFA_Hit
Definition: ALFA_Hit.h:11
ALFA_Hit::ALFA_Hit
ALFA_Hit()
Definition: ALFA_Hit.cxx:35
ALFA_Hit::m_particleEncoding
int m_particleEncoding
Definition: ALFA_Hit.h:83
python.PyAthena.obj
obj
Definition: PyAthena.py:132
ALFA_Hit::m_preStepY
float m_preStepY
Definition: ALFA_Hit.h:87
hitTime
float hitTime(const ALFA_Hit &hit)
Definition: ALFA_Hit.h:107
ALFA_Hit::m_sign_fiber
int m_sign_fiber
Definition: ALFA_Hit.h:94