|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4OUTPUTACTION_H
14 #define DDG4_GEANT4OUTPUTACTION_H
32 class Geant4ParticleMap;
50 template <
typename U> U*
data()
const {
74 virtual void begin(
const G4Event* event)
override;
76 virtual void end(
const G4Event* event)
override;
78 virtual void beginRun(
const G4Run* run);
80 virtual void endRun(
const G4Run* run);
83 virtual void saveRun(
const G4Run* run);
94 #endif // DDG4_GEANT4OUTPUTACTION_H
Geant4OutputAction()=delete
Inhibit default constructor.
virtual void endRun(const G4Run *run)
Callback to store the Geant4 run information.
virtual void saveRun(const G4Run *run)
Callback to store the Geant4 event.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
Base class to output Geant4 event data to persistent media.
Helper class for thread savety.
OutputContext(const T *c)
Data structure to map particles produced during the generation and the simulation.
Concrete basic implementation of the Geant4 event action.
virtual void commit(OutputContext< G4Event > &ctxt)
Commit data at end of filling procedure.
Geant4ParticleMap * m_truth
Reference to MC truth object.
virtual void beginRun(const G4Run *run)
Callback to initialize storing the Geant4 information.
virtual void saveEvent(OutputContext< G4Event > &ctxt)
Callback to store the Geant4 event.
virtual void end(const G4Event *event) override
End-of-event callback.
virtual void begin(const G4Event *event) override
begin-of-event callback
std::string m_output
Property: "Output" output destination.
virtual ~Geant4OutputAction()
Default destructor.
Namespace for the AIDA detector description toolkit.
virtual void saveCollection(OutputContext< G4Event > &ctxt, G4VHitsCollection *collection)
Callback to store each Geant4 hit collection.
bool m_errorFatal
Property: "HandleErrorsAsFatal" Handle errors as fatal and rethrow eventual exceptions.
virtual void configureFiber(Geant4Context *ctxt) override
Set or update client for the use in a new thread fiber.
Generic context to extend user, run and event information.
Geant4OutputAction(const Geant4OutputAction ©)=delete
Inhibit copy constructor.