ATLAS Offline Software
Loading...
Searching...
No Matches
TGCSimHit Class Reference

#include <TGCSimHit.h>

Collaboration diagram for TGCSimHit:

Public Member Functions

 TGCSimHit ()
 ~TGCSimHit ()
 TGCSimHit (const int id, const double time, const Amg::Vector3D &position, const Amg::Vector3D &direcos)
 TGCSimHit (const int id, const double time, const Amg::Vector3D &position, const Amg::Vector3D &direcos, const int truthBarcode, const double energyDeposit, const double stepLength, const int particleEncoding=0, const double kineticEnergy=-9999.)
 TGCSimHit (const int id, const double time, const Amg::Vector3D &position, const Amg::Vector3D &direcos, const HepMcParticleLink &hmpl, const double energyDeposit, const double stepLength, const int particleEncoding=0, const double kineticEnergy=-9999.)
double globalTime () const
const Amg::Vector3DlocalPosition () const
const Amg::Vector3DlocalDireCos () const
int TGCid () const
double energyDeposit () const
double stepLength () const
int particleEncoding () const
double kineticEnergy () const
std::string print () const
bool operator< (const TGCSimHit &rhs) const
double meanTime () const
int truthBarcode () const
int truthID () const
const HepMcParticleLinkparticleLink () const
void setGlobalTime (const double time)

Private Attributes

int m_TGCid
float m_globalTime
Amg::Vector3D m_localPosition
Amg::Vector3D m_localDireCos
HepMcParticleLink m_partLink
float m_energyDeposit
float m_stepLength
int m_particleEncoding
float m_kineticEnergy

Detailed Description

Definition at line 19 of file TGCSimHit.h.

Constructor & Destructor Documentation

◆ TGCSimHit() [1/4]

TGCSimHit::TGCSimHit ( )

Definition at line 10 of file TGCSimHit.cxx.

10 :
11 m_TGCid(0xffff),
12 m_globalTime(0.),
13 m_partLink(),
14 m_energyDeposit(-9999.),
15 m_stepLength(-9999.),
17 m_kineticEnergy(-9999.)
18{
19}
float m_stepLength
Definition TGCSimHit.h:77
float m_kineticEnergy
Definition TGCSimHit.h:79
float m_energyDeposit
Definition TGCSimHit.h:76
float m_globalTime
Definition TGCSimHit.h:72
HepMcParticleLink m_partLink
Definition TGCSimHit.h:75
int m_particleEncoding
Definition TGCSimHit.h:78
int m_TGCid
Definition TGCSimHit.h:71

◆ ~TGCSimHit()

TGCSimHit::~TGCSimHit ( )
default

◆ TGCSimHit() [2/4]

TGCSimHit::TGCSimHit ( const int id,
const double time,
const Amg::Vector3D & position,
const Amg::Vector3D & direcos )

Definition at line 24 of file TGCSimHit.cxx.

28 : m_TGCid(id)
29 , m_globalTime(static_cast<float>(time))
30 , m_localPosition(position)
31 , m_localDireCos(direcos)
32 , m_partLink()
33 , m_energyDeposit(-9999.)
34 , m_stepLength(-9999.)
36 , m_kineticEnergy(-9999.)
37{
38
39}
Amg::Vector3D m_localDireCos
Definition TGCSimHit.h:74
Amg::Vector3D m_localPosition
Definition TGCSimHit.h:73

◆ TGCSimHit() [3/4]

TGCSimHit::TGCSimHit ( const int id,
const double time,
const Amg::Vector3D & position,
const Amg::Vector3D & direcos,
const int truthBarcode,
const double energyDeposit,
const double stepLength,
const int particleEncoding = 0,
const double kineticEnergy = -9999. )

Definition at line 41 of file TGCSimHit.cxx.

50 : m_TGCid(id)
51 , m_globalTime(static_cast<float>(time))
52 , m_localPosition(position)
53 , m_localDireCos(direcos)
55 , m_energyDeposit(static_cast<float>(energyDeposit))
56 , m_stepLength(static_cast<float>(stepLength))
58 , m_kineticEnergy(static_cast<float>(kineticEnergy))
59{
60
61}
double kineticEnergy() const
Definition TGCSimHit.h:49
int particleEncoding() const
Definition TGCSimHit.h:48
double energyDeposit() const
Definition TGCSimHit.h:46
int truthBarcode() const
double stepLength() const
Definition TGCSimHit.h:47

◆ TGCSimHit() [4/4]

TGCSimHit::TGCSimHit ( const int id,
const double time,
const Amg::Vector3D & position,
const Amg::Vector3D & direcos,
const HepMcParticleLink & hmpl,
const double energyDeposit,
const double stepLength,
const int particleEncoding = 0,
const double kineticEnergy = -9999. )

Definition at line 63 of file TGCSimHit.cxx.

72 : m_TGCid(id)
73 , m_globalTime(static_cast<float>(time))
74 , m_localPosition(position)
75 , m_localDireCos(direcos)
76 , m_partLink(hmpl)
77 , m_energyDeposit(static_cast<float>(energyDeposit))
78 , m_stepLength(static_cast<float>(stepLength))
80 , m_kineticEnergy(static_cast<float>(kineticEnergy))
81{
82
83}

Member Function Documentation

◆ energyDeposit()

double TGCSimHit::energyDeposit ( ) const
inline

Definition at line 46 of file TGCSimHit.h.

46{ return static_cast<double>(m_energyDeposit); }

◆ globalTime()

double TGCSimHit::globalTime ( ) const
inline

Definition at line 42 of file TGCSimHit.h.

42{ return static_cast<double>(m_globalTime); }

◆ kineticEnergy()

double TGCSimHit::kineticEnergy ( ) const
inline

Definition at line 49 of file TGCSimHit.h.

49{ return static_cast<double>(m_kineticEnergy); }

◆ localDireCos()

const Amg::Vector3D & TGCSimHit::localDireCos ( ) const
inline

Definition at line 44 of file TGCSimHit.h.

44{ return m_localDireCos; }

◆ localPosition()

const Amg::Vector3D & TGCSimHit::localPosition ( ) const
inline

Definition at line 43 of file TGCSimHit.h.

43{ return m_localPosition; }

◆ meanTime()

double TGCSimHit::meanTime ( ) const
inline

Definition at line 84 of file TGCSimHit.h.

85 { return (double) m_globalTime; }

◆ operator<()

bool TGCSimHit::operator< ( const TGCSimHit & rhs) const
inline

Definition at line 52 of file TGCSimHit.h.

53 { return m_TGCid < rhs.m_TGCid; }

◆ particleEncoding()

int TGCSimHit::particleEncoding ( ) const
inline

Definition at line 48 of file TGCSimHit.h.

48{ return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & TGCSimHit::particleLink ( ) const
inline

Definition at line 87 of file TGCSimHit.h.

88 { return m_partLink; }

◆ print()

std::string TGCSimHit::print ( ) const

Definition at line 90 of file TGCSimHit.cxx.

90 {
91
92 std::stringstream ss;
93
94 ss << "TGCSimHit:";
95 ss << " identifier: " << m_TGCid;
96 ss << " t: " << m_globalTime;
97 ss << " x: (" << m_localPosition.x()
98 << "," << m_localPosition.y()
99 << "," << m_localPosition.z()
100 << ")";
101 ss << " dir: (" << m_localDireCos.x()
102 << "," << m_localDireCos.y()
103 << "," << m_localDireCos.z()
104 << ")";
105 ss << " dE: " << m_energyDeposit;
106 ss << " l: " << m_stepLength;
107
108 return ss.str();
109}
static Double_t ss

◆ setGlobalTime()

void TGCSimHit::setGlobalTime ( const double time)
inline

Definition at line 65 of file TGCSimHit.h.

65{ m_globalTime = time; }
time(flags, cells_name, *args, **kw)

◆ stepLength()

double TGCSimHit::stepLength ( ) const
inline

Definition at line 47 of file TGCSimHit.h.

47{ return static_cast<double>(m_stepLength); }

◆ TGCid()

int TGCSimHit::TGCid ( ) const
inline

Definition at line 45 of file TGCSimHit.h.

45{ return m_TGCid; }

◆ truthBarcode()

int TGCSimHit::truthBarcode ( ) const

Definition at line 111 of file TGCSimHit.cxx.

112 { return m_partLink.barcode(); }

◆ truthID()

int TGCSimHit::truthID ( ) const

Definition at line 114 of file TGCSimHit.cxx.

115{ return m_partLink.id(); }

Member Data Documentation

◆ m_energyDeposit

float TGCSimHit::m_energyDeposit
private

Definition at line 76 of file TGCSimHit.h.

◆ m_globalTime

float TGCSimHit::m_globalTime
private

Definition at line 72 of file TGCSimHit.h.

◆ m_kineticEnergy

float TGCSimHit::m_kineticEnergy
private

Definition at line 79 of file TGCSimHit.h.

◆ m_localDireCos

Amg::Vector3D TGCSimHit::m_localDireCos
private

Definition at line 74 of file TGCSimHit.h.

◆ m_localPosition

Amg::Vector3D TGCSimHit::m_localPosition
private

Definition at line 73 of file TGCSimHit.h.

◆ m_particleEncoding

int TGCSimHit::m_particleEncoding
private

Definition at line 78 of file TGCSimHit.h.

◆ m_partLink

HepMcParticleLink TGCSimHit::m_partLink
private

Definition at line 75 of file TGCSimHit.h.

◆ m_stepLength

float TGCSimHit::m_stepLength
private

Definition at line 77 of file TGCSimHit.h.

◆ m_TGCid

int TGCSimHit::m_TGCid
private

Definition at line 71 of file TGCSimHit.h.


The documentation for this class was generated from the following files: