Belle II Software development
CRYInputModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/core/Module.h>
12
13#include <generators/cry/CRY.h>
14
15#include <mdst/dataobjects/MCParticleGraph.h>
16
17namespace Belle2 {
27 class CRYInputModule : public Module {
28
29 public:
30
36
38 virtual ~CRYInputModule() = default;
39
41 virtual void initialize() override;
42
44 virtual void event() override;
45
47 virtual void terminate() override;
48
49 protected:
50 std::string m_cosmicdatadir;
51 std::vector<double> m_acceptance;
53 double m_timeOffset{0};
54 int m_maxTrials{10000};
55 double m_boxLength{10000};
56 std::string m_date{"1-1-2019"};
57 bool m_returnGammas{true};
58 bool m_returnKaons{true};
59 bool m_returnPions{true};
60 bool m_returnProtons{true};
61 bool m_returnNeutrons{true};
62 bool m_returnElectrons{true};
63 bool m_returnMuons{true};
67 };
68
69
71} // end namespace Belle2
The CRY Generator module.
bool m_returnElectrons
Whether or not CRY should return electrons.
std::string m_cosmicdatadir
cosmic data (used by CRY for interpolation).
virtual void initialize() override
Initializes the module.
virtual void event() override
Method is called for each event.
double m_boxLength
length of the sides of the square plane in which to generate cosmics
bool m_returnKaons
Whether or not CRY should return kaons.
virtual void terminate() override
Method is called at the end of the event processing.
bool m_returnMuons
Whether or not CRY should return muons.
bool m_returnGammas
Whether or not CRY should return gammas.
CRY m_generator
The CRY generator.
std::string m_date
date used for generation.
std::vector< double > m_acceptance
Shape parameters for the acceptance box.
virtual ~CRYInputModule()=default
Destructor.
MCParticleGraph m_mcGraph
The MCParticle graph object.
double m_kineticEnergyThreshold
kinetic energy threshold.
double m_timeOffset
time offset.
CRYInputModule()
Constructor.
bool m_returnProtons
Whether or not CRY should return protons.
bool m_returnNeutrons
Whether or not CRY should return neutrons.
bool m_returnPions
Whether or not CRY should return pions.
int m_maxTrials
maximum number of trials.
C++ Interface for the generator CRY.
Definition: CRY.h:28
Class to build, validate and sort a particle decay chain.
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.