Belle II Software  release-06-00-14
InitialParticleGeneration Class Reference

Generate Collision. More...

#include <InitialParticleGeneration.h>

Collaboration diagram for InitialParticleGeneration:

Public Member Functions

 InitialParticleGeneration (int allowedFlags=0)
 constructor More...
 
MCInitialParticlesgenerate ()
 Generate a new event.
 
TVector3 updateVertex (bool force=false)
 Update the vertex position: More...
 
const BeamParametersgetBeamParameters () const
 Return reference to nominal beam parameters.
 
void initialize ()
 function to be executed on initialize()
 
void setAllowedFlags (int allowedFlags)
 Set allowed flags.
 

Private Member Functions

MCInitialParticlesgenerate (int allowedFlags)
 Generate a new event wit a particular set of allowed flags. More...
 
TVector3 generateVertex (const TVector3 &initial, const TMatrixDSym &cov, MultivariateNormalGenerator &gen)
 generate the vertex More...
 
TLorentzVector generateBeam (const TLorentzVector &initial, const TMatrixDSym &cov, MultivariateNormalGenerator &gen)
 generate 4 vector for one beam More...
 

Private Attributes

DBObjPtr< BeamParametersm_beamParams
 Datastore object containing the nominal beam parameters.
 
StoreObjPtr< MCInitialParticlesm_event
 Datastore object containing the generated event.
 
MultivariateNormalGenerator m_generateHER
 Generator for HER.
 
MultivariateNormalGenerator m_generateLER
 Generator for LER.
 
MultivariateNormalGenerator m_generateVertex
 Generator for Vertex.
 
int m_allowedFlags
 Allowed generation flags.
 

Detailed Description

Generate Collision.

This class is meant to be a common interface to be used by physics generators for generating the initial beam collision.

A generator module should have this class as a member. In each event, a call to generate() will return the initial event information and also automatically put it in the datastore.

Definition at line 33 of file InitialParticleGeneration.h.

Constructor & Destructor Documentation

◆ InitialParticleGeneration()

InitialParticleGeneration ( int  allowedFlags = 0)
inlineexplicit

constructor

Parameters
allowedFlagsallowed generation flags from MCInitialParticles. Default is to allow no smearing. Generation in CMS is always permitted

Definition at line 39 of file InitialParticleGeneration.h.

int m_allowedFlags
Allowed generation flags.
@ c_generateCMS
generate initial event in CMS instead of lab

The documentation for this class was generated from the following files: