 |
Belle II Software
release-05-01-25
|
12 #ifndef GENERATORS_UTILITIES_INITIALPARTICLEGENERATION_H
13 #define GENERATORS_UTILITIES_INITIALPARTICLEGENERATION_H
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <framework/database/DBObjPtr.h>
17 #include <framework/utilities/MultivariateNormalGenerator.h>
18 #include <framework/dbobjects/BeamParameters.h>
19 #include <framework/dataobjects/MCInitialParticles.h>
114 #endif // GENERATORS_UTILITIES_INITIALPARTICLEGENERATION_H
TVector3 generateVertex(const TVector3 &initial, const TMatrixDSym &cov, MultivariateNormalGenerator &gen)
generate the vertex
InitialParticleGeneration(int allowedFlags=0)
constructor
TVector3 updateVertex(bool force=false)
Update the vertex position:
StoreObjPtr< MCInitialParticles > m_event
Datastore object containing the generated event.
MultivariateNormalGenerator m_generateHER
Generator for HER.
MultivariateNormalGenerator m_generateVertex
Generator for Vertex.
const BeamParameters & getBeamParameters() const
Return reference to nominal beam parameters.
TLorentzVector generateBeam(const TLorentzVector &initial, const TMatrixDSym &cov, MultivariateNormalGenerator &gen)
generate 4 vector for one beam
Class for accessing objects in the database.
Class to generate normal distributed, correlated random numbers given the mean values and the covaria...
This class contains the initial state for the given event.
@ c_generateCMS
generate initial event in CMS instead of lab
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
MultivariateNormalGenerator m_generateLER
Generator for LER.
int m_allowedFlags
Allowed generation flags.
DBObjPtr< BeamParameters > m_beamParams
Datastore object containing the nominal beam parameters.
void initialize()
function to be executed on initialize()
MCInitialParticles & generate()
Generate a new event.
This class contains the nominal beam parameters and the parameters used for smearing of the primary v...
void setAllowedFlags(int allowedFlags)
Set allowed flags.