ATLAS Offline Software
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 
7 namespace G4UA
8 {
9 
10 //---------------------------------------------------------------------------
11 // Constructor
12 //---------------------------------------------------------------------------
13 LooperThresholdSetTool::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 //---------------------------------------------------------------------------
42 std::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 }
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::LooperThresholdSet::Config::ImportantEnergy
double ImportantEnergy
Definition: LooperThresholdSet.h:27
G4UA::LooperThresholdSet::Config::NumberOfTrials
int NumberOfTrials
Definition: LooperThresholdSet.h:28
LooperThresholdSetTool.h
G4UA::LooperThresholdSetTool::makeAndFillAction
virtual std::unique_ptr< LooperThresholdSet > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition: LooperThresholdSetTool.cxx:43
G4UA::LooperThresholdSet
Kills Monopoles and QBalls with energy < 1 MeV.
Definition: G4LooperThresholdSet.h:18
G4UA::LooperThresholdSet::Config::WarningEnergy
double WarningEnergy
Definition: LooperThresholdSet.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::LooperThresholdSetTool::initialize
virtual StatusCode initialize() override
Definition: LooperThresholdSetTool.cxx:26
G4UA::LooperThresholdSetTool::LooperThresholdSetTool
LooperThresholdSetTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: LooperThresholdSetTool.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition: IUserActionTool.h:33
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::LooperThresholdSetTool::finalize
virtual StatusCode finalize() override
Definition: LooperThresholdSetTool.cxx:32
G4UA::LooperThresholdSetTool::m_config
LooperThresholdSet::Config m_config
Configuration parameters.
Definition: LooperThresholdSetTool.h:48