ATLAS Offline Software
Simulation
G4Utilities
G4UserActions
src
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
5
#include "
CosmicPerigeeActionTool.h
"
6
7
namespace
G4UA
8
{
9
10
//---------------------------------------------------------------------------
11
// Constructor
12
//---------------------------------------------------------------------------
13
CosmicPerigeeActionTool::CosmicPerigeeActionTool
(
const
std::string&
type
,
14
const
std::string&
name
,
15
const
IInterface*
parent
)
16
:
UserActionToolBase
<
CosmicPerigeeAction
>(
type
,
name
,
parent
)
17
{
18
declareProperty(
"pMinPrimary"
,
m_config
.
pMinPrimary
);
19
}
20
21
//---------------------------------------------------------------------------
22
// Create the action on request
23
//---------------------------------------------------------------------------
24
std::unique_ptr<CosmicPerigeeAction>
25
CosmicPerigeeActionTool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
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
}
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition:
IUserActionTool.h:32
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions::trackingActions
std::vector< G4UserTrackingAction * > trackingActions
Definition:
IUserActionTool.h:35
G4UA::CosmicPerigeeActionTool::makeAndFillAction
virtual std::unique_ptr< CosmicPerigeeAction > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition:
CosmicPerigeeActionTool.cxx:25
G4UA::CosmicPerigeeAction
NEEDS DOCUMENTATION.
Definition:
CosmicPerigeeAction.h:24
G4UA::CosmicPerigeeActionTool::CosmicPerigeeActionTool
CosmicPerigeeActionTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition:
CosmicPerigeeActionTool.cxx:13
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
G4UA::CosmicPerigeeAction::Config::pMinPrimary
float pMinPrimary
Definition:
CosmicPerigeeAction.h:30
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition:
UserActionToolBase.h:33
CosmicPerigeeActionTool.h
python.CaloScaleNoiseConfig.action
action
Definition:
CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition:
IUserActionTool.h:34
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition:
IUserActionTool.h:36
G4UA::CosmicPerigeeActionTool::m_config
CosmicPerigeeAction::Config m_config
Configuration parameters.
Definition:
CosmicPerigeeActionTool.h:45
Generated on Thu Nov 7 2024 21:12:33 for ATLAS Offline Software by
1.8.18