ATLAS Offline Software
Loading...
Searching...
No Matches
LooperThresholdSetTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4
6
7namespace G4UA
8{
9
10//---------------------------------------------------------------------------
11// Constructor
12//---------------------------------------------------------------------------
13LooperThresholdSetTool::LooperThresholdSetTool(const std::string& type, const std::string& name,
14 const IInterface* parent) :
16 m_config()
17{
18 declareProperty("WarningEnergy", m_config.WarningEnergy);
19 declareProperty("ImportantEnergy", m_config.ImportantEnergy);
20 declareProperty("NumberOfTrials", m_config.NumberOfTrials);
21}
22
23//---------------------------------------------------------------------------
24// Initialize - temporarily here for debugging
25//---------------------------------------------------------------------------
27{
28 ATH_MSG_DEBUG("initialize");
29 return StatusCode::SUCCESS;
30}
31
33{
34 ATH_MSG_DEBUG("finalize");
35 return StatusCode::SUCCESS;
36}
37
38
39//---------------------------------------------------------------------------
40// Create the action on request
41//---------------------------------------------------------------------------
42std::unique_ptr<LooperThresholdSet>
44{
45 ATH_MSG_DEBUG("Making a LooperThresholdSet action");
46 auto action = std::make_unique<LooperThresholdSet>(m_config);
47 actionList.runActions.push_back( action.get() );
48 return action;
49}
50
51}
#define ATH_MSG_DEBUG(x)
virtual std::unique_ptr< LooperThresholdSet > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
virtual StatusCode finalize() override
LooperThresholdSetTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
LooperThresholdSet::Config m_config
Configuration parameters.
virtual StatusCode initialize() override
Kills Monopoles and QBalls with energy < 1 MeV.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserRunAction * > runActions