ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
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
5
#include "
LooperThresholdSetTool.h
"
6
7
namespace
G4UA
8
{
9
10
//---------------------------------------------------------------------------
11
// Constructor
12
//---------------------------------------------------------------------------
13
LooperThresholdSetTool::LooperThresholdSetTool
(
const
std::string&
type
,
const
std::string& name,
14
const
IInterface* parent) :
15
UserActionToolBase
<
LooperThresholdSet
>(
type
, name, 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
//---------------------------------------------------------------------------
26
StatusCode
LooperThresholdSetTool::initialize
()
27
{
28
ATH_MSG_DEBUG
(
"initialize"
);
29
return
StatusCode::SUCCESS;
30
}
31
32
StatusCode
LooperThresholdSetTool::finalize
()
33
{
34
ATH_MSG_DEBUG
(
"finalize"
);
35
return
StatusCode::SUCCESS;
36
}
37
38
39
//---------------------------------------------------------------------------
40
// Create the action on request
41
//---------------------------------------------------------------------------
42
std::unique_ptr<LooperThresholdSet>
43
LooperThresholdSetTool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
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
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
LooperThresholdSetTool.h
G4UA::LooperThresholdSetTool::makeAndFillAction
virtual std::unique_ptr< LooperThresholdSet > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition
LooperThresholdSetTool.cxx:43
G4UA::LooperThresholdSetTool::finalize
virtual StatusCode finalize() override
Definition
LooperThresholdSetTool.cxx:32
G4UA::LooperThresholdSetTool::LooperThresholdSetTool
LooperThresholdSetTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
LooperThresholdSetTool.cxx:13
G4UA::LooperThresholdSetTool::m_config
LooperThresholdSet::Config m_config
Configuration parameters.
Definition
LooperThresholdSetTool.h:48
G4UA::LooperThresholdSetTool::initialize
virtual StatusCode initialize() override
Definition
LooperThresholdSetTool.cxx:26
G4UA::LooperThresholdSet
Kills Monopoles and QBalls with energy < 1 MeV.
Definition
G4LooperThresholdSet.h:18
G4UA::UserActionToolBase< LooperThresholdSet >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition
IUserActionTool.h:36
type
Generated on
for ATLAS Offline Software by
1.17.0