ATLAS Offline Software
VolumeDumperTool.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 "VolumeDumperTool.h"
6 
7 namespace G4UA
8 {
9 
10 //---------------------------------------------------------------------------
11 // Constructor
12 //---------------------------------------------------------------------------
13 VolumeDumperTool::VolumeDumperTool(const std::string& type, const std::string& name,
14  const IInterface* parent) :
16 {
17 }
18 
19 //---------------------------------------------------------------------------
20 // Create the action on request
21 //---------------------------------------------------------------------------
22 std::unique_ptr<VolumeDumper>
24 {
25  ATH_MSG_DEBUG("Constructing a VolumeDumper action");
26  auto action = std::make_unique<VolumeDumper>();
27  actionList.eventActions.push_back( action.get() );
28  return action;
29 }
30 
31 }
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA::VolumeDumperTool::makeAndFillAction
virtual std::unique_ptr< VolumeDumper > makeAndFillAction(G4AtlasUserActions &) override final
creates the action instances
Definition: VolumeDumperTool.cxx:23
VolumeDumperTool.h
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::VolumeDumper
Definition: VolumeDumper.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
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::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition: IUserActionTool.h:34
G4UA::VolumeDumperTool::VolumeDumperTool
VolumeDumperTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: VolumeDumperTool.cxx:13