ATLAS Offline Software
Simulation
G4Atlas
G4AtlasServices
src
G4AtlasPrimaryGeneratorAction.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Local includes
6
#include "
G4AtlasPrimaryGeneratorAction.h
"
7
8
namespace
G4UA
9
{
10
11
//---------------------------------------------------------------------------
12
// Generate primaries action
13
//---------------------------------------------------------------------------
14
void
G4AtlasPrimaryGeneratorAction::GeneratePrimaries
(G4Event* anEvent)
15
{
16
// Loop over my pre-actions and apply each one in turn
17
for
(
auto
action
:
m_actions
){
18
action
->GeneratePrimaries(anEvent);
19
}
20
}
21
22
//---------------------------------------------------------------------------
23
// Add one action to the list
24
//---------------------------------------------------------------------------
25
void
G4AtlasPrimaryGeneratorAction::addPrimaryGeneratorAction
(G4VUserPrimaryGeneratorAction*
action
)
26
{
27
m_actions
.push_back(
action
);
28
}
29
30
}
// namespace G4UA
G4UA::G4AtlasPrimaryGeneratorAction::addPrimaryGeneratorAction
void addPrimaryGeneratorAction(G4VUserPrimaryGeneratorAction *action)
Add one action to the list.
Definition:
G4AtlasPrimaryGeneratorAction.cxx:25
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
G4AtlasPrimaryGeneratorAction.h
G4UA::G4AtlasPrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *anEvent) override final
Geant4 method for primary generation.
Definition:
G4AtlasPrimaryGeneratorAction.cxx:14
G4UA::G4AtlasPrimaryGeneratorAction::m_actions
std::vector< G4VUserPrimaryGeneratorAction * > m_actions
List of ATLAS primary generator actions.
Definition:
G4AtlasPrimaryGeneratorAction.h:44
python.CaloScaleNoiseConfig.action
action
Definition:
CaloScaleNoiseConfig.py:77
Generated on Tue Sep 2 2025 21:11:46 for ATLAS Offline Software by
1.8.18