5#ifndef MCTRUTH_ATLASG4EVENTUSERINFO_H
6#define MCTRUTH_ATLASG4EVENTUSERINFO_H
9#include <GaudiKernel/EventContext.h>
16#include <G4EventManager.hh>
17#include "G4VUserEventInformation.hh"
32 : G4VUserEventInformation()
133 G4EventManager* eventManager = G4EventManager::GetEventManager();
void SetHepMCEvent(HepMC::GenEvent *)
set m_theEvent, the pointer to the HepMC::GenEvent used to create the G4Event.
void SetLastProcessedStep(int stepNumber)
record value of the G4Track::GetCurrentStepNumber() for the current G4Step.
void SetCurrentPrimaryGenParticle(HepMC::ConstGenParticlePtr p)
set m_currentPrimaryGenParticle, the pointer to the HepMC::GenParticle used to create the current G4P...
HepMC::GenParticlePtr GetCurrentGenParticle()
return a pointer to the GenParticle corresponding to the current G4Track (if there is one).
std::shared_ptr< HitCollectionMap > m_hitCollectionMap
IProxyDict * m_eventStore
HepMC::ConstGenParticlePtr GetCurrentPrimaryGenParticle() const
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
std::shared_ptr< HitCollectionMap > GetHitCollectionMap() const
Get the HitCollectionMap object with shared ownership.
HepMC::GenParticlePtr m_currentGenParticle
static AtlasG4EventUserInfo * GetEventUserInfo()
int GetLastProcessedTrackID() const
return the value of G4Track::GetTrackID() for the last G4Step processed by a CaloCalibrationHit Sensi...
int GetLastProcessedStep() const
return the value of the G4Track::GetCurrentStepNumber() for the last G4Step processed by a CaloCalibr...
IProxyDict * GetEventStore()
HepMC::GenEvent * m_theEvent
HepMC::ConstGenParticlePtr GetCurrentGenParticle() const
AtlasG4EventUserInfo(const EventContext &ctx)
void SetCurrentGenParticle(HepMC::GenParticlePtr p)
set m_currentGenParticle, the pointer to the GenParticle corresponding to the current G4Track.
void SetHitCollectionMap(std::shared_ptr< HitCollectionMap > hitCollections)
Set the HitCollectionMap object.
int m_lastProcessedTrackID
const EventContext & m_eventContext
HepMC::GenEvent * GetHepMCEvent()
return a pointer to the HepMC::GenEvent used to create the G4Event.
void SetLastProcessedTrackID(int trackID)
record the value of G4Track::GetTrackID() for the current G4Step.
HepMC::ConstGenParticlePtr m_currentPrimaryGenParticle
const EventContext & GetEventContext() const
GenParticle * GenParticlePtr
const GenParticle * ConstGenParticlePtr