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

#include <GenericMuonSimHit.h>

Collaboration diagram for GenericMuonSimHit:

Public Member Functions

 GenericMuonSimHit ()
 
 ~GenericMuonSimHit ()
 
 GenericMuonSimHit (HitID id, double time, double pretime, const Amg::Vector3D &position, const Amg::Vector3D &local_position, const Amg::Vector3D &preposition, const Amg::Vector3D &local_preposition, const int particleEncoding, const double kineticEnergy, const Amg::Vector3D &direction, const double depositEnergy, const double StepLength, const int truthBarcode)
 
 GenericMuonSimHit (HitID id, double time, double pretime, const Amg::Vector3D &position, const Amg::Vector3D &local_position, const Amg::Vector3D &preposition, const Amg::Vector3D &local_preposition, const int particleEncoding, const double kineticEnergy, const Amg::Vector3D &direction, const double depositEnergy, const double StepLength, const HepMcParticleLink &hmpl)
 
double globalpreTime () const
 
double globalTime () const
 
const Amg::Vector3DglobalPrePosition () const
 
const Amg::Vector3DlocalPrePosition () const
 
const Amg::Vector3DglobalPosition () const
 
const Amg::Vector3DlocalPosition () const
 
int particleEncoding () const
 
double kineticEnergy () const
 
const Amg::Vector3DglobalDirection () const
 
double depositEnergy () const
 
double StepLength () const
 
HitID GenericId () const
 
std::string print () const
 
bool operator< (const GenericMuonSimHit &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 More...
 
void setGlobalDirection (const Amg::Vector3D &globalDirection)
 sets the direction expressed in global coordinates More...
 
void setKineticEnergy (const double kineticEnergy)
 
int truthBarcode () const
 
int truthID () const
 
const HepMcParticleLinkparticleLink () const
 

Private Attributes

HitID m_GenericId
 
float m_globalTime
 
float m_globalpreTime
 
Amg::Vector3D m_globalPosition
 
Amg::Vector3D m_localPosition
 
Amg::Vector3D m_globalPrePosition
 
Amg::Vector3D m_localPrePosition
 
int m_particleEncoding
 
float m_kineticEnergy
 
Amg::Vector3D m_globalDirection
 
float m_depositEnergy
 
float m_StepLength
 
HepMcParticleLink m_partLink
 

Detailed Description

Definition at line 15 of file GenericMuonSimHit.h.

Constructor & Destructor Documentation

◆ GenericMuonSimHit() [1/3]

GenericMuonSimHit::GenericMuonSimHit ( )

Definition at line 8 of file GenericMuonSimHit.cxx.

8  :
9  m_GenericId(0xffff),
10  m_globalTime(0.),
11  m_globalpreTime(0.),
12  m_particleEncoding(0),// PDG_ID
13  m_kineticEnergy(-9999.),// energy of the particle
14  m_depositEnergy(-9999.),//Geant4 deposited energy
15  m_StepLength(-9999.),//total lenght of particle
16  m_partLink()
17 {
18 }

◆ ~GenericMuonSimHit()

GenericMuonSimHit::~GenericMuonSimHit ( )
default

◆ GenericMuonSimHit() [2/3]

GenericMuonSimHit::GenericMuonSimHit ( HitID  id,
double  time,
double  pretime,
const Amg::Vector3D position,
const Amg::Vector3D local_position,
const Amg::Vector3D preposition,
const Amg::Vector3D local_preposition,
const int  particleEncoding,
const double  kineticEnergy,
const Amg::Vector3D direction,
const double  depositEnergy,
const double  StepLength,
const int  truthBarcode 
)

Definition at line 23 of file GenericMuonSimHit.cxx.

35  , m_globalPosition(position)
36  , m_localPosition(lposition)
37  , m_globalPrePosition(preposition)
38  , m_localPrePosition(lpreposition)
41  , m_globalDirection(direction)
45 {
46 }

◆ GenericMuonSimHit() [3/3]

GenericMuonSimHit::GenericMuonSimHit ( HitID  id,
double  time,
double  pretime,
const Amg::Vector3D position,
const Amg::Vector3D local_position,
const Amg::Vector3D preposition,
const Amg::Vector3D local_preposition,
const int  particleEncoding,
const double  kineticEnergy,
const Amg::Vector3D direction,
const double  depositEnergy,
const double  StepLength,
const HepMcParticleLink hmpl 
)

Definition at line 48 of file GenericMuonSimHit.cxx.

60  , m_globalPosition(position)
61  , m_localPosition(lposition)
62  , m_globalPrePosition(preposition)
63  , m_localPrePosition(lpreposition)
66  , m_globalDirection(direction)
69  , m_partLink(hmpl)
70 {
71 }

Member Function Documentation

◆ depositEnergy()

double GenericMuonSimHit::depositEnergy ( ) const
inline

Definition at line 60 of file GenericMuonSimHit.h.

60 { return (double) m_depositEnergy; }

◆ GenericId()

HitID GenericMuonSimHit::GenericId ( ) const
inline

Definition at line 63 of file GenericMuonSimHit.h.

63 { return m_GenericId; }

◆ globalDirection()

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

Definition at line 59 of file GenericMuonSimHit.h.

59 { return m_globalDirection; }

◆ globalPosition()

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

Definition at line 55 of file GenericMuonSimHit.h.

55 { return m_globalPosition; }

◆ globalPrePosition()

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

Definition at line 52 of file GenericMuonSimHit.h.

52 { return m_globalPrePosition; }

◆ globalpreTime()

double GenericMuonSimHit::globalpreTime ( ) const
inline

Definition at line 47 of file GenericMuonSimHit.h.

47 { return (double) m_globalpreTime; }

◆ globalTime()

double GenericMuonSimHit::globalTime ( ) const
inline

Definition at line 49 of file GenericMuonSimHit.h.

49 { return (double) m_globalTime; }

◆ kineticEnergy()

double GenericMuonSimHit::kineticEnergy ( ) const
inline

Definition at line 58 of file GenericMuonSimHit.h.

58 { return (double) m_kineticEnergy; }

◆ localPosition()

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

Definition at line 56 of file GenericMuonSimHit.h.

56 { return m_localPosition; }

◆ localPrePosition()

const Amg::Vector3D& GenericMuonSimHit::localPrePosition ( ) const
inline

Definition at line 53 of file GenericMuonSimHit.h.

53 { return m_localPrePosition; }

◆ meanTime()

double GenericMuonSimHit::meanTime ( ) const
inline

Definition at line 114 of file GenericMuonSimHit.h.

115 { return (double) m_globalTime; }

◆ operator<()

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

Definition at line 66 of file GenericMuonSimHit.h.

67  { return m_GenericId < rhs.m_GenericId; }

◆ particleEncoding()

int GenericMuonSimHit::particleEncoding ( ) const
inline

Definition at line 57 of file GenericMuonSimHit.h.

57 { return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & GenericMuonSimHit::particleLink ( ) const
inline

Definition at line 112 of file GenericMuonSimHit.h.

113 { return m_partLink; }

◆ print()

std::string GenericMuonSimHit::print ( ) const

Definition at line 73 of file GenericMuonSimHit.cxx.

73  {
74 
75  std::stringstream ss;
76 
77  ss << "-------------------------------------------------------------" << std::endl;
78  ss << "GenericMuonSimHit:"<<std::endl;
79  ss << " identifier: " << m_GenericId;
80  ss << " t (pre) : " << m_globalpreTime;
81  ss << " t: " << m_globalTime;
82  ss << " x (pre) : (" << m_globalPrePosition.x()
83  << "," << m_globalPrePosition.y()
84  << "," << m_globalPrePosition.z()
85  << ")";
86  ss << " x : (" << m_globalPosition.x()
87  << "," << m_globalPosition.y()
88  << "," << m_globalPosition.z()
89  << ")"<<std::endl;
90  ss << " pdgId: "<<m_particleEncoding<<" kineticEnergy: "<<m_kineticEnergy<<std::endl;
91 
92  return ss.str();
93 }

◆ setDepositEnergy()

void GenericMuonSimHit::setDepositEnergy ( const double  depositEnergy)
inline

Definition at line 72 of file GenericMuonSimHit.h.

◆ setGlobalDirection()

void GenericMuonSimHit::setGlobalDirection ( const Amg::Vector3D globalDirection)
inline

sets the direction expressed in global coordinates

Definition at line 74 of file GenericMuonSimHit.h.

◆ setGlobalPosition()

void GenericMuonSimHit::setGlobalPosition ( const Amg::Vector3D globalPosition)
inline

sets the position expressed in global coordinates

Definition at line 73 of file GenericMuonSimHit.h.

◆ setGlobalTime()

void GenericMuonSimHit::setGlobalTime ( const double  time)
inline

Definition at line 71 of file GenericMuonSimHit.h.

71 { m_globalTime = time; }

◆ setKineticEnergy()

void GenericMuonSimHit::setKineticEnergy ( const double  kineticEnergy)
inline

Definition at line 75 of file GenericMuonSimHit.h.

◆ StepLength()

double GenericMuonSimHit::StepLength ( ) const
inline

Definition at line 61 of file GenericMuonSimHit.h.

61 { return (double) m_StepLength; }

◆ truthBarcode()

int GenericMuonSimHit::truthBarcode ( ) const

Definition at line 95 of file GenericMuonSimHit.cxx.

96 { return m_partLink.barcode(); }

◆ truthID()

int GenericMuonSimHit::truthID ( ) const

Definition at line 98 of file GenericMuonSimHit.cxx.

99 { return m_partLink.id(); }

Member Data Documentation

◆ m_depositEnergy

float GenericMuonSimHit::m_depositEnergy
private

Definition at line 104 of file GenericMuonSimHit.h.

◆ m_GenericId

HitID GenericMuonSimHit::m_GenericId
private

Definition at line 90 of file GenericMuonSimHit.h.

◆ m_globalDirection

Amg::Vector3D GenericMuonSimHit::m_globalDirection
private

Definition at line 103 of file GenericMuonSimHit.h.

◆ m_globalPosition

Amg::Vector3D GenericMuonSimHit::m_globalPosition
private

Definition at line 94 of file GenericMuonSimHit.h.

◆ m_globalPrePosition

Amg::Vector3D GenericMuonSimHit::m_globalPrePosition
private

Definition at line 97 of file GenericMuonSimHit.h.

◆ m_globalpreTime

float GenericMuonSimHit::m_globalpreTime
private

Definition at line 92 of file GenericMuonSimHit.h.

◆ m_globalTime

float GenericMuonSimHit::m_globalTime
private

Definition at line 91 of file GenericMuonSimHit.h.

◆ m_kineticEnergy

float GenericMuonSimHit::m_kineticEnergy
private

Definition at line 101 of file GenericMuonSimHit.h.

◆ m_localPosition

Amg::Vector3D GenericMuonSimHit::m_localPosition
private

Definition at line 95 of file GenericMuonSimHit.h.

◆ m_localPrePosition

Amg::Vector3D GenericMuonSimHit::m_localPrePosition
private

Definition at line 98 of file GenericMuonSimHit.h.

◆ m_particleEncoding

int GenericMuonSimHit::m_particleEncoding
private

Definition at line 100 of file GenericMuonSimHit.h.

◆ m_partLink

HepMcParticleLink GenericMuonSimHit::m_partLink
private

Definition at line 107 of file GenericMuonSimHit.h.

◆ m_StepLength

float GenericMuonSimHit::m_StepLength
private

Definition at line 105 of file GenericMuonSimHit.h.


The documentation for this class was generated from the following files:
GenericMuonSimHit::m_GenericId
HitID m_GenericId
Definition: GenericMuonSimHit.h:90
GenericMuonSimHit::StepLength
double StepLength() const
Definition: GenericMuonSimHit.h:61
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GenericMuonSimHit::m_globalTime
float m_globalTime
Definition: GenericMuonSimHit.h:91
GenericMuonSimHit::m_localPrePosition
Amg::Vector3D m_localPrePosition
Definition: GenericMuonSimHit.h:98
GenericMuonSimHit::m_depositEnergy
float m_depositEnergy
Definition: GenericMuonSimHit.h:104
GenericMuonSimHit::m_StepLength
float m_StepLength
Definition: GenericMuonSimHit.h:105
GenericMuonSimHit::m_localPosition
Amg::Vector3D m_localPosition
Definition: GenericMuonSimHit.h:95
GenericMuonSimHit::m_partLink
HepMcParticleLink m_partLink
Definition: GenericMuonSimHit.h:107
GenericMuonSimHit::kineticEnergy
double kineticEnergy() const
Definition: GenericMuonSimHit.h:58
GenericMuonSimHit::depositEnergy
double depositEnergy() const
Definition: GenericMuonSimHit.h:60
GenericMuonSimHit::m_globalpreTime
float m_globalpreTime
Definition: GenericMuonSimHit.h:92
GenericMuonSimHit::m_globalPrePosition
Amg::Vector3D m_globalPrePosition
Definition: GenericMuonSimHit.h:97
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
GenericMuonSimHit::m_globalDirection
Amg::Vector3D m_globalDirection
Definition: GenericMuonSimHit.h:103
GenericMuonSimHit::m_kineticEnergy
float m_kineticEnergy
Definition: GenericMuonSimHit.h:101
GenericMuonSimHit::truthBarcode
int truthBarcode() const
Definition: GenericMuonSimHit.cxx:95
GenericMuonSimHit::particleEncoding
int particleEncoding() const
Definition: GenericMuonSimHit.h:57
GenericMuonSimHit::m_particleEncoding
int m_particleEncoding
Definition: GenericMuonSimHit.h:100
GenericMuonSimHit::m_globalPosition
Amg::Vector3D m_globalPosition
Definition: GenericMuonSimHit.h:94