 |
Belle II Software
release-05-02-19
|
13 #include <framework/gearbox/Unit.h>
15 #include <cry/CRYGenerator.h>
16 #include <cry/CRYSetup.h>
17 #include <VecGeom/volumes/UnplacedVolume.h>
24 class MCParticleGraph;
148 std::string
m_date{
"1-1-2019"};
161 std::unique_ptr<vecgeom::VUnplacedVolume>
m_world;
bool m_returnProtons
Whether or not CRY should return protons.
void setBoxLength(double length)
Set the size of the square nxn plane where CRY generates cosmics.
void setReturnNeutrons(bool neutrons)
Set whether or not CRY should return neutrons.
void setKineticEnergyThreshold(double kineticenergythreshold)
Sets the kinetic energy threshold, particles below that value will be ignored.
void setReturnElectrons(bool electrons)
Set whether or not CRY should return electrons.
std::unique_ptr< CRYGenerator > m_cryGenerator
The CRY generator.
void setDate(std::string date)
Sets the date used for generation (the cosmic-ray distribution is adjusted to account for the eleven ...
std::unique_ptr< vecgeom::VUnplacedVolume > m_acceptance
acceptance shape
void setReturnPions(bool pions)
Set whether or not CRY should return pions.
void setReturnGammas(bool gammas)
Set whether or not CRY should return gammas.
void setReturnMuons(bool muons)
Set whether or not CRY should return muons.
bool m_returnElectrons
Whether or not CRY should return electrons.
void setAcceptance(const std::vector< double > &size)
Sets the size of the acceptance volume.
double m_timeOffset
time offset in nanoseconds.
bool m_returnKaons
Whether or not CRY should return kaons.
std::string m_date
date used for generation (month-day-year).
void generateEvent(MCParticleGraph &mcGraph)
Generates one single event.
std::string m_cosmicDataDir
directory that holds cosmic data files.
int m_maxTrials
number of trials per event.
void term()
Terminates the generator.
void setReturnKaons(bool kaons)
Set whether or not CRY should return kaons.
Abstract base class for different kinds of events.
std::vector< double > m_acceptSize
Shape parameters for the acceptance shape.
void init()
Initializes the generator.
std::unique_ptr< vecgeom::VUnplacedVolume > m_world
world box shape
std::unique_ptr< CRYSetup > m_crySetup
The CRY generator setup.
int m_totalTrials
total number of thrown events.
void setReturnProtons(bool protons)
Set whether or not CRY should return protons.
~CRY()=default
Destructor.
static const double m
[meters]
bool m_returnPions
Whether or not CRY should return pions.
double m_kineticEnergyThreshold
kinetic energy threshold.
void setMaxTrials(int maxtrials)
Sets the maximum number of trials.
bool m_returnMuons
Whether or not CRY should return muons.
int m_subboxLength
length of the square n-n plane in Cry in meters
bool m_returnNeutrons
Whether or not CRY should return neutrons.
void setTimeOffset(double timeoffset)
Sets the time offset.
bool m_returnGammas
Whether or not CRY should return gammas.
CRY()=default
Constructor.
void setCosmicDataDir(const std::string &cosmicdatadir)
Sets the directory that holds cosmic data.