ATLAS Offline Software
Loading...
Searching...
No Matches
SyncPrimaryGeneratorActionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4RUNMANAGEMENT_SyncPrimaryGeneratorActionTool_H
6#define G4RUNMANAGEMENT_SyncPrimaryGeneratorActionTool_H
7
10
11// Local includes
13
14namespace G4UA {
15
16class SyncPrimaryGeneratorActionTool : public UserActionToolBase<SyncPrimaryGeneratorAction> {
17
18 public:
21
22 void G4RunTool(IG4RunTool* g4RunTool) override {
23 m_g4RunTool = g4RunTool;
24 }
25
26 protected:
28 virtual std::unique_ptr<SyncPrimaryGeneratorAction> makeAndFillAction(
29 G4AtlasUserActions&) override final;
30
32
33}; // class SyncPrimaryGeneratorActionTool
34
35} // namespace G4UA
36
37#endif
void G4RunTool(IG4RunTool *g4RunTool) override
virtual std::unique_ptr< SyncPrimaryGeneratorAction > makeAndFillAction(G4AtlasUserActions &) override final
Create the action for the current thread.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Provides an interface to interact with the Geant4 run.
Definition IG4RunTool.h:22
Struct for passing around user actions.