ATLAS Offline Software
Loading...
Searching...
No Matches
CelerOffloadTool.cxx
Go to the documentation of this file.
1#include "CelerOffloadTool.h"
2
3namespace G4UA {
4
5 CelerOffloadTool::CelerOffloadTool(const std::string& type, const std::string& name, const IInterface* parent)
6 : UserActionToolBase<CelerOffload>(type, name, parent) {}
7
9 ATH_MSG_INFO("CelerOffload::initialize " << name());
10
11 // Celeritas initialization done in the PhysicsList
12
13 return StatusCode::SUCCESS;
14 }
15
17 ATH_MSG_INFO("CelerOffload::finalize " << name());
18 return StatusCode::SUCCESS;
19 }
20
21 std::unique_ptr<CelerOffload> CelerOffloadTool::makeAndFillAction(G4AtlasUserActions& actionList) {
22 ATH_MSG_INFO("CelerOffload::makeAction " << name());
23 auto action = std::make_unique<CelerOffload>();
24 actionList.runActions.push_back( action.get() );
25 actionList.runActionsMaster.push_back( action.get() );
26 return action;
27 }
28}
29
#define ATH_MSG_INFO(x)
virtual StatusCode finalize() override
virtual std::unique_ptr< CelerOffload > makeAndFillAction(G4AtlasUserActions &) override final
Make the action and push onto the lists.
virtual StatusCode initialize() override
CelerOffloadTool(const std::string &type, const std::string &name, const IInterface *parent)
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserRunAction * > runActionsMaster
std::vector< G4UserRunAction * > runActions