k4SimGeant4
|
Save tracker hits tool. More...
#include <SimG4SaveTrackerHits.h>
Public Member Functions | |
SimG4SaveTrackerHits (const std::string &aType, const std::string &aName, const IInterface *aParent) | |
virtual | ~SimG4SaveTrackerHits () |
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::SimTrackerHitCollection > | m_trackHits |
Handle for output tracker hits. | |
MetaDataHandle< std::string > | m_cellIDEncoding |
Output handle for cell ID encoding string. | |
Gaudi::Property< std::vector< std::string > > | m_readoutNames |
Names of the readouts (hits collections) to save, deprecated. | |
Gaudi::Property< std::string > | m_readoutName |
Name of the readout (hits collection) to save. | |
Save tracker hits tool.
The tool expects one readout name and will produce one collection.
Readout name is defined in DD4hep compact file as the attribute readout
of a detector
tag.
If readout name which does not correspond to any Geant4 hit collection is provided, the tool will fail at initialization.
If both readoutName
and deprecated readoutNames
are provided, the tool will fail at initialization.
If the more than one readout names is provided through the deprecated readoutNames
parameter, the tool will fail at initialization.
For more information please see.
|
explicit |
|
virtual |
|
virtual |
Finalize.
|
virtual |
Initialize.
|
finalvirtual |
Save the data output.
Saves the tracker hits from the collections as specified in the job options in 'readoutNames'.
[in] | aEvent | Event with data to save. |
workaround, store trackid in an unrelated field
Implements ISimG4SaveOutputTool.
|
private |
Output handle for cell ID encoding string.
|
private |
Pointer to the geometry service.
|
private |
Name of the readout (hits collection) to save.
|
private |
Names of the readouts (hits collections) to save, deprecated.
|
mutableprivate |
Handle for output tracker hits.