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

#include <RPCSimHit.h>

Collaboration diagram for RPCSimHit:

Public Member Functions

 RPCSimHit ()
 
 ~RPCSimHit ()
 
 RPCSimHit (int id, double time, const Amg::Vector3D &position)
 
 RPCSimHit (int id, double time, const Amg::Vector3D &position, const int truthBarcode)
 
 RPCSimHit (int id, double time, const Amg::Vector3D &prePosition, const int truthBarcode, const Amg::Vector3D &postPosition, const double energyDeposit, const double stepLength, const int particleEncoding, const double kineticEnergy)
 
 RPCSimHit (int id, double time, const Amg::Vector3D &prePosition, const HepMcParticleLink &hmpl, const Amg::Vector3D &postPosition, const double energyDeposit, const double stepLength, const int particleEncoding, const double kineticEnergy)
 
double globalTime () const
 
const Amg::Vector3DlocalPosition () const
 
const Amg::Vector3DpreLocalPosition () const
 
const Amg::Vector3DpostLocalPosition () const
 
double energyDeposit () const
 
double prePostStepDistance () const
 
double stepLength () const
 
int particleEncoding () const
 
double kineticEnergy () const
 
int RPCid () const
 
std::string print () const
 
bool operator< (const RPCSimHit &rhs) const
 
double meanTime () const
 
int truthBarcode () const
 
int truthID () const
 
const HepMcParticleLinkparticleLink () const
 
void setGlobalTime (const double time)
 

Private Attributes

int m_RPCid
 
float m_globalTime
 
Amg::Vector3D m_localPosition
 
HepMcParticleLink m_partLink
 
Amg::Vector3D m_localPostStepPosition
 
float m_energyDeposit
 
float m_stepLength
 
int m_particleEncoding
 
float m_kineticEnergy
 

Detailed Description

Definition at line 19 of file RPCSimHit.h.

Constructor & Destructor Documentation

◆ RPCSimHit() [1/5]

RPCSimHit::RPCSimHit ( )

Definition at line 13 of file RPCSimHit.cxx.

13  :
14  m_RPCid(0xffff),
15  m_globalTime(0.),
16  m_localPosition(0.,0.,0.), // pre-step position
17  m_partLink(),
18  m_localPostStepPosition(0.,0.,0.), // post-step position
19  m_energyDeposit(-1.), //Geant4 de/dx
20  m_stepLength(-1.), //Geant4 step Length
21  m_particleEncoding(0), // PDG id
22  m_kineticEnergy(-1.) // kinetic energy of the particle
23 {
24 }

◆ ~RPCSimHit()

RPCSimHit::~RPCSimHit ( )
default

◆ RPCSimHit() [2/5]

RPCSimHit::RPCSimHit ( int  id,
double  time,
const Amg::Vector3D position 
)

Definition at line 28 of file RPCSimHit.cxx.

31  : m_RPCid(id),
33  m_localPosition(position),
34  m_partLink(),
35  m_localPostStepPosition(0.,0.,0.), // post-step position
36  m_energyDeposit(-1.), //Geant4 de/dx
37  m_stepLength(-1.), //Geant4 step Length
38  m_particleEncoding(0), // PDG id
39  m_kineticEnergy(-1.) // kinetic energy of the particle
40 {
41 }

◆ RPCSimHit() [3/5]

RPCSimHit::RPCSimHit ( int  id,
double  time,
const Amg::Vector3D position,
const int  truthBarcode 
)

Definition at line 43 of file RPCSimHit.cxx.

47  : m_RPCid(id),
49  m_localPosition(position),
51  m_localPostStepPosition(0.,0.,0.), // post-step position
52  m_energyDeposit(-1.), //Geant4 de/dx
53  m_stepLength(-1.), //Geant4 step Length
54  m_particleEncoding(0), // PDG id
55  m_kineticEnergy(-1.) // kinetic energy of the particle
56 {
57 }

◆ RPCSimHit() [4/5]

RPCSimHit::RPCSimHit ( int  id,
double  time,
const Amg::Vector3D prePosition,
const int  truthBarcode,
const Amg::Vector3D postPosition,
const double  energyDeposit,
const double  stepLength,
const int  particleEncoding,
const double  kineticEnergy 
)

Definition at line 59 of file RPCSimHit.cxx.

66  : m_RPCid(id), m_globalTime(time)
67  , m_localPosition(prePosition)
69  , m_localPostStepPosition(postPosition)
70  , m_energyDeposit(static_cast<float>(energyDeposit))
71  , m_stepLength(static_cast<float>(stepLength))
73  , m_kineticEnergy(static_cast<float>(kineticEnergy))
74 {
75 }

◆ RPCSimHit() [5/5]

RPCSimHit::RPCSimHit ( int  id,
double  time,
const Amg::Vector3D prePosition,
const HepMcParticleLink hmpl,
const Amg::Vector3D postPosition,
const double  energyDeposit,
const double  stepLength,
const int  particleEncoding,
const double  kineticEnergy 
)

Definition at line 77 of file RPCSimHit.cxx.

84  : m_RPCid(id), m_globalTime(time)
85  , m_localPosition(prePosition)
86  , m_partLink(hmpl)
87  , m_localPostStepPosition(postPosition)
88  , m_energyDeposit(static_cast<float>(energyDeposit))
89  , m_stepLength(static_cast<float>(stepLength))
91  , m_kineticEnergy(static_cast<float>(kineticEnergy))
92 {
93 }

Member Function Documentation

◆ energyDeposit()

double RPCSimHit::energyDeposit ( ) const
inline

Definition at line 58 of file RPCSimHit.h.

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

◆ globalTime()

double RPCSimHit::globalTime ( ) const
inline

Definition at line 54 of file RPCSimHit.h.

54 { return (double) m_globalTime; }

◆ kineticEnergy()

double RPCSimHit::kineticEnergy ( ) const
inline

Definition at line 62 of file RPCSimHit.h.

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

◆ localPosition()

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

Definition at line 55 of file RPCSimHit.h.

55 { return m_localPosition; }

◆ meanTime()

double RPCSimHit::meanTime ( ) const
inline

Definition at line 98 of file RPCSimHit.h.

99  { return (double) m_globalTime; }

◆ operator<()

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

Definition at line 65 of file RPCSimHit.h.

66  { return m_RPCid < rhs.m_RPCid; }

◆ particleEncoding()

int RPCSimHit::particleEncoding ( ) const
inline

Definition at line 61 of file RPCSimHit.h.

61 { return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & RPCSimHit::particleLink ( ) const
inline

Definition at line 101 of file RPCSimHit.h.

102  { return m_partLink; }

◆ postLocalPosition()

const Amg::Vector3D& RPCSimHit::postLocalPosition ( ) const
inline

Definition at line 57 of file RPCSimHit.h.

57 { return m_localPostStepPosition; }

◆ preLocalPosition()

const Amg::Vector3D& RPCSimHit::preLocalPosition ( ) const
inline

Definition at line 56 of file RPCSimHit.h.

56 { return m_localPosition; }

◆ prePostStepDistance()

double RPCSimHit::prePostStepDistance ( ) const
inline

Definition at line 59 of file RPCSimHit.h.

59 { return (m_localPostStepPosition-m_localPosition).mag(); }

◆ print()

std::string RPCSimHit::print ( ) const

Definition at line 96 of file RPCSimHit.cxx.

96  {
97 
98  std::stringstream ss;
99 
100  ss << "RPCSimHit:";
101  ss << " identifier: " << m_RPCid;
102  ss << " t: " << m_globalTime;
103  ss << " startPoint: (" << m_localPosition.x()
104  << "," << m_localPosition.y()
105  << "," << m_localPosition.z()
106  << ")";
107  ss << " endPoint: ("<< m_localPostStepPosition.x()
108  << "," << m_localPostStepPosition.y()
109  << "," << m_localPostStepPosition.z()
110  << ")";
111  ss << " EnergyDeposit: "<<m_energyDeposit<<" StepLength: "<<m_stepLength
112  <<" pdgId: "<<m_particleEncoding<<" kineticEnergy: "<<m_kineticEnergy;
113 
114  return ss.str();
115 }

◆ RPCid()

int RPCSimHit::RPCid ( ) const
inline

Definition at line 63 of file RPCSimHit.h.

63 { return m_RPCid; }

◆ setGlobalTime()

void RPCSimHit::setGlobalTime ( const double  time)
inline

Definition at line 78 of file RPCSimHit.h.

78 { m_globalTime = time; }

◆ stepLength()

double RPCSimHit::stepLength ( ) const
inline

Definition at line 60 of file RPCSimHit.h.

60 { return m_stepLength; }

◆ truthBarcode()

int RPCSimHit::truthBarcode ( ) const

Definition at line 117 of file RPCSimHit.cxx.

118  { return m_partLink.barcode(); }

◆ truthID()

int RPCSimHit::truthID ( ) const

Definition at line 120 of file RPCSimHit.cxx.

121 { return m_partLink.id(); }

Member Data Documentation

◆ m_energyDeposit

float RPCSimHit::m_energyDeposit
private

Definition at line 89 of file RPCSimHit.h.

◆ m_globalTime

float RPCSimHit::m_globalTime
private

Definition at line 85 of file RPCSimHit.h.

◆ m_kineticEnergy

float RPCSimHit::m_kineticEnergy
private

Definition at line 92 of file RPCSimHit.h.

◆ m_localPosition

Amg::Vector3D RPCSimHit::m_localPosition
private

Definition at line 86 of file RPCSimHit.h.

◆ m_localPostStepPosition

Amg::Vector3D RPCSimHit::m_localPostStepPosition
private

Definition at line 88 of file RPCSimHit.h.

◆ m_particleEncoding

int RPCSimHit::m_particleEncoding
private

Definition at line 91 of file RPCSimHit.h.

◆ m_partLink

HepMcParticleLink RPCSimHit::m_partLink
private

Definition at line 87 of file RPCSimHit.h.

◆ m_RPCid

int RPCSimHit::m_RPCid
private

Definition at line 84 of file RPCSimHit.h.

◆ m_stepLength

float RPCSimHit::m_stepLength
private

Definition at line 90 of file RPCSimHit.h.


The documentation for this class was generated from the following files:
RPCSimHit::particleEncoding
int particleEncoding() const
Definition: RPCSimHit.h:61
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
RPCSimHit::stepLength
double stepLength() const
Definition: RPCSimHit.h:60
RPCSimHit::m_globalTime
float m_globalTime
Definition: RPCSimHit.h:85
RPCSimHit::energyDeposit
double energyDeposit() const
Definition: RPCSimHit.h:58
RPCSimHit::m_partLink
HepMcParticleLink m_partLink
Definition: RPCSimHit.h:87
RPCSimHit::m_kineticEnergy
float m_kineticEnergy
Definition: RPCSimHit.h:92
RPCSimHit::m_localPosition
Amg::Vector3D m_localPosition
Definition: RPCSimHit.h:86
RPCSimHit::m_RPCid
int m_RPCid
Definition: RPCSimHit.h:84
RPCSimHit::m_stepLength
float m_stepLength
Definition: RPCSimHit.h:90
RPCSimHit::m_localPostStepPosition
Amg::Vector3D m_localPostStepPosition
Definition: RPCSimHit.h:88
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
RPCSimHit::m_particleEncoding
int m_particleEncoding
Definition: RPCSimHit.h:91
RPCSimHit::truthBarcode
int truthBarcode() const
Definition: RPCSimHit.cxx:117
RPCSimHit::m_energyDeposit
float m_energyDeposit
Definition: RPCSimHit.h:89
RPCSimHit::kineticEnergy
double kineticEnergy() const
Definition: RPCSimHit.h:62