ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
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) :
15
UserActionToolBase
<
VolumeDumper
>(
type
, name, parent)
16
{
17
}
18
19
//---------------------------------------------------------------------------
20
// Create the action on request
21
//---------------------------------------------------------------------------
22
std::unique_ptr<VolumeDumper>
23
VolumeDumperTool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
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
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
VolumeDumperTool.h
G4UA::UserActionToolBase< VolumeDumper >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA::VolumeDumperTool::makeAndFillAction
virtual std::unique_ptr< VolumeDumper > makeAndFillAction(G4AtlasUserActions &) override final
creates the action instances
Definition
VolumeDumperTool.cxx:23
G4UA::VolumeDumperTool::VolumeDumperTool
VolumeDumperTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
VolumeDumperTool.cxx:13
G4UA::VolumeDumper
Definition
VolumeDumper.h:19
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition
IUserActionTool.h:39
type
Generated on
for ATLAS Offline Software by
1.14.0