Belle II Software development
|
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. | |
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.
SGCosmic | ( | ) |
Default constructor.
Definition at line 31 of file SGCosmic.cc.
|
inline |
|
private |
Finds maximum value in an array.
Definition at line 65 of file SGCosmic.cc.
|
private |
Generates cosmic events according to tabulated distributions in 5-dimensional space: dr, phi, Pt, dz, tanl.
Definition at line 152 of file SGCosmic.cc.
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.
|
private |
Generates distributions in 5-parameter space for different particle charges.
Definition at line 209 of file SGCosmic.cc.
|
private |
Generates distributions in 5-parameter space for different particle charges.
Definition at line 594 of file SGCosmic.cc.
|
private |
Generates vertex distributions in the radial direction dr by accept-reject method for negatively.
Definition at line 307 of file SGCosmic.cc.
|
private |
Generates vertex distributions in the radial direction dr by accept-reject method for negatively charged particles.
Definition at line 669 of file SGCosmic.cc.
|
private |
Generates vertex distributions in the radial direction dr by accept-reject method for positively charged particles.
Definition at line 273 of file SGCosmic.cc.
|
private |
Generates vertex distributions in the radial direction dr by accept-reject method for positively charged particles.
Definition at line 645 of file SGCosmic.cc.
|
private |
Generates z vertex dz distributions by accept-reject method for negatively charged particles.
Definition at line 491 of file SGCosmic.cc.
|
private |
Generates z vertex dz distributions by accept-reject method for negatively charged particles.
Definition at line 863 of file SGCosmic.cc.
|
private |
Generates z vertex dz distributions by accept-reject method for positively charged particles.
Definition at line 457 of file SGCosmic.cc.
|
private |
Generates z vertex dz distributions by accept-reject method for positively charged particles.
Definition at line 809 of file SGCosmic.cc.
|
private |
Generates azimuthal angle phi distributions by accept-reject method for negatively charged particles.
Definition at line 375 of file SGCosmic.cc.
|
private |
Generates azimuthal angle phi distributions by accept-reject method for negatively charged particles.
Definition at line 717 of file SGCosmic.cc.
|
private |
Generates azimuthal angle phi distributions by accept-reject method for positively charged particles.
Definition at line 341 of file SGCosmic.cc.
|
private |
Generates azimuthal angle phi distributions by accept-reject method for positively charged particles.
Definition at line 693 of file SGCosmic.cc.
|
private |
Generates transverse momentum pt distributions by accept-reject method for negatively charged particles.
Definition at line 433 of file SGCosmic.cc.
|
private |
Generates transverse momentum pt distributions by accept-reject method for negatively charged particles.
Definition at line 775 of file SGCosmic.cc.
|
private |
Generates transverse momentum pt distributions by accept-reject method for positively charged particles.
Definition at line 409 of file SGCosmic.cc.
|
private |
Generates transverse momentum pt distributions by accept-reject method for positively charged particles.
Definition at line 741 of file SGCosmic.cc.
|
private |
Generates tangent of the polar angle tanl distributions by accept-reject method for negatively charged particles.
Definition at line 559 of file SGCosmic.cc.
|
private |
Generates tangent of the polar angle tanl distributions by accept-reject method for negatively charged particles.
Definition at line 931 of file SGCosmic.cc.
|
private |
Generates tangent of the polar angle tanl distributions by accept-reject method for positively charged particles.
Definition at line 525 of file SGCosmic.cc.
|
private |
Generates tangent of the polar angle tanl distributions by accept-reject method for positively charged particles.
Definition at line 897 of file SGCosmic.cc.
|
private |
Generates the muon charge according to the positively/negatively charged muon ratio.
Definition at line 200 of file SGCosmic.cc.
bool setParameters | ( | const Parameters & | parameters | ) |
Sets the parameters for generating the Particles.
Definition at line 44 of file SGCosmic.cc.
|
protected |
All relevant parameters.
Definition at line 83 of file SGCosmic.h.