 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/dataobjects/MCInitialParticles.h>
16 #include <mdst/dataobjects/MCParticle.h>
33 class GeneratorPreselectionModule :
public Module {
45 void event()
override;
56 StoreObjPtr<MCInitialParticles>
m_initial;
int m_nChargedMin
minimum number of charged particles.
double m_MinChargedPt
minimum pT for each charged particle.
GeneratorPreselectionModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_particleList
The name of the MCParticle collection.
StoreArray< MCParticle > m_mcparticles
store array for the MCParticles
int m_nPhotonMax
minimum number of photons.
int m_nPhotonMin
minimum number of photons.
double m_MinPhotonEnergy
selection criteria for photons
void terminate() override
Print the results of the cuts.
double m_MaxChargedTheta
maximum theta for each charged particle.
bool m_stableParticles
if true apply the selection criteria for only stable particles in the generator
void event() override
Event processor.
double m_MinChargedTheta
minimum theta for each charged particle.
double m_MaxPhotonTheta
maximum theta for each photon.
Abstract base class for different kinds of events.
void checkParticle(const MCParticle &mc)
called for each particle, checks for cuts.
double m_MinChargedP
selection criteria for charged
double m_nPhoton
number of photons
bool m_applyInCMS
if true apply the selection criteria for charged in the center of mass system
double m_MinPhotonTheta
minimum theta for each photon.
int m_nChargedMax
minimum number of charged particles.
StoreObjPtr< MCInitialParticles > m_initial
pointer to the actual beam parameters
void initialize() override
Initialize the parameters.
std::map< double, unsigned int > m_resultCounter
final result