ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCSimHit Class Referencefinal

#include <sTGCSimHit.h>

Collaboration diagram for sTGCSimHit:

Public Member Functions

 sTGCSimHit ()
 ~sTGCSimHit ()
 sTGCSimHit (HitID id, double time, const Amg::Vector3D &position, const int particleEncoding, const Amg::Vector3D &direction, const double depositEnergy, const int truthBarcode)
 sTGCSimHit (HitID id, double time, const Amg::Vector3D &position, const int particleEncoding, const Amg::Vector3D &direction, const double depositEnergy, const HepMcParticleLink &hmpl)
 sTGCSimHit (HitID id, double time, const Amg::Vector3D &position, const int particleEncoding, const Amg::Vector3D &direction, const double depositEnergy, const HepMcParticleLink &hmpl, const double kineticEnergy, const Amg::Vector3D &preposition)
double globalTime () const
const Amg::Vector3DglobalPosition () const
int particleEncoding () const
const Amg::Vector3DglobalDirection () const
double depositEnergy () const
double kineticEnergy () const
const Amg::Vector3DglobalPrePosition () const
HitID sTGCId () const
std::string print () const
bool operator< (const sTGCSimHit &rhs) const
double meanTime () const
void setGlobalTime (const double time)
void setDepositEnergy (const double depositEnergy)
void setGlobalPosition (const Amg::Vector3D &globalPosition)
 sets the position expressed in global coordinates
void setGlobalDirection (const Amg::Vector3D &globalDirection)
 sets the direction expressed in global coordinates
int truthBarcode () const
int truthID () const
const HepMcParticleLinkparticleLink () const

Private Attributes

HitID m_sTGCId
float m_globalTime
Amg::Vector3D m_globalPosition
int m_particleEncoding
Amg::Vector3D m_globalDirection
float m_depositEnergy
HepMcParticleLink m_partLink
float m_kineticEnergy
Amg::Vector3D m_globalPrePosition

Detailed Description

Definition at line 15 of file sTGCSimHit.h.

Constructor & Destructor Documentation

◆ sTGCSimHit() [1/4]

sTGCSimHit::sTGCSimHit ( )

Definition at line 8 of file sTGCSimHit.cxx.

8 :
9 m_sTGCId(0xffff),
10 m_globalTime(0.),
11 m_particleEncoding(0),// PDG_ID
12 m_depositEnergy(-9999.),//Geant4 deposited energy
13 m_partLink(),
15{
16}
HepMcParticleLink m_partLink
Definition sTGCSimHit.h:87
float m_depositEnergy
Definition sTGCSimHit.h:85
float m_kineticEnergy
Definition sTGCSimHit.h:90
float m_globalTime
Definition sTGCSimHit.h:78
HitID m_sTGCId
Definition sTGCSimHit.h:77
int m_particleEncoding
Definition sTGCSimHit.h:82

◆ ~sTGCSimHit()

sTGCSimHit::~sTGCSimHit ( )
default

◆ sTGCSimHit() [2/4]

sTGCSimHit::sTGCSimHit ( HitID id,
double time,
const Amg::Vector3D & position,
const int particleEncoding,
const Amg::Vector3D & direction,
const double depositEnergy,
const int truthBarcode )

Definition at line 21 of file sTGCSimHit.cxx.

27 : m_sTGCId(id), m_globalTime(time)
28 , m_globalPosition(position)
30 , m_globalDirection(direction)
33 , m_kineticEnergy(-1.0)
34{
35}
Amg::Vector3D m_globalPosition
Definition sTGCSimHit.h:80
int truthBarcode() const
int particleEncoding() const
Definition sTGCSimHit.h:45
double depositEnergy() const
Definition sTGCSimHit.h:47
Amg::Vector3D m_globalDirection
Definition sTGCSimHit.h:84

◆ sTGCSimHit() [3/4]

sTGCSimHit::sTGCSimHit ( HitID id,
double time,
const Amg::Vector3D & position,
const int particleEncoding,
const Amg::Vector3D & direction,
const double depositEnergy,
const HepMcParticleLink & hmpl )

Definition at line 37 of file sTGCSimHit.cxx.

43 : m_sTGCId(id), m_globalTime(time)
44 , m_globalPosition(position)
46 , m_globalDirection(direction)
48 , m_partLink(hmpl)
49 , m_kineticEnergy(-1.0)
50{
51}

◆ sTGCSimHit() [4/4]

sTGCSimHit::sTGCSimHit ( HitID id,
double time,
const Amg::Vector3D & position,
const int particleEncoding,
const Amg::Vector3D & direction,
const double depositEnergy,
const HepMcParticleLink & hmpl,
const double kineticEnergy,
const Amg::Vector3D & preposition )

Definition at line 53 of file sTGCSimHit.cxx.

61 : m_sTGCId(id)
62 , m_globalTime(static_cast<float>(time))
63 , m_globalPosition(position)
65 , m_globalDirection(direction)
66 , m_depositEnergy(static_cast<float>(depositEnergy))
67 , m_partLink(hmpl)
68 , m_kineticEnergy(static_cast<float>(kineticEnergy))
69 , m_globalPrePosition(preposition)
70{
71}
double kineticEnergy() const
Definition sTGCSimHit.h:48
Amg::Vector3D m_globalPrePosition
Definition sTGCSimHit.h:91

Member Function Documentation

◆ depositEnergy()

double sTGCSimHit::depositEnergy ( ) const
inline

Definition at line 47 of file sTGCSimHit.h.

47{ return (double) m_depositEnergy; }

◆ globalDirection()

const Amg::Vector3D & sTGCSimHit::globalDirection ( ) const
inline

Definition at line 46 of file sTGCSimHit.h.

46{ return m_globalDirection; }

◆ globalPosition()

const Amg::Vector3D & sTGCSimHit::globalPosition ( ) const
inline

Definition at line 44 of file sTGCSimHit.h.

44{ return m_globalPosition; }

◆ globalPrePosition()

const Amg::Vector3D & sTGCSimHit::globalPrePosition ( ) const
inline

Definition at line 49 of file sTGCSimHit.h.

49{ return m_globalPrePosition; }

◆ globalTime()

double sTGCSimHit::globalTime ( ) const
inline

Definition at line 41 of file sTGCSimHit.h.

41{ return (double) m_globalTime; }

◆ kineticEnergy()

double sTGCSimHit::kineticEnergy ( ) const
inline

Definition at line 48 of file sTGCSimHit.h.

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

◆ meanTime()

double sTGCSimHit::meanTime ( ) const
inline

Definition at line 98 of file sTGCSimHit.h.

99{ return (double) m_globalTime; }

◆ operator<()

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

Definition at line 54 of file sTGCSimHit.h.

55 { return m_sTGCId < rhs.m_sTGCId; }

◆ particleEncoding()

int sTGCSimHit::particleEncoding ( ) const
inline

Definition at line 45 of file sTGCSimHit.h.

45{ return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & sTGCSimHit::particleLink ( ) const
inline

Definition at line 96 of file sTGCSimHit.h.

97{ return m_partLink; }

◆ print()

std::string sTGCSimHit::print ( ) const

Definition at line 74 of file sTGCSimHit.cxx.

74 {
75
76 std::stringstream ss;
77
78 ss << "-------------------------------------------------------------" << std::endl;
79 ss << "sTGCSimHit:";
80 ss << " identifier: " << m_sTGCId;
81 ss << " t: " << m_globalTime;
82 ss << " x : (" << m_globalPosition.x()
83 << "," << m_globalPosition.y()
84 << "," << m_globalPosition.z()
85 << ")";
86 ss << " pdgId: "<< m_particleEncoding;
87 ss << " KineticEnergy: " << m_kineticEnergy;
88 ss << " x(pre) : (" << m_globalPrePosition.x()
89 << "," << m_globalPrePosition.y()
90 << "," << m_globalPrePosition.z()
91 << ")";
92 ss << " dir : (" << m_globalDirection.x()
93 << "," << m_globalDirection.y()
94 << "," << m_globalDirection.z()
95 << ")";
96 ss << std::endl;
97
98 return ss.str();
99}
static Double_t ss

◆ setDepositEnergy()

void sTGCSimHit::setDepositEnergy ( const double depositEnergy)
inline

Definition at line 60 of file sTGCSimHit.h.

◆ setGlobalDirection()

void sTGCSimHit::setGlobalDirection ( const Amg::Vector3D & globalDirection)
inline

sets the direction expressed in global coordinates

Definition at line 62 of file sTGCSimHit.h.

◆ setGlobalPosition()

void sTGCSimHit::setGlobalPosition ( const Amg::Vector3D & globalPosition)
inline

sets the position expressed in global coordinates

Definition at line 61 of file sTGCSimHit.h.

◆ setGlobalTime()

void sTGCSimHit::setGlobalTime ( const double time)
inline

Definition at line 59 of file sTGCSimHit.h.

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

◆ sTGCId()

HitID sTGCSimHit::sTGCId ( ) const
inline

Definition at line 51 of file sTGCSimHit.h.

51{ return m_sTGCId; }

◆ truthBarcode()

int sTGCSimHit::truthBarcode ( ) const

Definition at line 102 of file sTGCSimHit.cxx.

103{ return m_partLink.barcode(); }

◆ truthID()

int sTGCSimHit::truthID ( ) const

Definition at line 106 of file sTGCSimHit.cxx.

107{ return m_partLink.id(); }

Member Data Documentation

◆ m_depositEnergy

float sTGCSimHit::m_depositEnergy
private

Definition at line 85 of file sTGCSimHit.h.

◆ m_globalDirection

Amg::Vector3D sTGCSimHit::m_globalDirection
private

Definition at line 84 of file sTGCSimHit.h.

◆ m_globalPosition

Amg::Vector3D sTGCSimHit::m_globalPosition
private

Definition at line 80 of file sTGCSimHit.h.

◆ m_globalPrePosition

Amg::Vector3D sTGCSimHit::m_globalPrePosition
private

Definition at line 91 of file sTGCSimHit.h.

◆ m_globalTime

float sTGCSimHit::m_globalTime
private

Definition at line 78 of file sTGCSimHit.h.

◆ m_kineticEnergy

float sTGCSimHit::m_kineticEnergy
private

Definition at line 90 of file sTGCSimHit.h.

◆ m_particleEncoding

int sTGCSimHit::m_particleEncoding
private

Definition at line 82 of file sTGCSimHit.h.

◆ m_partLink

HepMcParticleLink sTGCSimHit::m_partLink
private

Definition at line 87 of file sTGCSimHit.h.

◆ m_sTGCId

HitID sTGCSimHit::m_sTGCId
private

Definition at line 77 of file sTGCSimHit.h.


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