9#include <generators/modules/CosmicsModule.h>
10#include <framework/datastore/StoreArray.h>
39 "level of the generator (1 or 2 with slightly different kinematic distributions and mu+/mu- ratio), default is 1",
42 "Radial and longitudinal constraints near the Interaction Point can be required (ipRequirement == 1), default is 0 (no additional IP requirements)",
45 "Constraint on the radial distance from the IP in cm, default is 3.",
m_parameters.ipdr);
47 "Constraint on the longitudinal distance from the IP in cm, default is 3, default is 3.",
m_parameters.ipdz);
49 "Minimal value of the transverse momentum in GeV, default is 0.7",
m_parameters.ptmin);
51 "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!",
71 }
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 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 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.
Abstract base class for different kinds of events.