ATLAS Offline Software
|
This class is attached to G4PrimaryParticle objects as UserInformation. The member variable m_theParticle holds a pointer to the HepMC::GenParticle which was used to create the G4PrimaryParticle. Tthe member variable m_theISFParticle holds a pointer to the ISFParticle used to create the G4PrimaryParticle. (See ISF::InputConverter::getG4PrimaryParticle().) The behaviour is slightly different inside and outside ISF: More...
#include <PrimaryParticleInformation.h>
Public Member Functions | |
PrimaryParticleInformation () | |
PrimaryParticleInformation (HepMC::GenParticlePtr p, ISF::ISFParticle *isp=nullptr) | |
HepMC::ConstGenParticlePtr | GetHepMCParticle () const |
return a pointer to the GenParticle used to create the G4PrimaryParticle More... | |
HepMC::GenParticlePtr | GetHepMCParticle () |
int | GetRegenerationNr () |
return the number of times the particle represented by the G4PrimaryParticle has undergone a non-destructive interaction that was recorded in the HepMC::GenEvent. More... | |
void | SetRegenerationNr (int i) |
update the number of times the particle represented by the G4PrimaryParticle has undergone a non-destructive interaction that was recorded in the HepMC::GenEvent. More... | |
const ISF::ISFParticle * | GetISFParticle () const |
return a pointer to the ISFParticle used to create the G4PrimaryParticle More... | |
ISF::ISFParticle * | GetISFParticle () |
void | SetISFParticle (ISF::ISFParticle *isp) |
int | GetParticleBarcode () const |
int | GetParticleUniqueID () const |
void | Print () const |
Private Attributes | |
HepMC::GenParticlePtr | m_theParticle {} |
ISF::ISFParticle * | m_theISFParticle {} |
int | m_regenerationNr {0} |
int m_barcode | ATLAS_THREAD_SAFE = HepMC::INVALID_PARTICLE_BARCODE |
int m_uniqueID | ATLAS_THREAD_SAFE = HepMC::INVALID_PARTICLE_BARCODE |
This class is attached to G4PrimaryParticle objects as UserInformation. The member variable m_theParticle holds a pointer to the HepMC::GenParticle which was used to create the G4PrimaryParticle. Tthe member variable m_theISFParticle holds a pointer to the ISFParticle used to create the G4PrimaryParticle. (See ISF::InputConverter::getG4PrimaryParticle().) The behaviour is slightly different inside and outside ISF:
Definition at line 39 of file PrimaryParticleInformation.h.
PrimaryParticleInformation::PrimaryParticleInformation | ( | ) |
Definition at line 8 of file PrimaryParticleInformation.cxx.
PrimaryParticleInformation::PrimaryParticleInformation | ( | HepMC::GenParticlePtr | p, |
ISF::ISFParticle * | isp = nullptr |
||
) |
Definition at line 12 of file PrimaryParticleInformation.cxx.
|
inline |
Definition at line 48 of file PrimaryParticleInformation.h.
|
inline |
return a pointer to the GenParticle used to create the G4PrimaryParticle
Definition at line 47 of file PrimaryParticleInformation.h.
|
inline |
Definition at line 67 of file PrimaryParticleInformation.h.
|
inline |
return a pointer to the ISFParticle used to create the G4PrimaryParticle
Definition at line 66 of file PrimaryParticleInformation.h.
int PrimaryParticleInformation::GetParticleBarcode | ( | ) | const |
Definition at line 18 of file PrimaryParticleInformation.cxx.
int PrimaryParticleInformation::GetParticleUniqueID | ( | ) | const |
Definition at line 28 of file PrimaryParticleInformation.cxx.
|
inline |
return the number of times the particle represented by the G4PrimaryParticle has undergone a non-destructive interaction that was recorded in the HepMC::GenEvent.
Definition at line 55 of file PrimaryParticleInformation.h.
|
inline |
Definition at line 72 of file PrimaryParticleInformation.h.
void PrimaryParticleInformation::SetISFParticle | ( | ISF::ISFParticle * | isp | ) |
Definition at line 39 of file PrimaryParticleInformation.cxx.
|
inline |
update the number of times the particle represented by the G4PrimaryParticle has undergone a non-destructive interaction that was recorded in the HepMC::GenEvent.
Definition at line 61 of file PrimaryParticleInformation.h.
|
mutableprivate |
Definition at line 78 of file PrimaryParticleInformation.h.
|
mutableprivate |
Definition at line 79 of file PrimaryParticleInformation.h.
|
private |
Definition at line 77 of file PrimaryParticleInformation.h.
|
private |
Definition at line 75 of file PrimaryParticleInformation.h.
|
private |
Definition at line 74 of file PrimaryParticleInformation.h.