ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MMSimHit Class Reference

#include <MMSimHit.h>

Collaboration diagram for MMSimHit:

Public Member Functions

 MMSimHit ()
 
 ~MMSimHit ()=default
 
 MMSimHit (HitID id, double time, const Amg::Vector3D &position, const int particleEncoding, const double kineticEnergy, const Amg::Vector3D &direction, const double depositEnergy, const int truthBarcode)
 
 MMSimHit (HitID id, double time, const Amg::Vector3D &position, const int particleEncoding, const double kineticEnergy, const Amg::Vector3D &direction, const double depositEnergy, const HepMcParticleLink &hmpl)
 
double globalTime () const
 
const Amg::Vector3DglobalPosition () const
 
int particleEncoding () const
 
double kineticEnergy () const
 
const Amg::Vector3DglobalDirection () const
 
double depositEnergy () const
 
HitID MMId () const
 
std::string print () const
 
bool operator< (const MMSimHit &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_MMId
 
double m_globalTime
 
Amg::Vector3D m_globalPosition
 
int m_particleEncoding
 
double m_kineticEnergy
 
Amg::Vector3D m_globalDirection
 
double m_depositEnergy
 
HepMcParticleLink m_partLink
 

Detailed Description

Definition at line 15 of file MMSimHit.h.

Constructor & Destructor Documentation

◆ MMSimHit() [1/3]

MMSimHit::MMSimHit ( )

Definition at line 8 of file MMSimHit.cxx.

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

◆ ~MMSimHit()

MMSimHit::~MMSimHit ( )
default

◆ MMSimHit() [2/3]

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

Definition at line 18 of file MMSimHit.cxx.

◆ MMSimHit() [3/3]

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

Definition at line 35 of file MMSimHit.cxx.

42  : m_MMId(id), m_globalTime(time)
43  , m_globalPosition(position)
46  , m_globalDirection(direction)
48  , m_partLink(hmpl)
49 {
50 }

Member Function Documentation

◆ depositEnergy()

double MMSimHit::depositEnergy ( ) const
inline

Definition at line 42 of file MMSimHit.h.

42 { return (double) m_depositEnergy; }

◆ globalDirection()

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

Definition at line 41 of file MMSimHit.h.

41 { return m_globalDirection; }

◆ globalPosition()

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

Definition at line 38 of file MMSimHit.h.

38 { return m_globalPosition; }

◆ globalTime()

double MMSimHit::globalTime ( ) const
inline

Definition at line 35 of file MMSimHit.h.

35 { return (double) m_globalTime; }

◆ kineticEnergy()

double MMSimHit::kineticEnergy ( ) const
inline

Definition at line 40 of file MMSimHit.h.

40 { return (double) m_kineticEnergy; }

◆ meanTime()

double MMSimHit::meanTime ( ) const
inline

Definition at line 89 of file MMSimHit.h.

90 { return (double) m_globalTime; }

◆ MMId()

HitID MMSimHit::MMId ( ) const
inline

Definition at line 44 of file MMSimHit.h.

44 { return m_MMId; }

◆ operator<()

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

Definition at line 47 of file MMSimHit.h.

48  { return m_MMId < rhs.m_MMId; }

◆ particleEncoding()

int MMSimHit::particleEncoding ( ) const
inline

Definition at line 39 of file MMSimHit.h.

39 { return m_particleEncoding; }

◆ particleLink()

const HepMcParticleLink & MMSimHit::particleLink ( ) const
inline

Definition at line 87 of file MMSimHit.h.

88 { return m_partLink; }

◆ print()

std::string MMSimHit::print ( ) const

Definition at line 52 of file MMSimHit.cxx.

52  {
53 
54  std::stringstream ss;
55 
56  ss << "-------------------------------------------------------------" << std::endl;
57  ss << "MMSimHit:"<<std::endl;
58  ss << " identifier: " << m_MMId;
59  ss << " t: " << m_globalTime;
60  ss << " x : (" << m_globalPosition.x()
61  << "," << m_globalPosition.y()
62  << "," << m_globalPosition.z()
63  << ")"<<std::endl;
64  ss << " pdgId: "<<m_particleEncoding<<" kineticEnergy: "<<m_kineticEnergy<<std::endl;
65 
66  return ss.str();
67 }

◆ setDepositEnergy()

void MMSimHit::setDepositEnergy ( const double  depositEnergy)
inline

Definition at line 53 of file MMSimHit.h.

◆ setGlobalDirection()

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

sets the direction expressed in global coordinates

Definition at line 55 of file MMSimHit.h.

◆ setGlobalPosition()

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

sets the position expressed in global coordinates

Definition at line 54 of file MMSimHit.h.

◆ setGlobalTime()

void MMSimHit::setGlobalTime ( const double  time)
inline

Definition at line 52 of file MMSimHit.h.

52 { m_globalTime = time; }

◆ setKineticEnergy()

void MMSimHit::setKineticEnergy ( const double  kineticEnergy)
inline

Definition at line 56 of file MMSimHit.h.

◆ truthBarcode()

int MMSimHit::truthBarcode ( ) const

Definition at line 69 of file MMSimHit.cxx.

70 { return m_partLink.barcode(); }

◆ truthID()

int MMSimHit::truthID ( ) const

Definition at line 72 of file MMSimHit.cxx.

73 { return m_partLink.id(); }

Member Data Documentation

◆ m_depositEnergy

double MMSimHit::m_depositEnergy
private

Definition at line 80 of file MMSimHit.h.

◆ m_globalDirection

Amg::Vector3D MMSimHit::m_globalDirection
private

Definition at line 79 of file MMSimHit.h.

◆ m_globalPosition

Amg::Vector3D MMSimHit::m_globalPosition
private

Definition at line 74 of file MMSimHit.h.

◆ m_globalTime

double MMSimHit::m_globalTime
private

Definition at line 72 of file MMSimHit.h.

◆ m_kineticEnergy

double MMSimHit::m_kineticEnergy
private

Definition at line 77 of file MMSimHit.h.

◆ m_MMId

HitID MMSimHit::m_MMId
private

Definition at line 71 of file MMSimHit.h.

◆ m_particleEncoding

int MMSimHit::m_particleEncoding
private

Definition at line 76 of file MMSimHit.h.

◆ m_partLink

HepMcParticleLink MMSimHit::m_partLink
private

Definition at line 82 of file MMSimHit.h.


The documentation for this class was generated from the following files:
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
MMSimHit::m_particleEncoding
int m_particleEncoding
Definition: MMSimHit.h:76
MMSimHit::m_kineticEnergy
double m_kineticEnergy
Definition: MMSimHit.h:77
MMSimHit::m_partLink
HepMcParticleLink m_partLink
Definition: MMSimHit.h:82
MMSimHit::m_globalDirection
Amg::Vector3D m_globalDirection
Definition: MMSimHit.h:79
MMSimHit::m_globalPosition
Amg::Vector3D m_globalPosition
Definition: MMSimHit.h:74
MMSimHit::truthBarcode
int truthBarcode() const
Definition: MMSimHit.cxx:69
MMSimHit::particleEncoding
int particleEncoding() const
Definition: MMSimHit.h:39
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
MMSimHit::depositEnergy
double depositEnergy() const
Definition: MMSimHit.h:42
MMSimHit::m_depositEnergy
double m_depositEnergy
Definition: MMSimHit.h:80
MMSimHit::m_globalTime
double m_globalTime
Definition: MMSimHit.h:72
MMSimHit::kineticEnergy
double kineticEnergy() const
Definition: MMSimHit.h:40
MMSimHit::m_MMId
HitID m_MMId
Definition: MMSimHit.h:71