C++ Interface for the generator CRY.
More...
#include <CRY.h>
C++ Interface for the generator CRY.
Definition at line 28 of file CRY.h.
◆ CRY()
Constructor.
Sets the default settings.
◆ setAcceptance()
void setAcceptance |
( |
const std::vector< double > & |
size | ) |
|
|
inline |
Sets the size of the acceptance volume.
- Parameters
-
size | either one, two or three values corresponding to the radius of a sphere, radius and half length of a cylinder or width, height and length of a box |
Definition at line 59 of file CRY.h.
std::vector< double > m_acceptSize
Shape parameters for the acceptance shape.
◆ setBoxLength()
void setBoxLength |
( |
double |
length | ) |
|
|
inline |
Set the size of the square nxn plane where CRY generates cosmics.
According to the CRY documentation good values are 1, 3, 10, 30, 100 and 300 meters but anything smaller than 300 m should work.
The value should be given in cm but will be rounded down to full meters
- Parameters
-
length | length of the side in standard units (cm) |
Definition at line 90 of file CRY.h.
◆ setCosmicDataDir()
void setCosmicDataDir |
( |
const std::string & |
cosmicdatadir | ) |
|
|
inline |
Sets the directory that holds cosmic data.
- Parameters
-
cosmicdatadir | directory that holds the data. |
Definition at line 52 of file CRY.h.
◆ setDate()
void setDate |
( |
const std::string & |
date | ) |
|
|
inline |
Sets the date used for generation (the cosmic-ray distribution is adjusted to account for the eleven year, sunspot cycle).
- Parameters
-
date | date used for generation (month-day-year). |
Definition at line 74 of file CRY.h.
◆ setKineticEnergyThreshold()
void setKineticEnergyThreshold |
( |
double |
kineticenergythreshold | ) |
|
|
inline |
Sets the kinetic energy threshold, particles below that value will be ignored.
- Parameters
-
kineticenergythreshold | kinetic energy threshold. |
Definition at line 69 of file CRY.h.
◆ setMaxTrials()
void setMaxTrials |
( |
int |
maxtrials | ) |
|
|
inline |
Sets the maximum number of trials.
- Parameters
-
maxtrials | maximum number of trials. |
Definition at line 79 of file CRY.h.
◆ setReturnElectrons()
void setReturnElectrons |
( |
bool |
electrons | ) |
|
|
inline |
Set whether or not CRY should return electrons.
- Parameters
-
electrons | true if electrons should be returned, else false |
Definition at line 126 of file CRY.h.
◆ setReturnGammas()
void setReturnGammas |
( |
bool |
gammas | ) |
|
|
inline |
Set whether or not CRY should return gammas.
- Parameters
-
gammas | true if gammas should be returned, else false |
Definition at line 96 of file CRY.h.
◆ setReturnKaons()
void setReturnKaons |
( |
bool |
kaons | ) |
|
|
inline |
Set whether or not CRY should return kaons.
- Parameters
-
kaons | true if kaons should be returned, else false |
Definition at line 102 of file CRY.h.
◆ setReturnMuons()
void setReturnMuons |
( |
bool |
muons | ) |
|
|
inline |
Set whether or not CRY should return muons.
- Parameters
-
muons | true if muons should be returned, else false |
Definition at line 132 of file CRY.h.
◆ setReturnNeutrons()
void setReturnNeutrons |
( |
bool |
neutrons | ) |
|
|
inline |
Set whether or not CRY should return neutrons.
- Parameters
-
neutrons | true if neutrons should be returned, else false |
Definition at line 120 of file CRY.h.
◆ setReturnPions()
void setReturnPions |
( |
bool |
pions | ) |
|
|
inline |
Set whether or not CRY should return pions.
- Parameters
-
pions | true if pions should be returned, else false |
Definition at line 108 of file CRY.h.
◆ setReturnProtons()
void setReturnProtons |
( |
bool |
protons | ) |
|
|
inline |
Set whether or not CRY should return protons.
- Parameters
-
protons | true if protons should be returned, else false |
Definition at line 114 of file CRY.h.
◆ setTimeOffset()
void setTimeOffset |
( |
double |
timeoffset | ) |
|
|
inline |
Sets the time offset.
- Parameters
-
timeoffset | time offset for particles starting at the world box. |
Definition at line 64 of file CRY.h.
The documentation for this class was generated from the following files: