9#include <generators/modules/cryinput/CRYInputModule.h>
11#include <framework/datastore/StoreArray.h>
12#include <framework/gearbox/Unit.h>
13#include <framework/utilities/FileSystem.h>
37The showers will be generated in the xz plane in a square plane of n bt n meters
38centered at the IP (n can be chosen with the boxLength parameter). Then the
39cosmics will be propagated from there to the boundary of the detector world volume.
41Finally, if the track would intersect with the acceptance volume the track is
42kept. The acceptance volume can be either a sphere, a cylinder or a box centered
43at the IP. This depends on how many values are given to the acceptance parameter.
46data for CRY. Empty string will look in the default location)DOC", std::string(""));
501. one value being the radius of a sphere
512. two values for the radius (in xy) and the half-length (in z) of a cylinder
523. three values for x,y,z half-length of a box
54All volumes are centered around the IP. All values are in cm)DOC", m_acceptance);
60the xz plane in which CRY will generate cosmics in cm. Will be rounded down to
61meters. According to the CRY documentation good values are 1, 3, 10, 30, 100 and
62300m but anything in between should work as well. The default is 100m and should
63be fine for almost all use cases.)DOC", m_boxLength);
64 addParam("date",
m_date, R
"DOC(Date used for the generation: a string in the form of
65'month-date-year'. The cosmic-ray distribution is adjusted to account for the eleven
66year, sunspot cycle (the default solar minimum date is January 1, 2008).)DOC", m_date);
90 B2FATAL(
"Box length should be between 100 and 30000 cm (1 to 300 m)");
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
void setDescription(const std::string &description)
Sets the description of the module.
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.