ATLAS Offline Software
Loading...
Searching...
No Matches
G4AtlasPrimaryGeneratorAction.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 G4ATLASTOOLS__G4UA_G4ATLASPRIMARYGENERATORACTION_H
6#define G4ATLASTOOLS__G4UA_G4ATLASPRIMARYGENERATORACTION_H
7
8// STL includes
9#include <vector>
10
11// Geant4 includes
12#include <G4VUserPrimaryGeneratorAction.hh>
13
14
15namespace G4UA
16{
17
28 class G4AtlasPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
29 {
30
31 public:
32
36 void GeneratePrimaries(G4Event* anEvent) override final;
37
39 void addPrimaryGeneratorAction(G4VUserPrimaryGeneratorAction* action);
40
41 private:
42
44 std::vector<G4VUserPrimaryGeneratorAction*> m_actions;
45
46 }; // class G4AtlasPrimaryGeneratorAction
47
48}
49
50#endif
ATLAS subclass of the G4 primary generator action.
std::vector< G4VUserPrimaryGeneratorAction * > m_actions
List of ATLAS primary generator actions.
void GeneratePrimaries(G4Event *anEvent) override final
Geant4 method for primary generation.
void addPrimaryGeneratorAction(G4VUserPrimaryGeneratorAction *action)
Add one action to the list.