![]() |
ATLAS Offline Software
|
This class is attached to G4Event objects as UserInformation. More...
#include <AtlasG4EventUserInfo.h>
Public Member Functions | |
| AtlasG4EventUserInfo (const EventContext &ctx) | |
| HepMC::GenEvent * | GetHepMCEvent () |
| return a pointer to the HepMC::GenEvent used to create the G4Event. | |
| void | SetHepMCEvent (HepMC::GenEvent *) |
| set m_theEvent, the pointer to the HepMC::GenEvent used to create the G4Event. | |
| int | GetLastProcessedTrackID () const |
| return the value of G4Track::GetTrackID() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector. | |
| void | SetLastProcessedTrackID (int trackID) |
| record the value of G4Track::GetTrackID() for the current G4Step. | |
| int | GetLastProcessedStep () const |
| return the value of the G4Track::GetCurrentStepNumber() for the last G4Step processed by a CaloCalibrationHit Sensitive Detector. | |
| void | SetLastProcessedStep (int stepNumber) |
| record value of the G4Track::GetCurrentStepNumber() for the current G4Step. | |
| std::shared_ptr< HitCollectionMap > | GetHitCollectionMap () const |
| Get the HitCollectionMap object with shared ownership. | |
| void | SetHitCollectionMap (std::shared_ptr< HitCollectionMap > hitCollections) |
| Set the HitCollectionMap object. | |
| const EventContext & | GetEventContext () const |
| IProxyDict * | GetEventStore () |
| void | Print () const |
Static Public Member Functions | |
| static AtlasG4EventUserInfo * | GetEventUserInfo () |
Private Attributes | |
| const EventContext & | m_eventContext |
| IProxyDict * | m_eventStore {} |
| HepMC::GenEvent * | m_theEvent {} |
| 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 event-wide state such as the HepMC::GenEvent used to create the G4Event and the hit collection map. Per-track truth particles are stored on TrackInformation.
Definition at line 26 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 28 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 89 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 91 of file AtlasG4EventUserInfo.h.
|
inlinestatic |
Definition at line 96 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 82 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 69 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 52 of file AtlasG4EventUserInfo.h.
|
inline |
Definition at line 93 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 |
Set the HitCollectionMap object.
Definition at line 87 of file AtlasG4EventUserInfo.h.
|
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 76 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 59 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 109 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 110 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 113 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 121 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 120 of file AtlasG4EventUserInfo.h.
|
private |
Definition at line 111 of file AtlasG4EventUserInfo.h.