C++ Interface for the generator CRY.
More...
#include <CRY.h>
|
| CRY ()=default |
| Constructor.
|
|
| ~CRY ()=default |
| Destructor.
|
|
void | init () |
| Initializes the generator.
|
|
void | generateEvent (MCParticleGraph &mcGraph) |
| Generates one single event.
|
|
void | setCosmicDataDir (const std::string &cosmicdatadir) |
| Sets the directory that holds cosmic data.
|
|
void | setAcceptance (const std::vector< double > &size) |
| Sets the size of the acceptance volume.
|
|
void | setTimeOffset (double timeoffset) |
| Sets the time offset.
|
|
void | setKineticEnergyThreshold (double kineticenergythreshold) |
| Sets the kinetic energy threshold, particles below that value will be ignored.
|
|
void | setDate (const std::string &date) |
| Sets the date used for generation (the cosmic-ray distribution is adjusted to account for the eleven year, sunspot cycle).
|
|
void | setMaxTrials (int maxtrials) |
| Sets the maximum number of trials.
|
|
void | setBoxLength (double length) |
| Set the size of the square nxn plane where CRY generates cosmics.
|
|
void | setReturnGammas (bool gammas) |
| Set whether or not CRY should return gammas.
|
|
void | setReturnKaons (bool kaons) |
| Set whether or not CRY should return kaons.
|
|
void | setReturnPions (bool pions) |
| Set whether or not CRY should return pions.
|
|
void | setReturnProtons (bool protons) |
| Set whether or not CRY should return protons.
|
|
void | setReturnNeutrons (bool neutrons) |
| Set whether or not CRY should return neutrons.
|
|
void | setReturnElectrons (bool electrons) |
| Set whether or not CRY should return electrons.
|
|
void | setReturnMuons (bool muons) |
| Set whether or not CRY should return muons.
|
|
void | term () |
| Terminates the generator.
|
|
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.
int m_subboxLength
length of the square n-n plane in Cry in meters
static const double m
[meters]
◆ 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.
std::string m_cosmicDataDir
directory that holds cosmic data files.
◆ 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.
std::string m_date
date used for generation (month-day-year).
◆ 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.
double m_kineticEnergyThreshold
kinetic energy threshold.
◆ 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.
int m_maxTrials
number of trials per event.
◆ 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.
bool m_returnElectrons
Whether or not CRY should return electrons.
◆ 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.
bool m_returnGammas
Whether or not CRY should return gammas.
◆ 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.
bool m_returnKaons
Whether or not CRY should return kaons.
◆ 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.
bool m_returnMuons
Whether or not CRY should return muons.
◆ 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.
bool m_returnNeutrons
Whether or not CRY should return neutrons.
◆ 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.
bool m_returnPions
Whether or not CRY should return pions.
◆ 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.
bool m_returnProtons
Whether or not CRY should return protons.
◆ 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.
double m_timeOffset
time offset in nanoseconds.
◆ m_acceptance
std::unique_ptr<vecgeom::VUnplacedVolume> m_acceptance |
|
protected |
acceptance shape
Definition at line 160 of file CRY.h.
◆ m_acceptSize
std::vector<double> m_acceptSize |
|
protected |
Shape parameters for the acceptance shape.
Definition at line 143 of file CRY.h.
◆ m_cosmicDataDir
std::string m_cosmicDataDir |
|
protected |
directory that holds cosmic data files.
Definition at line 141 of file CRY.h.
◆ m_cryGenerator
std::unique_ptr<CRYGenerator> m_cryGenerator |
|
protected |
The CRY generator.
Definition at line 158 of file CRY.h.
◆ m_crySetup
std::unique_ptr<CRYSetup> m_crySetup |
|
protected |
The CRY generator setup.
Definition at line 157 of file CRY.h.
◆ m_date
std::string m_date {"1-1-2019"} |
|
protected |
date used for generation (month-day-year).
Definition at line 146 of file CRY.h.
◆ m_kineticEnergyThreshold
double m_kineticEnergyThreshold {0} |
|
protected |
kinetic energy threshold.
Definition at line 145 of file CRY.h.
◆ m_maxTrials
number of trials per event.
Definition at line 147 of file CRY.h.
◆ m_returnElectrons
bool m_returnElectrons {true} |
|
protected |
Whether or not CRY should return electrons.
Definition at line 154 of file CRY.h.
◆ m_returnGammas
bool m_returnGammas {true} |
|
protected |
Whether or not CRY should return gammas.
Definition at line 149 of file CRY.h.
◆ m_returnKaons
bool m_returnKaons {true} |
|
protected |
Whether or not CRY should return kaons.
Definition at line 150 of file CRY.h.
◆ m_returnMuons
bool m_returnMuons {true} |
|
protected |
Whether or not CRY should return muons.
Definition at line 155 of file CRY.h.
◆ m_returnNeutrons
bool m_returnNeutrons {true} |
|
protected |
Whether or not CRY should return neutrons.
Definition at line 153 of file CRY.h.
◆ m_returnPions
bool m_returnPions {true} |
|
protected |
Whether or not CRY should return pions.
Definition at line 151 of file CRY.h.
◆ m_returnProtons
bool m_returnProtons {true} |
|
protected |
Whether or not CRY should return protons.
Definition at line 152 of file CRY.h.
◆ m_subboxLength
length of the square n-n plane in Cry in meters
Definition at line 142 of file CRY.h.
◆ m_timeOffset
time offset in nanoseconds.
Definition at line 144 of file CRY.h.
◆ m_totalTrials
total number of thrown events.
Definition at line 148 of file CRY.h.
◆ m_world
std::unique_ptr<vecgeom::VUnplacedVolume> m_world |
|
protected |
world box shape
Definition at line 159 of file CRY.h.
The documentation for this class was generated from the following files: