Belle II Software
release-08-01-10
|
Class to generate tracks in the cosmics generator and store them in a MCParticle graph. More...
#include <SGCosmic.h>
Classes | |
struct | Parameters |
Struct to keep all necessary parameters for the cosmic generator. More... | |
Public Member Functions | |
SGCosmic () | |
Default constructor. | |
~SGCosmic () | |
Default destructor. | |
bool | generateEvent (MCParticleGraph &graph) |
Generates the next event and store the result in the given MCParticle graph. More... | |
bool | setParameters (const Parameters ¶meters) |
Sets the parameters for generating the Particles. | |
Protected Attributes | |
Parameters | m_params |
All relevant parameters. | |
Private Member Functions | |
double | findMax (const double *dim, const int num) |
Finds maximum value in an array. | |
void | genCosmic (const int level, int &charge, double &dr, double &phi, double &Pt, double &dz, double &tanl) |
Generates cosmic events according to tabulated distributions in 5-dimensional space: dr, phi, Pt, dz, tanl. | |
int | muChargeFlag (const double) |
Generates the muon charge according to the positively/negatively charged muon ratio. | |
void | mkdist_v1 (const int charge, double *) |
Generates distributions in 5-parameter space for different particle charges. | |
int | mkDr_pos_v1 (const double dr, const float rndm) |
Generates vertex distributions in the radial direction dr by accept-reject method for positively charged particles. | |
int | mkDr_neg_v1 (const double dr, const float rndm) |
Generates vertex distributions in the radial direction dr by accept-reject method for negatively. | |
int | mkPhi_pos_v1 (const double phi, const float rndm) |
Generates azimuthal angle phi distributions by accept-reject method for positively charged particles. | |
int | mkPhi_neg_v1 (const double phi, const float rndm) |
Generates azimuthal angle phi distributions by accept-reject method for negatively charged particles. | |
int | mkPt_pos_v1 (const double pt, const float rndm) |
Generates transverse momentum pt distributions by accept-reject method for positively charged particles. | |
int | mkPt_neg_v1 (const double pt, const float rndm) |
Generates transverse momentum pt distributions by accept-reject method for negatively charged particles. | |
int | mkDz_pos_v1 (const double dz, const float rndm) |
Generates z vertex dz distributions by accept-reject method for positively charged particles. | |
int | mkDz_neg_v1 (const double dz, const float rndm) |
Generates z vertex dz distributions by accept-reject method for negatively charged particles. | |
int | mkTanl_pos_v1 (const double tanl, const float rndm) |
Generates tangent of the polar angle tanl distributions by accept-reject method for positively charged particles. | |
int | mkTanl_neg_v1 (const double tanl, const float rndm) |
Generates tangent of the polar angle tanl distributions by accept-reject method for negatively charged particles. | |
void | mkdist_v2 (const int charge, double *) |
Generates distributions in 5-parameter space for different particle charges. | |
int | mkDr_pos_v2 (const double dr, const float rndm) |
Generates vertex distributions in the radial direction dr by accept-reject method for positively charged particles. | |
int | mkDr_neg_v2 (const double dr, const float rndm) |
Generates vertex distributions in the radial direction dr by accept-reject method for negatively charged particles. | |
int | mkPhi_pos_v2 (const double phi, const float rndm) |
Generates azimuthal angle phi distributions by accept-reject method for positively charged particles. | |
int | mkPhi_neg_v2 (const double phi, const float rndm) |
Generates azimuthal angle phi distributions by accept-reject method for negatively charged particles. | |
int | mkPt_pos_v2 (const double pt, const float rndm) |
Generates transverse momentum pt distributions by accept-reject method for positively charged particles. | |
int | mkPt_neg_v2 (const double pt, const float rndm) |
Generates transverse momentum pt distributions by accept-reject method for negatively charged particles. | |
int | mkDz_pos_v2 (const double dz, const float rndm) |
Generates z vertex dz distributions by accept-reject method for positively charged particles. | |
int | mkDz_neg_v2 (const double dz, const float rndm) |
Generates z vertex dz distributions by accept-reject method for negatively charged particles. | |
int | mkTanl_pos_v2 (const double tanl, const float rndm) |
Generates tangent of the polar angle tanl distributions by accept-reject method for positively charged particles. | |
int | mkTanl_neg_v2 (const double tanl, const float rndm) |
Generates tangent of the polar angle tanl distributions by accept-reject method for negatively charged particles. | |
Class to generate tracks in the cosmics generator and store them in a MCParticle graph.
The class supports two version (levels) of event generation with IP and pt parameters.
Definition at line 23 of file SGCosmic.h.
bool generateEvent | ( | MCParticleGraph & | graph | ) |
Generates the next event and store the result in the given MCParticle graph.
Definition at line 74 of file SGCosmic.cc.