ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MDTSimHit Class Referencefinal

#include <MDTSimHit.h>

Collaboration diagram for MDTSimHit:

Public Member Functions

 MDTSimHit ()
 
 ~MDTSimHit ()
 
 MDTSimHit (HitID id, double time, double radius, const Amg::Vector3D &position)
 
 MDTSimHit (HitID id, double time, double radius, const Amg::Vector3D &position, const int truthBarcode)
 
 MDTSimHit (HitID id, double time, double radius, const Amg::Vector3D &position, const int truthBarcode, const double stepLength, const double energyDeposit, const int particleEncoding, const double kineticEnergy)
 
 MDTSimHit (HitID id, double time, double radius, const Amg::Vector3D &position, const HepMcParticleLink &hmpl, const double stepLength, const double energyDeposit, const int particleEncoding, const double kineticEnergy)
 
double globalTime () const
 
void setGlobalTime (double time)
 
double driftRadius () const
 
void setDriftRadius (double radius)
 
const Amg::Vector3DlocalPosition () const
 
void setLocalPosition (Amg::Vector3D &localPosition)
 
double stepLength () const
 
double energyDeposit () const
 
int particleEncoding () const
 
double kineticEnergy () const
 
HitID MDTid () const
 
std::string print () const
 
bool operator< (const MDTSimHit &rhs) const
 
double meanTime () const
 
int truthBarcode () const
 
int truthID () const
 
const HepMcParticleLinkparticleLink () const
 

Private Attributes

HitID m_MDTid
 
float m_globalTime
 
float m_driftRadius
 
Amg::Vector3D m_localPosition
 
HepMcParticleLink m_partLink
 
float m_stepLength
 
float m_energyDeposit
 
int m_particleEncoding
 
float m_kineticEnergy
 

Detailed Description

Definition at line 21 of file MDTSimHit.h.

Constructor & Destructor Documentation

◆ MDTSimHit() [1/5]

MDTSimHit::MDTSimHit ( )

Definition at line 11 of file MDTSimHit.cxx.

11  :
12  m_MDTid(0xffff),
13  m_globalTime(0.),
14  m_driftRadius(0.),
15  m_partLink(),
16  m_stepLength(0.),
17  m_energyDeposit(0.),
19  m_kineticEnergy(0.)
20 
21 {
22 }

◆ ~MDTSimHit()

MDTSimHit::~MDTSimHit ( )
default

◆ MDTSimHit() [2/5]

MDTSimHit::MDTSimHit ( HitID  id,
double  time,
double  radius,
const Amg::Vector3D position 
)

Definition at line 28 of file MDTSimHit.cxx.

32  : m_MDTid(id), m_globalTime(time)
34  , m_localPosition(position)
35 {
36  m_stepLength = -9999999.; //total lenght of particle
37  m_energyDeposit = -1.; //Geant4 deposited energy
38  m_particleEncoding = 0; // PDG_ID
39  m_kineticEnergy = -1.; // energy of the particle
40 }

◆ MDTSimHit() [3/5]

MDTSimHit::MDTSimHit ( HitID  id,
double  time,
double  radius,
const Amg::Vector3D position,
const int  truthBarcode 
)

Definition at line 42 of file MDTSimHit.cxx.

47  : m_MDTid(id), m_globalTime(time)
49  , m_localPosition(position)
51 {
52  m_stepLength = -9999999.; //total lenght of particle
53  m_energyDeposit = -1.; //Geant4 deposited energy
54  m_particleEncoding = 0; // PDG_ID
55  m_kineticEnergy = -1.; // energy of the particle
56 }

◆ MDTSimHit() [4/5]

MDTSimHit::MDTSimHit ( HitID  id,
double  time,
double  radius,
const Amg::Vector3D position,
const int  truthBarcode,
const double  stepLength,
const double  energyDeposit,
const int  particleEncoding,
const double  kineticEnergy 
)

Definition at line 58 of file MDTSimHit.cxx.

67  : m_MDTid(id), m_globalTime(time)
69  , m_localPosition(position)
71  , m_stepLength(static_cast<float>(stepLength))
72  , m_energyDeposit(static_cast<float>(energyDeposit))
74  , m_kineticEnergy(static_cast<float>(kineticEnergy))
75 {
76 }

◆ MDTSimHit() [5/5]

MDTSimHit::MDTSimHit ( HitID  id,
double  time,
double  radius,
const Amg::Vector3D position,
const HepMcParticleLink hmpl,
const double  stepLength,
const double  energyDeposit,
const int  particleEncoding,
const double  kineticEnergy 
)

Definition at line 78 of file MDTSimHit.cxx.

87  : m_MDTid(id), m_globalTime(time)
89  , m_localPosition(position)
90  , m_partLink(hmpl)
91  , m_stepLength(static_cast<float>(stepLength))
92  , m_energyDeposit(static_cast<float>(energyDeposit))
94  , m_kineticEnergy(static_cast<float>(kineticEnergy))
95 {
96 }

Member Function Documentation

◆ driftRadius()

double MDTSimHit::driftRadius ( ) const
inline

Definition at line 51 of file MDTSimHit.h.

51 { return (double) m_driftRadius; }

◆ energyDeposit()

double MDTSimHit::energyDeposit ( ) const
inline

Definition at line 58 of file MDTSimHit.h.

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

◆ globalTime()

double MDTSimHit::globalTime ( ) const
inline

Definition at line 48 of file MDTSimHit.h.

48 { return (double) m_globalTime; }

◆ kineticEnergy()

double MDTSimHit::kineticEnergy ( ) const
inline

Definition at line 60 of file MDTSimHit.h.

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

◆ localPosition()

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

Definition at line 54 of file MDTSimHit.h.

54 { return m_localPosition; }

◆ MDTid()

HitID MDTSimHit::MDTid ( ) const
inline

Definition at line 62 of file MDTSimHit.h.

62 { return m_MDTid; }

◆ meanTime()

double MDTSimHit::meanTime ( ) const
inline

Definition at line 97 of file MDTSimHit.h.

98 { return (double) m_globalTime; }

◆ operator<()

bool MDTSimHit::operator< ( const MDTSimHit rhs) const
inline

Definition at line 64 of file MDTSimHit.h.

65  { return m_MDTid < rhs.m_MDTid; }

◆ particleEncoding()

int MDTSimHit::particleEncoding ( ) const
inline

Definition at line 59 of file MDTSimHit.h.

59 { return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & MDTSimHit::particleLink ( ) const
inline

Definition at line 100 of file MDTSimHit.h.

101 { return m_partLink; }

◆ print()

std::string MDTSimHit::print ( ) const

Definition at line 100 of file MDTSimHit.cxx.

100  {
101 
102  std::stringstream ss;
103 
104  ss << "MDTSimHit:";
105  ss << " identifier: " << m_MDTid;
106  ss << " t: " << m_globalTime;
107  ss << " r: " << m_driftRadius;
108  ss << " x: (" << m_localPosition.x()
109  << "," << m_localPosition.y()
110  << "," << m_localPosition.z()
111  << ")";
112  ss << " EnergyDeposit: "<<m_energyDeposit<<" pdgId: "<<m_particleEncoding<<" kineticEnergy: "<<m_kineticEnergy;
113  ss << " StepLength: " << m_stepLength;
114 
115  return ss.str();
116 }

◆ setDriftRadius()

void MDTSimHit::setDriftRadius ( double  radius)
inline

Definition at line 52 of file MDTSimHit.h.

52 { m_driftRadius = radius; } // Need to adjust this when applyin deformations during digitization

◆ setGlobalTime()

void MDTSimHit::setGlobalTime ( double  time)
inline

Definition at line 49 of file MDTSimHit.h.

49 { m_globalTime = time; }

◆ setLocalPosition()

void MDTSimHit::setLocalPosition ( Amg::Vector3D localPosition)
inline

Definition at line 55 of file MDTSimHit.h.

55 { m_localPosition = localPosition; } // Need to adjust this when applyin deformations during digitization

◆ stepLength()

double MDTSimHit::stepLength ( ) const
inline

Definition at line 57 of file MDTSimHit.h.

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

◆ truthBarcode()

int MDTSimHit::truthBarcode ( ) const

Definition at line 118 of file MDTSimHit.cxx.

119  { return m_partLink.barcode(); }

◆ truthID()

int MDTSimHit::truthID ( ) const

Definition at line 121 of file MDTSimHit.cxx.

122 { return m_partLink.id(); }

Member Data Documentation

◆ m_driftRadius

float MDTSimHit::m_driftRadius
private

Definition at line 84 of file MDTSimHit.h.

◆ m_energyDeposit

float MDTSimHit::m_energyDeposit
private

Definition at line 89 of file MDTSimHit.h.

◆ m_globalTime

float MDTSimHit::m_globalTime
private

Definition at line 83 of file MDTSimHit.h.

◆ m_kineticEnergy

float MDTSimHit::m_kineticEnergy
private

Definition at line 91 of file MDTSimHit.h.

◆ m_localPosition

Amg::Vector3D MDTSimHit::m_localPosition
private

Definition at line 85 of file MDTSimHit.h.

◆ m_MDTid

HitID MDTSimHit::m_MDTid
private

Definition at line 82 of file MDTSimHit.h.

◆ m_particleEncoding

int MDTSimHit::m_particleEncoding
private

Definition at line 90 of file MDTSimHit.h.

◆ m_partLink

HepMcParticleLink MDTSimHit::m_partLink
private

Definition at line 86 of file MDTSimHit.h.

◆ m_stepLength

float MDTSimHit::m_stepLength
private

Definition at line 88 of file MDTSimHit.h.


The documentation for this class was generated from the following files:
MDTSimHit::m_energyDeposit
float m_energyDeposit
Definition: MDTSimHit.h:89
MDTSimHit::m_localPosition
Amg::Vector3D m_localPosition
Definition: MDTSimHit.h:85
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
MDTSimHit::m_kineticEnergy
float m_kineticEnergy
Definition: MDTSimHit.h:91
MDTSimHit::localPosition
const Amg::Vector3D & localPosition() const
Definition: MDTSimHit.h:54
MDTSimHit::m_particleEncoding
int m_particleEncoding
Definition: MDTSimHit.h:90
MDTSimHit::m_driftRadius
float m_driftRadius
Definition: MDTSimHit.h:84
MDTSimHit::m_globalTime
float m_globalTime
Definition: MDTSimHit.h:83
MDTSimHit::energyDeposit
double energyDeposit() const
Definition: MDTSimHit.h:58
MDTSimHit::kineticEnergy
double kineticEnergy() const
Definition: MDTSimHit.h:60
MDTSimHit::m_MDTid
HitID m_MDTid
Definition: MDTSimHit.h:82
MDTSimHit::m_stepLength
float m_stepLength
Definition: MDTSimHit.h:88
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
MDTSimHit::particleEncoding
int particleEncoding() const
Definition: MDTSimHit.h:59
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
MDTSimHit::truthBarcode
int truthBarcode() const
Definition: MDTSimHit.cxx:118
MDTSimHit::m_partLink
HepMcParticleLink m_partLink
Definition: MDTSimHit.h:86
MDTSimHit::stepLength
double stepLength() const
Definition: MDTSimHit.h:57