DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4HitData::MonteCarloContrib Class Reference

Utility class describing the monte carlo contribution of a given particle to a hit. More...

#include <Geant4Data.h>

Public Member Functions

 MonteCarloContrib ()=default
 Default constructor. More...
 
 MonteCarloContrib (const MonteCarloContrib &c)=default
 Copy constructor. More...
 
 MonteCarloContrib (MonteCarloContrib &&c)=default
 Move constructor. More...
 
 MonteCarloContrib (int track_id, int pdg, double dep, double time_stamp, double len, float *pos, float *mom)
 Initializing constructor. More...
 
 MonteCarloContrib (int track_id, int pdg, double dep, double time_stamp, double len, double *pos, double *mom)
 Initializing constructor. More...
 
 MonteCarloContrib (int track_id, int pdg, double dep, double time_stamp, double len, const Position &pos, const Direction &mom)
 Initializing constructor. More...
 
MonteCarloContriboperator= (MonteCarloContrib &&c)=default
 Assignment operator (move) More...
 
MonteCarloContriboperator= (const MonteCarloContrib &c)=default
 Assignment operator (copy) More...
 
void clear ()
 Clear data content. More...
 
Position position () const
 Access position. More...
 
void setPosition (const Position &pos)
 Set position of the contribution. More...
 
void setPosition (double pos_x, double pos_y, double pos_z)
 Set position of the contribution. More...
 
Direction momentum () const
 Access momentum. More...
 
void setMomentum (const Direction &dir)
 Set memonetum of the contribution. More...
 
void setMomentum (double mom_x, double mom_y, double mom_z)
 Set memonetum of the contribution. More...
 

Public Attributes

int trackID = -1
 Geant 4 Track identifier. More...
 
int pdgID = -1
 Particle ID from the PDG table. More...
 
double deposit = 0.0
 Total energy deposit in this hit. More...
 
double time
 Timestamp when this energy was deposited. More...
 
double length = 0.0
 Length of this step. More...
 
float x = 0.0
 Proper position of the hit contribution. More...
 
float y = 0.0
 
float z = 0.0
 
float px = 0.0
 Proper particle momentum when generating the hit of the contributing particle. More...
 
float py = 0.0
 
float pz = 0.0
 

Detailed Description

Utility class describing the monte carlo contribution of a given particle to a hit.

Author
M.Frank
Version
1.0

Definition at line 138 of file Geant4Data.h.

Constructor & Destructor Documentation

◆ MonteCarloContrib() [1/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( )
default

Default constructor.

◆ MonteCarloContrib() [2/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( const MonteCarloContrib c)
default

Copy constructor.

◆ MonteCarloContrib() [3/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( MonteCarloContrib &&  c)
default

Move constructor.

◆ MonteCarloContrib() [4/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( int  track_id,
int  pdg,
double  dep,
double  time_stamp,
double  len,
float *  pos,
float *  mom 
)
inline

Initializing constructor.

Definition at line 168 of file Geant4Data.h.

◆ MonteCarloContrib() [5/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( int  track_id,
int  pdg,
double  dep,
double  time_stamp,
double  len,
double *  pos,
double *  mom 
)
inline

Initializing constructor.

Definition at line 174 of file Geant4Data.h.

◆ MonteCarloContrib() [6/6]

dd4hep::sim::Geant4HitData::MonteCarloContrib::MonteCarloContrib ( int  track_id,
int  pdg,
double  dep,
double  time_stamp,
double  len,
const Position pos,
const Direction mom 
)
inline

Initializing constructor.

Definition at line 181 of file Geant4Data.h.

Member Function Documentation

◆ clear()

void dd4hep::sim::Geant4HitData::MonteCarloContrib::clear ( )
inline

Clear data content.

Definition at line 192 of file Geant4Data.h.

◆ momentum()

Direction dd4hep::sim::Geant4HitData::MonteCarloContrib::momentum ( ) const
inline

Access momentum.

Definition at line 215 of file Geant4Data.h.

◆ operator=() [1/2]

MonteCarloContrib& dd4hep::sim::Geant4HitData::MonteCarloContrib::operator= ( const MonteCarloContrib c)
default

Assignment operator (copy)

◆ operator=() [2/2]

MonteCarloContrib& dd4hep::sim::Geant4HitData::MonteCarloContrib::operator= ( MonteCarloContrib &&  c)
default

Assignment operator (move)

◆ position()

Position dd4hep::sim::Geant4HitData::MonteCarloContrib::position ( ) const
inline

Access position.

Definition at line 199 of file Geant4Data.h.

◆ setMomentum() [1/2]

void dd4hep::sim::Geant4HitData::MonteCarloContrib::setMomentum ( const Direction dir)
inline

Set memonetum of the contribution.

Definition at line 219 of file Geant4Data.h.

◆ setMomentum() [2/2]

void dd4hep::sim::Geant4HitData::MonteCarloContrib::setMomentum ( double  mom_x,
double  mom_y,
double  mom_z 
)
inline

Set memonetum of the contribution.

Definition at line 225 of file Geant4Data.h.

◆ setPosition() [1/2]

void dd4hep::sim::Geant4HitData::MonteCarloContrib::setPosition ( const Position pos)
inline

Set position of the contribution.

Definition at line 203 of file Geant4Data.h.

◆ setPosition() [2/2]

void dd4hep::sim::Geant4HitData::MonteCarloContrib::setPosition ( double  pos_x,
double  pos_y,
double  pos_z 
)
inline

Set position of the contribution.

Definition at line 209 of file Geant4Data.h.

Member Data Documentation

◆ deposit

double dd4hep::sim::Geant4HitData::MonteCarloContrib::deposit = 0.0

Total energy deposit in this hit.

Definition at line 145 of file Geant4Data.h.

◆ length

double dd4hep::sim::Geant4HitData::MonteCarloContrib::length = 0.0

Length of this step.

Definition at line 149 of file Geant4Data.h.

◆ pdgID

int dd4hep::sim::Geant4HitData::MonteCarloContrib::pdgID = -1

Particle ID from the PDG table.

Definition at line 143 of file Geant4Data.h.

◆ px

float dd4hep::sim::Geant4HitData::MonteCarloContrib::px = 0.0

Proper particle momentum when generating the hit of the contributing particle.

Definition at line 153 of file Geant4Data.h.

◆ py

float dd4hep::sim::Geant4HitData::MonteCarloContrib::py = 0.0

Definition at line 153 of file Geant4Data.h.

◆ pz

float dd4hep::sim::Geant4HitData::MonteCarloContrib::pz = 0.0

Definition at line 153 of file Geant4Data.h.

◆ time

double dd4hep::sim::Geant4HitData::MonteCarloContrib::time

Timestamp when this energy was deposited.

Definition at line 147 of file Geant4Data.h.

◆ trackID

int dd4hep::sim::Geant4HitData::MonteCarloContrib::trackID = -1

Geant 4 Track identifier.

Definition at line 141 of file Geant4Data.h.

◆ x

float dd4hep::sim::Geant4HitData::MonteCarloContrib::x = 0.0

Proper position of the hit contribution.

Definition at line 151 of file Geant4Data.h.

◆ y

float dd4hep::sim::Geant4HitData::MonteCarloContrib::y = 0.0

Definition at line 151 of file Geant4Data.h.

◆ z

float dd4hep::sim::Geant4HitData::MonteCarloContrib::z = 0.0

Definition at line 151 of file Geant4Data.h.


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