ATLAS Offline Software
Loading...
Searching...
No Matches
ScoringPlaneTool.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 "ScoringPlaneTool.h"
6
7
8namespace G4UA
9{
10
12 const std::string& name,
13 const IInterface* parent)
14 : UserActionToolBase<ScoringPlane>(type, name, parent)
15 {
16 declareProperty("Plane", m_config.plane);
17 declareProperty("PKill", m_config.pkill);
18 declareProperty("FName", m_config.fname);
19 }
20
21 std::unique_ptr<ScoringPlane>
23 {
24 ATH_MSG_DEBUG("Making a ScoringPlane action");
25 auto action = std::make_unique<ScoringPlane>(m_config);
26 actionList.runActions.push_back( action.get() );
27 actionList.eventActions.push_back( action.get() );
28 actionList.steppingActions.push_back( action.get() );
29 return action;
30 }
31
32} // namespace G4UA
#define ATH_MSG_DEBUG(x)
ScoringPlane::Config m_config
holds the python configuration
ScoringPlaneTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard tool ctor.
virtual std::unique_ptr< ScoringPlane > makeAndFillAction(G4AtlasUserActions &) override final
creates the action instances
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserEventAction * > eventActions
std::vector< G4UserRunAction * > runActions