Belle II Software development
ParticleGunTest Class Reference

The fixture for testing the Particlegun. More...

Inheritance diagram for ParticleGunTest:

Protected Member Functions

virtual void SetUp ()
 Set up parameters which work for all distributions.
 
void checkVariable (const std::string &name, const std::map< int, bool > &allowed, ParticleGun::EDistribution &dist, std::vector< double > &pars)
 check one of the variables given a list of allowed and excluded distributions
 

Protected Attributes

ParticleGun pgun
 Variable of pgun.
 
ParticleGun::Parameters parameters
 Variable parameters.
 

Detailed Description

The fixture for testing the Particlegun.

Definition at line 19 of file particlegun.cc.

Member Function Documentation

◆ SetUp()

virtual void SetUp ( )
inlineprotectedvirtual

Set up parameters which work for all distributions.

Definition at line 22 of file particlegun.cc.

23 {
28 parameters.thetaParams = {1, 1};
29 parameters.phiParams = {1, 1};
30 }
ParticleGun::Parameters parameters
Variable parameters.
Definition: particlegun.cc:34
std::vector< double > thetaParams
Parameters for the polar angle generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:89
std::vector< double > momentumParams
Parameters for the momentum generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:85
std::vector< double > xVertexParams
Parameters for the x vertex generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:91
std::vector< double > zVertexParams
Parameters for the z vertex generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:95
std::vector< double > phiParams
Parameters for the azimuth angle generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:87
std::vector< double > yVertexParams
Parameters for the y vertex generation, meaning depends on chosen distribution.
Definition: ParticleGun.h:93

Member Data Documentation

◆ parameters

ParticleGun::Parameters parameters
protected

Variable parameters.

Definition at line 34 of file particlegun.cc.

◆ pgun

ParticleGun pgun
protected

Variable of pgun.

Definition at line 32 of file particlegun.cc.


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