Belle II Software  release-05-02-19
AafhInputModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter, Torben Ferber *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 
16 #include <mdst/dataobjects/MCParticle.h>
17 
18 #include <generators/aafh/AAFHInterface.h>
19 #include <generators/utilities/InitialParticleGeneration.h>
20 
21 #include <string>
22 
23 namespace Belle2 {
34  class AafhInputModule : public Module {
35 
36  public:
37 
42 
44  virtual void initialize() override;
45 
47  virtual void event() override;
48 
50  virtual void terminate() override;
51 
52  private:
54  int m_mode;
55 
57  int m_rejection;
58 
60  int m_maxTries;
61 
63  double m_maxFinalWeight;
64 
67 
69  double m_minMass;
70 
72  std::string m_particle;
73 
75  std::vector<double> m_subgeneratorWeights;
76 
78  std::vector<double> m_suppressionLimits;
79 
82 
85 
87  void initializeGenerator();
88 
89  bool m_initialized{false};
94  };
96 }
97 
Belle2::AafhInputModule::m_subgeneratorWeights
std::vector< double > m_subgeneratorWeights
relative subgenerator weights
Definition: AafhInputModule.h:83
Belle2::AafhInputModule::m_minMass
double m_minMass
minimum invariant mass of generated fermion pair
Definition: AafhInputModule.h:77
Belle2::AafhInputModule::AafhInputModule
AafhInputModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: AafhInputModule.cc:25
Belle2::AafhInputModule::initialize
virtual void initialize() override
initialize generator
Definition: AafhInputModule.cc:88
Belle2::AafhInputModule::initializeGenerator
void initializeGenerator()
Method is called to initialize the generator.
Definition: AafhInputModule.cc:141
Belle2::AafhInputModule::m_maxTries
int m_maxTries
maximum number of tries for generating an event
Definition: AafhInputModule.h:68
Belle2::AAFHInterface
Class to inferface AAFH/DIAG36 Generator written in Fortran.
Definition: AAFHInterface.h:31
Belle2::InitialParticleGeneration
Generate Collision.
Definition: InitialParticleGeneration.h:35
Belle2::AafhInputModule::terminate
virtual void terminate() override
calculate cross section
Definition: AafhInputModule.cc:136
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::AafhInputModule::m_initial
InitialParticleGeneration m_initial
initial particle used by BeamParameter class
Definition: AafhInputModule.h:101
Belle2::AafhInputModule::m_maxFinalWeight
double m_maxFinalWeight
maximum expected final weight for rejection scheme
Definition: AafhInputModule.h:71
Belle2::AafhInputModule::event
virtual void event() override
generate event
Definition: AafhInputModule.cc:96
Belle2::AafhInputModule::m_particle
std::string m_particle
name of the generated particle for modes c_MuonParticle and c_ElectronParticle
Definition: AafhInputModule.h:80
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::AafhInputModule::m_suppressionLimits
std::vector< double > m_suppressionLimits
suppression limits for the matrix element calculations
Definition: AafhInputModule.h:86
Belle2::AafhInputModule::m_maxSubgeneratorWeight
double m_maxSubgeneratorWeight
maximum expected subgenerator weight for rejection scheme
Definition: AafhInputModule.h:74
Belle2::AafhInputModule::m_mcparticles
StoreArray< MCParticle > m_mcparticles
MCParticle collection.
Definition: AafhInputModule.h:89
Belle2::AafhInputModule::m_generator
AAFHInterface m_generator
interface to the generator
Definition: AafhInputModule.h:92
Belle2::AafhInputModule::m_beamParams
DBObjPtr< BeamParameters > m_beamParams
BeamParameter.
Definition: AafhInputModule.h:98
Belle2::StoreArray< MCParticle >
Belle2::AafhInputModule::m_initialized
bool m_initialized
True if generator has been initialized.
Definition: AafhInputModule.h:97
Belle2::AafhInputModule::m_rejection
int m_rejection
Rejection mode.
Definition: AafhInputModule.h:65
Belle2::AafhInputModule::m_mode
int m_mode
Generator mode.
Definition: AafhInputModule.h:62