|  | 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... | |
| std::shared_ptr< HitCollectionMap > | GetHitCollectionMap () const | 
| Get the HitCollectionMap object with shared ownership.  More... | |
| void | SetHitCollectionMap (std::shared_ptr< HitCollectionMap > hitCollections) | 
| Set the HitCollectionMap object.  More... | |
| void | Print () const | 
| Private Attributes | |
| HepMC::GenEvent * | m_theEvent {} | 
| HepMC::ConstGenParticlePtr | m_currentPrimaryGenParticle {} | 
| HepMC::GenParticlePtr | m_currentGenParticle {} | 
| std::shared_ptr< HitCollectionMap > | m_hitCollectionMap {std::make_shared<HitCollectionMap>()} | 
| 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 23 of file AtlasG4EventUserInfo.h.
| 
 | inline | 
Definition at line 25 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 61 of file AtlasG4EventUserInfo.h.
| 
 | inline | 
Definition at line 62 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 46 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 | 
Get the HitCollectionMap object with shared ownership.
Geant4 deleting this UserInfo object will not delete the HitCollectionMap.
Definition at line 108 of file AtlasG4EventUserInfo.h.
| 
 | 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 95 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 78 of file AtlasG4EventUserInfo.h.
| 
 | inline | 
Definition at line 115 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 69 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 55 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 | 
| 
 | 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 102 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 85 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 120 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 119 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 122 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 130 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 129 of file AtlasG4EventUserInfo.h.
| 
 | private | 
Definition at line 118 of file AtlasG4EventUserInfo.h.
 1.8.18
 1.8.18