ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace G4UA
8{
9
10//---------------------------------------------------------------------------
11// Constructor
12//---------------------------------------------------------------------------
13VolumeDumperTool::VolumeDumperTool(const std::string& type, const std::string& name,
14 const IInterface* parent) :
16{
17}
18
19//---------------------------------------------------------------------------
20// Create the action on request
21//---------------------------------------------------------------------------
22std::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}
#define ATH_MSG_DEBUG(x)
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual std::unique_ptr< VolumeDumper > makeAndFillAction(G4AtlasUserActions &) override final
creates the action instances
VolumeDumperTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Struct for passing around user actions.
std::vector< G4UserEventAction * > eventActions