k4SimGeant4
Loading...
Searching...
No Matches
SimG4FullSimActions.h
Go to the documentation of this file.
1#ifndef SIMG4FULL_G4FULLSIMACTIONS_H
2#define SIMG4FULL_G4FULLSIMACTIONS_H
3
4// Gaudi
5#include "GaudiKernel/AlgTool.h"
6#include "GaudiKernel/SystemOfUnits.h"
7
8
9// FCCSW
11
19class SimG4FullSimActions : public AlgTool, virtual public ISimG4ActionTool {
20public:
21 explicit SimG4FullSimActions(const std::string& type, const std::string& name, const IInterface* parent);
22 virtual ~SimG4FullSimActions();
23
27 virtual StatusCode initialize() final;
31 virtual StatusCode finalize();
35 virtual G4VUserActionInitialization* userActionInitialization() final;
36
37private:
39 Gaudi::Property<bool> m_enableHistory{this, "enableHistory", false, "Set to true to save secondary particle info"};
40 Gaudi::Property<double> m_energyCut{this, "energyCut", 0.0 * Gaudi::Units::GeV, "minimum energy for secondaries to be saved"};
41};
42
43#endif /* SIMG4FULL_G4FULLSIMACTIONS_H */
abstract interface to load initialization list of user actions
Definition ISimG4ActionTool.h:17
Tool for loading full simulation user action initialization (list of user actions)
Definition SimG4FullSimActions.h:19
virtual StatusCode finalize()
Finalize.
Definition SimG4FullSimActions.cpp:22
SimG4FullSimActions(const std::string &type, const std::string &name, const IInterface *parent)
Definition SimG4FullSimActions.cpp:8
virtual StatusCode initialize() final
Initialize.
Definition SimG4FullSimActions.cpp:15
virtual G4VUserActionInitialization * userActionInitialization() final
Get the user action initialization.
Definition SimG4FullSimActions.cpp:24
Gaudi::Property< double > m_energyCut
Definition SimG4FullSimActions.h:40
Gaudi::Property< bool > m_enableHistory
Set to true to save secondary particle info.
Definition SimG4FullSimActions.h:39
virtual ~SimG4FullSimActions()
Definition SimG4FullSimActions.cpp:13