dd4pod::ConstGeant4Particle Class Reference

#include <Geant4ParticleConst.h>

Public Member Functions

 ConstGeant4Particle ()
 default constructor More...
 
 ConstGeant4Particle (int ID, int g4Parent, int reason, int mask, int steps, int secondaries, int pdgID, int status, std::array< int, 2 > colorFlow, int genStatus, int charge, std::array< int, 1 > spare, std::array< float, 3 > spin, double vsx, double vsy, double vsz, double vex, double vey, double vez, double psx, double psy, double psz, double pex, double pey, double pez, double mass, double time, double properTime)
 
 ConstGeant4Particle (Geant4ParticleObj *obj)
 constructor from existing Geant4ParticleObj More...
 
 ConstGeant4Particle (const ConstGeant4Particle &other)
 copy constructor More...
 
ConstGeant4Particleoperator= (const ConstGeant4Particle &other)
 copy-assignment operator More...
 
ConstGeant4Particle clone () const
 support cloning (deep-copy) More...
 
 ~ConstGeant4Particle ()
 destructor More...
 
const int & ID () const
 Access the x. More...
 
const int & g4Parent () const
 Access the x. More...
 
const int & reason () const
 Access the x. More...
 
const int & mask () const
 Access the x. More...
 
const int & steps () const
 Access the x. More...
 
const int & secondaries () const
 Access the x. More...
 
const int & pdgID () const
 Access the x. More...
 
const int & status () const
 Access the x. More...
 
const std::array< int, 2 > & colorFlow () const
 Access the x. More...
 
const int & colorFlow (size_t i) const
 Access item i of the x. More...
 
const int & genStatus () const
 Access the x. More...
 
const int & charge () const
 Access the x. More...
 
const std::array< int, 1 > & spare () const
 Access the x. More...
 
const int & spare (size_t i) const
 Access item i of the x. More...
 
const std::array< float, 3 > & spin () const
 Access the x. More...
 
const float & spin (size_t i) const
 Access item i of the x. More...
 
const double & vsx () const
 Access the startpoint x. More...
 
const double & vsy () const
 Access the startpoint x. More...
 
const double & vsz () const
 Access the startpoint x. More...
 
const double & vex () const
 Access the endpoint x. More...
 
const double & vey () const
 Access the endpoint x. More...
 
const double & vez () const
 Access the endpoint x. More...
 
const double & psx () const
 Access the startpoint x. More...
 
const double & psy () const
 Access the startpoint py. More...
 
const double & psz () const
 Access the startpoint pz. More...
 
const double & pex () const
 Access the endpoint x. More...
 
const double & pey () const
 Access the endpoint x. More...
 
const double & pez () const
 Access the endpoint pz. More...
 
const double & mass () const
 Access the x. More...
 
const double & time () const
 Access the x. More...
 
const double & properTime () const
 Access the x. More...
 
unsigned int parents_size () const
 
int parents (unsigned int) const
 
std::vector< int >::const_iterator parents_begin () const
 
std::vector< int >::const_iterator parents_end () const
 
podio::RelationRange< int > parents () const
 
unsigned int daughters_size () const
 
int daughters (unsigned int) const
 
std::vector< int >::const_iterator daughters_begin () const
 
std::vector< int >::const_iterator daughters_end () const
 
podio::RelationRange< int > daughters () const
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from Geant4ParticleObj instance More...
 
bool operator== (const ConstGeant4Particle &other) const
 
bool operator== (const Geant4Particle &other) const
 
bool operator< (const ConstGeant4Particle &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Detailed Description

Podio implementation of dd4hep's dd4hep::sim::Geant4Particle class

Author
: W.Armstrong

Definition at line 25 of file Geant4ParticleConst.h.

Constructor & Destructor Documentation

◆ ConstGeant4Particle() [1/4]

dd4pod::ConstGeant4Particle::ConstGeant4Particle ( )

default constructor

Definition at line 16 of file Geant4ParticleConst.cc.

◆ ConstGeant4Particle() [2/4]

dd4pod::ConstGeant4Particle::ConstGeant4Particle ( int  ID,
int  g4Parent,
int  reason,
int  mask,
int  steps,
int  secondaries,
int  pdgID,
int  status,
std::array< int, 2 >  colorFlow,
int  genStatus,
int  charge,
std::array< int, 1 >  spare,
std::array< float, 3 >  spin,
double  vsx,
double  vsy,
double  vsz,
double  vex,
double  vey,
double  vez,
double  psx,
double  psy,
double  psz,
double  pex,
double  pey,
double  pez,
double  mass,
double  time,
double  properTime 
)

Definition at line 20 of file Geant4ParticleConst.cc.

◆ ConstGeant4Particle() [3/4]

dd4pod::ConstGeant4Particle::ConstGeant4Particle ( Geant4ParticleObj obj)

constructor from existing Geant4ParticleObj

Definition at line 62 of file Geant4ParticleConst.cc.

◆ ConstGeant4Particle() [4/4]

dd4pod::ConstGeant4Particle::ConstGeant4Particle ( const ConstGeant4Particle other)

copy constructor

Definition at line 52 of file Geant4ParticleConst.cc.

◆ ~ConstGeant4Particle()

dd4pod::ConstGeant4Particle::~ConstGeant4Particle ( )

destructor

Definition at line 70 of file Geant4ParticleConst.cc.

Member Function Documentation

◆ charge()

const int & dd4pod::ConstGeant4Particle::charge ( ) const

Access the x.

Definition at line 84 of file Geant4ParticleConst.cc.

◆ clone()

ConstGeant4Particle dd4pod::ConstGeant4Particle::clone ( ) const

support cloning (deep-copy)

Definition at line 66 of file Geant4ParticleConst.cc.

◆ colorFlow() [1/2]

const std::array< int, 2 > & dd4pod::ConstGeant4Particle::colorFlow ( ) const

Access the x.

Definition at line 81 of file Geant4ParticleConst.cc.

◆ colorFlow() [2/2]

const int & dd4pod::ConstGeant4Particle::colorFlow ( size_t  i) const

Access item i of the x.

Definition at line 82 of file Geant4ParticleConst.cc.

◆ daughters() [1/2]

podio::RelationRange< int > dd4pod::ConstGeant4Particle::daughters ( ) const

Definition at line 162 of file Geant4ParticleConst.cc.

◆ daughters() [2/2]

int dd4pod::ConstGeant4Particle::daughters ( unsigned int  index) const

Definition at line 155 of file Geant4ParticleConst.cc.

◆ daughters_begin()

std::vector< int >::const_iterator dd4pod::ConstGeant4Particle::daughters_begin ( ) const

Definition at line 139 of file Geant4ParticleConst.cc.

◆ daughters_end()

std::vector< int >::const_iterator dd4pod::ConstGeant4Particle::daughters_end ( ) const

Definition at line 145 of file Geant4ParticleConst.cc.

◆ daughters_size()

unsigned int dd4pod::ConstGeant4Particle::daughters_size ( ) const

Definition at line 151 of file Geant4ParticleConst.cc.

◆ g4Parent()

const int & dd4pod::ConstGeant4Particle::g4Parent ( ) const

Access the x.

Definition at line 74 of file Geant4ParticleConst.cc.

◆ genStatus()

const int & dd4pod::ConstGeant4Particle::genStatus ( ) const

Access the x.

Definition at line 83 of file Geant4ParticleConst.cc.

◆ getObjectID()

const podio::ObjectID dd4pod::ConstGeant4Particle::getObjectID ( ) const

Definition at line 181 of file Geant4ParticleConst.cc.

◆ ID()

const int & dd4pod::ConstGeant4Particle::ID ( ) const

Access the x.

Definition at line 73 of file Geant4ParticleConst.cc.

◆ id()

unsigned int dd4pod::ConstGeant4Particle::id ( ) const
inline

Definition at line 166 of file Geant4ParticleConst.h.

◆ isAvailable()

bool dd4pod::ConstGeant4Particle::isAvailable ( ) const

check whether the object is actually available

Definition at line 174 of file Geant4ParticleConst.cc.

◆ mask()

const int & dd4pod::ConstGeant4Particle::mask ( ) const

Access the x.

Definition at line 76 of file Geant4ParticleConst.cc.

◆ mass()

const double & dd4pod::ConstGeant4Particle::mass ( ) const

Access the x.

Definition at line 101 of file Geant4ParticleConst.cc.

◆ operator<()

bool dd4pod::ConstGeant4Particle::operator< ( const ConstGeant4Particle other) const
inline

Definition at line 164 of file Geant4ParticleConst.h.

◆ operator=()

ConstGeant4Particle & dd4pod::ConstGeant4Particle::operator= ( const ConstGeant4Particle other)

copy-assignment operator

Definition at line 56 of file Geant4ParticleConst.cc.

◆ operator==() [1/2]

bool dd4pod::ConstGeant4Particle::operator== ( const ConstGeant4Particle other) const
inline

Definition at line 160 of file Geant4ParticleConst.h.

◆ operator==() [2/2]

bool dd4pod::ConstGeant4Particle::operator== ( const Geant4Particle other) const

Definition at line 188 of file Geant4ParticleConst.cc.

◆ parents() [1/2]

podio::RelationRange< int > dd4pod::ConstGeant4Particle::parents ( ) const

Definition at line 130 of file Geant4ParticleConst.cc.

◆ parents() [2/2]

int dd4pod::ConstGeant4Particle::parents ( unsigned int  index) const

Definition at line 123 of file Geant4ParticleConst.cc.

◆ parents_begin()

std::vector< int >::const_iterator dd4pod::ConstGeant4Particle::parents_begin ( ) const

Definition at line 107 of file Geant4ParticleConst.cc.

◆ parents_end()

std::vector< int >::const_iterator dd4pod::ConstGeant4Particle::parents_end ( ) const

Definition at line 113 of file Geant4ParticleConst.cc.

◆ parents_size()

unsigned int dd4pod::ConstGeant4Particle::parents_size ( ) const

Definition at line 119 of file Geant4ParticleConst.cc.

◆ pdgID()

const int & dd4pod::ConstGeant4Particle::pdgID ( ) const

Access the x.

Definition at line 79 of file Geant4ParticleConst.cc.

◆ pex()

const double & dd4pod::ConstGeant4Particle::pex ( ) const

Access the endpoint x.

Definition at line 98 of file Geant4ParticleConst.cc.

◆ pey()

const double & dd4pod::ConstGeant4Particle::pey ( ) const

Access the endpoint x.

Definition at line 99 of file Geant4ParticleConst.cc.

◆ pez()

const double & dd4pod::ConstGeant4Particle::pez ( ) const

Access the endpoint pz.

Definition at line 100 of file Geant4ParticleConst.cc.

◆ properTime()

const double & dd4pod::ConstGeant4Particle::properTime ( ) const

Access the x.

Definition at line 103 of file Geant4ParticleConst.cc.

◆ psx()

const double & dd4pod::ConstGeant4Particle::psx ( ) const

Access the startpoint x.

Definition at line 95 of file Geant4ParticleConst.cc.

◆ psy()

const double & dd4pod::ConstGeant4Particle::psy ( ) const

Access the startpoint py.

Definition at line 96 of file Geant4ParticleConst.cc.

◆ psz()

const double & dd4pod::ConstGeant4Particle::psz ( ) const

Access the startpoint pz.

Definition at line 97 of file Geant4ParticleConst.cc.

◆ reason()

const int & dd4pod::ConstGeant4Particle::reason ( ) const

Access the x.

Definition at line 75 of file Geant4ParticleConst.cc.

◆ secondaries()

const int & dd4pod::ConstGeant4Particle::secondaries ( ) const

Access the x.

Definition at line 78 of file Geant4ParticleConst.cc.

◆ spare() [1/2]

const std::array< int, 1 > & dd4pod::ConstGeant4Particle::spare ( ) const

Access the x.

Definition at line 85 of file Geant4ParticleConst.cc.

◆ spare() [2/2]

const int & dd4pod::ConstGeant4Particle::spare ( size_t  i) const

Access item i of the x.

Definition at line 86 of file Geant4ParticleConst.cc.

◆ spin() [1/2]

const std::array< float, 3 > & dd4pod::ConstGeant4Particle::spin ( ) const

Access the x.

Definition at line 87 of file Geant4ParticleConst.cc.

◆ spin() [2/2]

const float & dd4pod::ConstGeant4Particle::spin ( size_t  i) const

Access item i of the x.

Definition at line 88 of file Geant4ParticleConst.cc.

◆ status()

const int & dd4pod::ConstGeant4Particle::status ( ) const

Access the x.

Definition at line 80 of file Geant4ParticleConst.cc.

◆ steps()

const int & dd4pod::ConstGeant4Particle::steps ( ) const

Access the x.

Definition at line 77 of file Geant4ParticleConst.cc.

◆ time()

const double & dd4pod::ConstGeant4Particle::time ( ) const

Access the x.

Definition at line 102 of file Geant4ParticleConst.cc.

◆ unlink()

void dd4pod::ConstGeant4Particle::unlink ( )
inline

disconnect from Geant4ParticleObj instance

Definition at line 158 of file Geant4ParticleConst.h.

◆ vex()

const double & dd4pod::ConstGeant4Particle::vex ( ) const

Access the endpoint x.

Definition at line 92 of file Geant4ParticleConst.cc.

◆ vey()

const double & dd4pod::ConstGeant4Particle::vey ( ) const

Access the endpoint x.

Definition at line 93 of file Geant4ParticleConst.cc.

◆ vez()

const double & dd4pod::ConstGeant4Particle::vez ( ) const

Access the endpoint x.

Definition at line 94 of file Geant4ParticleConst.cc.

◆ vsx()

const double & dd4pod::ConstGeant4Particle::vsx ( ) const

Access the startpoint x.

Definition at line 89 of file Geant4ParticleConst.cc.

◆ vsy()

const double & dd4pod::ConstGeant4Particle::vsy ( ) const

Access the startpoint x.

Definition at line 90 of file Geant4ParticleConst.cc.

◆ vsz()

const double & dd4pod::ConstGeant4Particle::vsz ( ) const

Access the startpoint x.

Definition at line 91 of file Geant4ParticleConst.cc.


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