ATLAS Offline Software
|
This class is attached to G4Event objects as UserInformation. It holds a pointer to the HepMC::GenEvent which was used to create the G4Event. NB As with VTrackInformation, the GenParticlePtr held by the AtlasG4EventUserInfo object can change during simulation (i.e. each time the track undergoes a non-destructive interaction). More...
#include <AtlasG4EventUserInfo.h>
Public Member Functions | |
AtlasG4EventUserInfo () | |
HepMC::GenEvent * | GetHepMCEvent () |
return a pointer to the HepMC::GenEvent used to create the G4Event. More... | |
void | SetHepMCEvent (HepMC::GenEvent *) |
set m_theEvent, the pointer to the HepMC::GenEvent used to create the G4Event. More... | |
HepMC::ConstGenParticlePtr | GetCurrentPrimaryGenParticle () const |
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle. More... | |
void | SetCurrentPrimaryGenParticle (HepMC::ConstGenParticlePtr p) |
set m_currentPrimaryGenParticle, the pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle. More... | |
HepMC::GenParticlePtr | GetCurrentGenParticle () |
return a pointer to the GenParticle corresponding to the current G4Track (if there is one). More... | |
HepMC::ConstGenParticlePtr | GetCurrentGenParticle () const |
void | SetCurrentGenParticle (HepMC::GenParticlePtr p) |
set m_currentGenParticle, the pointer to the GenParticle corresponding to the current G4Track. More... | |
int | GetLastProcessedTrackID () const |
return the value of G4Track::GetTrackID() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector. More... | |
void | SetLastProcessedTrackID (int trackID) |
record the value of G4Track::GetTrackID() for the current G4Step. More... | |
int | GetLastProcessedStep () const |
return the value of the G4Track::GetCurrentStepNumber() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector. More... | |
void | SetLastProcessedStep (int stepNumber) |
record value of the G4Track::GetCurrentStepNumber() for the current G4Step. More... | |
void | Print () const |
Private Attributes | |
HepMC::GenEvent * | m_theEvent {} |
HepMC::ConstGenParticlePtr | m_currentPrimaryGenParticle {} |
HepMC::GenParticlePtr | m_currentGenParticle {} |
int | m_lastProcessedTrackID {0} |
int | m_lastProcessedStep {0} |
This class is attached to G4Event objects as UserInformation. It holds a pointer to the HepMC::GenEvent which was used to create the G4Event. NB As with VTrackInformation, the GenParticlePtr held by the AtlasG4EventUserInfo object can change during simulation (i.e. each time the track undergoes a non-destructive interaction).
Definition at line 21 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 23 of file AtlasG4EventUserInfo.h.
|
inline |
return a pointer to the GenParticle corresponding to the current G4Track (if there is one).
TODO Rename
Definition at line 59 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 60 of file AtlasG4EventUserInfo.h.
|
inline |
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
(Used in G4VFastSimulationModel implementations and Sensitive Detectors which record CaloCalibrationHits.) TODO Rename
Definition at line 44 of file AtlasG4EventUserInfo.h.
HepMC::GenEvent * AtlasG4EventUserInfo::GetHepMCEvent | ( | ) |
return a pointer to the HepMC::GenEvent used to create the G4Event.
(Never called. Remove?)
Definition at line 8 of file AtlasG4EventUserInfo.cxx.
|
inline |
return the value of the G4Track::GetCurrentStepNumber() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector.
Used in CalibrationDefaultProcessing::UserSteppingAction(...) to ensure that unprocessed G4Steps are passed to the default CaloCalibrationHit sensitive detector.
Definition at line 93 of file AtlasG4EventUserInfo.h.
|
inline |
return the value of G4Track::GetTrackID() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector.
Used in CalibrationDefaultProcessing::UserSteppingAction(...) to ensure that unprocessed G4Steps are passed to the default CaloCalibrationHit sensitive detector. TODO Rename
Definition at line 76 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 102 of file AtlasG4EventUserInfo.h.
|
inline |
set m_currentGenParticle, the pointer to the GenParticle corresponding to the current G4Track.
This will be updated each time an interaction of the G4Track is recorded to the HepMC::GenEvent. TODO Rename
Definition at line 67 of file AtlasG4EventUserInfo.h.
|
inline |
set m_currentPrimaryGenParticle, the pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
This pointer is updated each time there is a new G4PrimaryParticle. Called from (AthenaTrackingAction/TrackProcessorUserActionBase):: PreUserTrackingAction(...). TODO Rename
Definition at line 53 of file AtlasG4EventUserInfo.h.
void AtlasG4EventUserInfo::SetHepMCEvent | ( | HepMC::GenEvent * | ev | ) |
set m_theEvent, the pointer to the HepMC::GenEvent used to create the G4Event.
Only called in ISF::InputConverter::ISF_to_G4Event(...).
Definition at line 13 of file AtlasG4EventUserInfo.cxx.
|
inline |
record value of the G4Track::GetCurrentStepNumber() for the current G4Step.
Should be called by all CaloCalibrationHit Sensitive Detectors after they process a G4Step. TODO Check this is done.
Definition at line 100 of file AtlasG4EventUserInfo.h.
|
inline |
record the value of G4Track::GetTrackID() for the current G4Step.
Should be called by all CaloCalibrationHit Sensitive Detectors after they process a G4Step. TODO Check this. TODO Rename
Definition at line 83 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 107 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 106 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 114 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 113 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 105 of file AtlasG4EventUserInfo.h.