k4SimGeant4
Loading...
Searching...
No Matches
InspectHitsCollectionsTool.h
Go to the documentation of this file.
1#ifndef TESTDD4HEP_INSPECTHITSCOLLECTIONSTOOL_H
2#define TESTDD4HEP_INSPECTHITSCOLLECTIONSTOOL_H
3
4// Gaudi
5#include "GaudiKernel/AlgTool.h"
6
7// FCCSW
9class IGeoSvc;
10
19class InspectHitsCollectionsTool : public AlgTool, virtual public ISimG4SaveOutputTool {
20public:
22 explicit InspectHitsCollectionsTool(const std::string& type, const std::string& name, const IInterface* parent);
25 virtual StatusCode initialize() final;
27 virtual StatusCode finalize() final;
29 virtual StatusCode saveOutput(const G4Event& aEvent) final;
30
31private:
33 ServiceHandle<IGeoSvc> m_geoSvc;
35 Gaudi::Property<std::vector<std::string>> m_readoutNames{
36 this, "readoutNames", {}, "Names of the readouts (hits collections)"};
37};
38
39#endif /* TESTDD4HEP_INSPECTHITSCOLLECTIONSTOOL_H */
Interface to the output saving tool.
Definition ISimG4SaveOutputTool.h:17
Tool used to inspect the hits collection.
Definition InspectHitsCollectionsTool.h:19
virtual StatusCode saveOutput(const G4Event &aEvent) final
inspect output
Definition InspectHitsCollectionsTool.cpp:51
virtual StatusCode finalize() final
Finalize.
Definition InspectHitsCollectionsTool.cpp:49
virtual StatusCode initialize() final
Initialize.
Definition InspectHitsCollectionsTool.cpp:27
Gaudi::Property< std::vector< std::string > > m_readoutNames
Name of the readouts (hits collections)
Definition InspectHitsCollectionsTool.h:35
virtual ~InspectHitsCollectionsTool()
Definition InspectHitsCollectionsTool.cpp:25
ServiceHandle< IGeoSvc > m_geoSvc
Pointer to the geometry service.
Definition InspectHitsCollectionsTool.h:33
InspectHitsCollectionsTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition InspectHitsCollectionsTool.cpp:19