9#include <generators/modules/CosmicsModule.h>
10#include <framework/datastore/StoreArray.h>
11#include <boost/assign/std/vector.hpp>
15using namespace boost::assign;
41 "level of the generator (1 or 2 with slightly different kinematic distributions and mu+/mu- ratio), default is 1",
44 "Radial and longitudinal constraints near the Interaction Point can be required (ipRequirement == 1), default is 0 (no additional IP requirements)",
47 "Constraint on the radial distance from the IP in cm, default is 3.",
m_parameters.
ipdr);
49 "Constraint on the longitudinal distance from the IP in cm, default is 3, default is 3.",
m_parameters.
ipdz);
51 "Minimal value of the transverse momentum in GeV, default is 0.7",
m_parameters.
ptmin);
53 "Radius of tube around detector at whose surface particles are generated (in cm), default is 125, but this does not include whole Belle 2 detector!",
73 }
catch (runtime_error& e) {
SGCosmic m_cosmics
Instance of the cosmics generator.
CosmicsModule()
Constructor.
MCParticleGraph m_particleGraph
Particle graph to generate MCParticle list.
void initialize() override
Initializes the module.
void event() override
Method is called for each event.
SGCosmic::Parameters m_parameters
Instance of parameters.
void generateList(const std::string &name="", int options=c_setNothing)
Generates the MCParticle list and stores it in the StoreArray with the given name.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_Input
This module is an input module (reads data).
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.
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
Accessor to arrays stored in the data store.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
void clear()
Reset particles and decay information to make the class reusable.
Abstract base class for different kinds of events.
int ipRequirement
Restrict the vertex to IP or not (default)
double ipdr
Vertex restriction in the radial direction.
double cylindricalR
Cylindrical radius of generation.
double ptmin
Minimum value of the transverse momentum.
int level
Generator version: level 1 (default) or 2.
double ipdz
Vertex restriction in z direction.