ATLAS Offline Software
Loading...
Searching...
No Matches
TestActionEHistTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace G4UA
8{
9
11 const std::string& name,
12 const IInterface* parent)
14 {
15 declareProperty("ROOTFileName",m_config.name);
16 declareProperty("CaloDepth",m_config.dCALO);
17 declareProperty("BeamPipeDepth",m_config.dBeam);
18 declareProperty("InDetDepth",m_config.dIDET);
19 declareProperty("MuonDepth",m_config.dMUON);
20 declareProperty("MaxHists",m_config.maxhists);
21 declareProperty("DetailDepth",m_config.dDetail);
22 }
23
24 std::unique_ptr<TestActionEHist>
26 {
27 ATH_MSG_DEBUG("Constructing a TestActionEHist");
28 auto action = std::make_unique<TestActionEHist>(m_config);
29 actionList.runActions.push_back( action.get() );
30 actionList.trackingActions.push_back( action.get() );
31 actionList.steppingActions.push_back( action.get() );
32 return action;
33 }
34
35} // namespace G4UA
#define ATH_MSG_DEBUG(x)
virtual std::unique_ptr< TestActionEHist > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
TestActionEHist::Config m_config
holds the configuration details received from python
TestActionEHistTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserTrackingAction * > trackingActions
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserRunAction * > runActions