Belle II Software
development
PrimaryGeneratorAction.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#ifndef PRIMARYGENERATORACTION_H_
10
#define PRIMARYGENERATORACTION_H_
11
12
#include <mdst/dataobjects/MCParticleGraph.h>
13
14
#include <G4VUserPrimaryGeneratorAction.hh>
15
#include <string>
16
17
class
G4Event;
18
19
namespace
Belle2
{
25
namespace
Simulation {
26
27
class
MCParticleGenerator;
28
34
class
PrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction {
35
36
public
:
37
42
PrimaryGeneratorAction
(
const
std::string& mcCollectionName,
MCParticleGraph
& mcParticleGraph);
43
45
virtual
~PrimaryGeneratorAction
();
46
52
void
GeneratePrimaries
(G4Event* event);
53
54
55
protected
:
56
57
MCParticleGenerator
*
m_mcParticleGenerator
;
58
};
59
60
}
//end of Simulation namespace
61
63
}
//end of Belle2 namespace
64
65
66
#endif
/* PRIMARYGENERATORACTION_H_ */
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:37
Belle2::Simulation::MCParticleGenerator
This class creates Geant4 primary particles from MCParticle list The generator assumes that each part...
Definition:
MCParticleGenerator.h:33
Belle2::Simulation::PrimaryGeneratorAction
The PrimaryGeneratorAction class inherits from G4VuserPrimaryGeneratorAction and specifies how a prim...
Definition:
PrimaryGeneratorAction.h:34
Belle2::Simulation::PrimaryGeneratorAction::~PrimaryGeneratorAction
virtual ~PrimaryGeneratorAction()
The destructor of the PrimaryGeneratorAction.
Definition:
PrimaryGeneratorAction.cc:30
Belle2::Simulation::PrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *event)
This method is called for each event by Geant4 and creates the primary particles by invoking the gene...
Definition:
PrimaryGeneratorAction.cc:36
Belle2::Simulation::PrimaryGeneratorAction::m_mcParticleGenerator
MCParticleGenerator * m_mcParticleGenerator
The instance of the MCParticle generator.
Definition:
PrimaryGeneratorAction.h:57
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
simulation
kernel
include
PrimaryGeneratorAction.h
Generated on Fri Nov 8 2024 02:41:26 for Belle II Software by
1.9.6