ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_TDSimHit.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 AFP_TDSimHit_h
6#define AFP_TDSimHit_h
7
9{
10 public:
11 AFP_TDSimHit(const int& nHitID, const int& nTrackID, const int& nParticleEncoding, const float& fKineticEnergy, const float& fEnergyDeposit, const float& fWaveLength, const float& fPreStepX, const float& fPreStepY, const float& fPreStepZ, const float& fPostStepX, const float& fPostStepY, const float& fPostStepZ, const float& fGlobalTime, const int& nStationID, const int& nDetectorID, const int& nSensitiveElementID);
13 virtual ~AFP_TDSimHit();
14 bool operator < (const AFP_TDSimHit& obj) const {return m_nHitID < obj.m_nHitID;}
15
16public://FIXME eventually these should be made private and should be accessed via get/set methods.
17 int m_nHitID; // To identify the hit
19 int m_nParticleEncoding; // PDG id
20 float m_fKineticEnergy; // kin energy of the particle
21 float m_fEnergyDeposit; // energy deposit by the hit
22 float m_fWaveLength; // wavelength of the photon
30
34};
35
36
37inline float hitTime(const AFP_TDSimHit& hit)
38{
39 return hit.m_fGlobalTime;
40}
41
42#endif //AFP_TDSimHit_h
float hitTime(const AFP_TDSimHit &hit)
int m_nSensitiveElementID
float m_fPostStepY
float m_fKineticEnergy
float m_fEnergyDeposit
float m_fGlobalTime
float m_fWaveLength
AFP_TDSimHit(const int &nHitID, const int &nTrackID, const int &nParticleEncoding, const float &fKineticEnergy, const float &fEnergyDeposit, const float &fWaveLength, const float &fPreStepX, const float &fPreStepY, const float &fPreStepZ, const float &fPostStepX, const float &fPostStepY, const float &fPostStepZ, const float &fGlobalTime, const int &nStationID, const int &nDetectorID, const int &nSensitiveElementID)
virtual ~AFP_TDSimHit()
float m_fPreStepZ
float m_fPostStepX
int m_nParticleEncoding
float m_fPreStepY
float m_fPreStepX
bool operator<(const AFP_TDSimHit &obj) const
float m_fPostStepZ