ATLAS Offline Software
FastIDKillerTool.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 "FastIDKillerTool.h"
6 
7 namespace G4UA
8 {
9 
10  //---------------------------------------------------------------------------
12  const std::string& name,
13  const IInterface* parent)
15  {
16  declareProperty("R", m_config.R);
17  declareProperty("Z", m_config.Z);
18  declareProperty("energyCut", m_config.energyCut);
19  declareProperty("isDalek", m_config.isDalek);
20  }
21 
22  //---------------------------------------------------------------------------
23  std::unique_ptr<FastIDKiller>
25  {
26  ATH_MSG_DEBUG("Constructing a FastIDKiller action");
27  auto action = std::make_unique<FastIDKiller>(m_config);
28  actionList.runActions.push_back( action.get() );
29  actionList.steppingActions.push_back( action.get() );
30  return action;
31  }
32 
33  //---------------------------------------------------------------------------
35  {
36  // Accumulate results across threads
40  ATH_MSG_INFO( "Fast Inner Detector Killer killed " << report.killCount <<
41  " particles during this run." );
42  return StatusCode::SUCCESS;
43  }
44 
45 } // namespace G4UA
G4UA::FastIDKiller::Report::merge
void merge(const Report &rep)
Definition: FastIDKiller.h:40
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::FastIDKiller
NEEDS DOCUMENTATION.
Definition: FastIDKiller.h:20
checkTP.report
report
Definition: checkTP.py:127
G4UA::ThreadSpecificUserAction::accumulate
void accumulate(ResultType &result, Mapper mapOp, Reducer reduceOp)
Accumulate results across user actions with specified operations.
Definition: ThreadSpecificUserAction.h:88
G4UA::FastIDKiller::Config::isDalek
bool isDalek
Definition: FastIDKiller.h:30
G4UA::FastIDKiller::Config::R
float R
Definition: FastIDKiller.h:27
G4UA::FastIDKillerTool::makeAndFillAction
virtual std::unique_ptr< FastIDKiller > makeAndFillAction(G4AtlasUserActions &) override final
Create the action for the current thread.
Definition: FastIDKillerTool.cxx:24
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
G4UA::UserActionToolBase< FastIDKiller >::m_actions
ThreadSpecificUserAction< FastIDKiller > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
G4UA::FastIDKillerTool::m_config
FastIDKiller::Config m_config
Definition: FastIDKillerTool.h:37
test_pyathena.parent
parent
Definition: test_pyathena.py:15
FastIDKillerTool.h
G4UA::FastIDKiller::Config::energyCut
float energyCut
Definition: FastIDKiller.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition: IUserActionTool.h:33
G4UA::FastIDKiller::Report
Per-thread results for merging at end of run.
Definition: FastIDKiller.h:38
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::FastIDKiller::Config::Z
float Z
Definition: FastIDKiller.h:28
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition: IUserActionTool.h:36
G4UA::FastIDKillerTool::finalize
virtual StatusCode finalize() override
Definition: FastIDKillerTool.cxx:34
G4UA::FastIDKillerTool::FastIDKillerTool
FastIDKillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: FastIDKillerTool.cxx:11
G4UA::FastIDKiller::getReport
const Report & getReport() const
Definition: FastIDKiller.h:45