ATLAS Offline Software
Loading...
Searching...
No Matches
CosmicPerigeeActionTool.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 //---------------------------------------------------------------------------
14 const std::string& name,
15 const IInterface* parent)
17 {
18 declareProperty("pMinPrimary", m_config.pMinPrimary);
19 }
20
21 //---------------------------------------------------------------------------
22 // Create the action on request
23 //---------------------------------------------------------------------------
24 std::unique_ptr<CosmicPerigeeAction>
26 {
27 ATH_MSG_DEBUG("Creating CosmicPerigeeAction");
28 auto action = std::make_unique<CosmicPerigeeAction>(m_config);
29 actionList.eventActions.push_back( action.get() );
30 actionList.trackingActions.push_back( action.get() );
31 actionList.steppingActions.push_back( action.get() );
32 return action;
33 }
34
35}
#define ATH_MSG_DEBUG(x)
virtual std::unique_ptr< CosmicPerigeeAction > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
CosmicPerigeeActionTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
CosmicPerigeeAction::Config m_config
Configuration parameters.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserTrackingAction * > trackingActions
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserEventAction * > eventActions