Belle II Software development
ParticleGun::Parameters Struct Reference

Struct to keep all necessary parameters for the particle gun. More...

#include <ParticleGun.h>

Public Attributes

EDistribution momentumDist = c_fixedValue
 Distribution to use for momentum generation.
 
EDistribution phiDist = c_fixedValue
 Distribution to use for azimuth angle generation.
 
EDistribution thetaDist = c_fixedValue
 Distribution to use for polar angle generation.
 
EDistribution xVertexDist = c_fixedValue
 Distribution to use for x vertex generation.
 
EDistribution yVertexDist = c_fixedValue
 Distribution to use for y vertex generation.
 
EDistribution zVertexDist = c_fixedValue
 Distribution to use for z vertex generation.
 
EDistribution timeDist = c_fixedValue
 Distribution to use for time generation.
 
double nTracks
 Number of tracks to generate per event.
 
std::vector< int > pdgCodes = {}
 List of PDG particle codes to pick from when generating particles.
 
std::vector< double > momentumParams = {0}
 Parameters for the momentum generation, meaning depends on chosen distribution.
 
std::vector< double > phiParams = {0}
 Parameters for the azimuth angle generation, meaning depends on chosen distribution.
 
std::vector< double > thetaParams = {0}
 Parameters for the polar angle generation, meaning depends on chosen distribution.
 
std::vector< double > xVertexParams = {0}
 Parameters for the x vertex generation, meaning depends on chosen distribution.
 
std::vector< double > yVertexParams = {0}
 Parameters for the y vertex generation, meaning depends on chosen distribution.
 
std::vector< double > zVertexParams = {0}
 Parameters for the z vertex generation, meaning depends on chosen distribution.
 
std::vector< double > timeParams = {0}
 Parameters for the time generation, meaning depends on chosen distribution.
 
bool independentVertices = false
 If false, all particles of one event will have the same vertex, if true the vertex of each particle will be generated independently.
 
bool varyNumberOfTracks = true
 If true, the number of tracks per event will fluctuate according to Poisson distribution.
 
bool fixedMomentumPerEvent = false
 generates particle momentum according to the specified distribution and assigns this momentum to all particles generated for one event
 

Detailed Description

Struct to keep all necessary parameters for the particle gun.

Definition at line 65 of file ParticleGun.h.

Member Data Documentation

◆ fixedMomentumPerEvent

bool fixedMomentumPerEvent = false

generates particle momentum according to the specified distribution and assigns this momentum to all particles generated for one event

Definition at line 109 of file ParticleGun.h.

◆ independentVertices

bool independentVertices = false

If false, all particles of one event will have the same vertex, if true the vertex of each particle will be generated independently.

Definition at line 102 of file ParticleGun.h.

◆ momentumDist

EDistribution momentumDist = c_fixedValue

Distribution to use for momentum generation.

Definition at line 67 of file ParticleGun.h.

◆ momentumParams

std::vector<double> momentumParams = {0}

Parameters for the momentum generation, meaning depends on chosen distribution.

Definition at line 85 of file ParticleGun.h.

◆ nTracks

double nTracks

Number of tracks to generate per event.

Definition at line 81 of file ParticleGun.h.

◆ pdgCodes

std::vector<int> pdgCodes = {}

List of PDG particle codes to pick from when generating particles.

Definition at line 83 of file ParticleGun.h.

◆ phiDist

Distribution to use for azimuth angle generation.

Definition at line 69 of file ParticleGun.h.

◆ phiParams

std::vector<double> phiParams = {0}

Parameters for the azimuth angle generation, meaning depends on chosen distribution.

Definition at line 87 of file ParticleGun.h.

◆ thetaDist

Distribution to use for polar angle generation.

Definition at line 71 of file ParticleGun.h.

◆ thetaParams

std::vector<double> thetaParams = {0}

Parameters for the polar angle generation, meaning depends on chosen distribution.

Definition at line 89 of file ParticleGun.h.

◆ timeDist

Distribution to use for time generation.

Definition at line 79 of file ParticleGun.h.

◆ timeParams

std::vector<double> timeParams = {0}

Parameters for the time generation, meaning depends on chosen distribution.

Definition at line 97 of file ParticleGun.h.

◆ varyNumberOfTracks

bool varyNumberOfTracks = true

If true, the number of tracks per event will fluctuate according to Poisson distribution.

Definition at line 105 of file ParticleGun.h.

◆ xVertexDist

EDistribution xVertexDist = c_fixedValue

Distribution to use for x vertex generation.

Definition at line 73 of file ParticleGun.h.

◆ xVertexParams

std::vector<double> xVertexParams = {0}

Parameters for the x vertex generation, meaning depends on chosen distribution.

Definition at line 91 of file ParticleGun.h.

◆ yVertexDist

EDistribution yVertexDist = c_fixedValue

Distribution to use for y vertex generation.

Definition at line 75 of file ParticleGun.h.

◆ yVertexParams

std::vector<double> yVertexParams = {0}

Parameters for the y vertex generation, meaning depends on chosen distribution.

Definition at line 93 of file ParticleGun.h.

◆ zVertexDist

EDistribution zVertexDist = c_fixedValue

Distribution to use for z vertex generation.

Definition at line 77 of file ParticleGun.h.

◆ zVertexParams

std::vector<double> zVertexParams = {0}

Parameters for the z vertex generation, meaning depends on chosen distribution.

Definition at line 95 of file ParticleGun.h.


The documentation for this struct was generated from the following file: