k4SimGeant4
|
Tool to save Geant4 Trajectory data. More...
#include <SimG4SaveTrajectory.h>
Public Member Functions | |
SimG4SaveTrajectory (const std::string &aType, const std::string &aName, const IInterface *aParent) | |
virtual | ~SimG4SaveTrajectory () |
virtual StatusCode | initialize () |
Initialize. | |
virtual StatusCode | finalize () |
Finalize. | |
virtual StatusCode | saveOutput (const G4Event &aEvent) final |
Save the data output. | |
Public Member Functions inherited from ISimG4SaveOutputTool | |
DeclareInterfaceID (ISimG4SaveOutputTool, 1, 0) | |
Private Attributes | |
ServiceHandle< IGeoSvc > | m_geoSvc |
Pointer to the geometry service. | |
DataHandle< edm4hep::TrackerHit3DCollection > | m_trackHits |
Handle for trajectory hits including position information. | |
Tool to save Geant4 Trajectory data.
Requires Geant to be run with the command "/tracking/storeTrajectory 1". Note that access to trajectories is expensive, so this tool should only be used for debugging and visualisation.
|
explicit |
|
virtual |
|
virtual |
Finalize.
|
virtual |
Initialize.
|
finalvirtual |
Save the data output.
[in] | aEvent | Event with data to save. |
Implements ISimG4SaveOutputTool.
|
private |
Pointer to the geometry service.
|
mutableprivate |
Handle for trajectory hits including position information.