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