Belle II Software  release-05-02-19
LHEInputModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: 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 
15 #include <string>
16 #include <mdst/dataobjects/MCParticleGraph.h>
17 
18 #include <generators/lhe/LHEReader.h>
19 #include <generators/utilities/InitialParticleGeneration.h>
20 
21 namespace Belle2 {
31  class LHEInputModule : public Module {
32 
33  public:
34 
40 
42  virtual ~LHEInputModule() {}
43 
45  virtual void initialize() override;
46 
48  virtual void event() override;
49 
50  protected:
51 
52  std::vector<std::string> m_inputFileNames;
53  std::string m_inputFileName;
54  uint m_iFile;
55  int m_skipEventNumber;
56  int m_nInitial;
57  int m_nVirtual;
60  bool m_useWeights;
61  bool m_boost2Lab;
63  bool m_makeMaster;
64  int m_runNum;
65  int m_expNum;
66  int m_evtNum;
68  double m_Rmin;
69  double m_Rmax;
72  private:
75  };
76 
78 }
Belle2::LHEInputModule::~LHEInputModule
virtual ~LHEInputModule()
Destructor.
Definition: LHEInputModule.h:50
Belle2::LHEInputModule::m_makeMaster
bool m_makeMaster
Parameter to signal if the modul should act as master.
Definition: LHEInputModule.h:71
Belle2::LHEInputModule::m_pdg_displaced
int m_pdg_displaced
PDG code of the displaced particle .
Definition: LHEInputModule.h:78
Belle2::LHEInputModule::m_nVirtual
int m_nVirtual
The number of particles in each event that should be flagged with c_IsVirtual.
Definition: LHEInputModule.h:65
Belle2::LHEInputModule::m_expNum
int m_expNum
The experiment number that should be used if the reader acts as master.
Definition: LHEInputModule.h:73
Belle2::LHEInputModule::m_evtNum
int m_evtNum
The event number is needed if the reader acts as master.
Definition: LHEInputModule.h:74
Belle2::LHEInputModule::mpg
MCParticleGraph mpg
The MCParticle graph object.
Definition: LHEInputModule.h:67
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition: MCParticleGraph.h:48
Belle2::LHEInputModule::m_lhe
LHEReader m_lhe
An instance of the LHE reader.
Definition: LHEInputModule.h:66
Belle2::LHEInputModule::m_Rmax
double m_Rmax
Maximum of distance between dispalced vertex to IP.
Definition: LHEInputModule.h:77
Belle2::LHEInputModule::m_Rmin
double m_Rmin
Minimum of distance between displaced vertex to IP.
Definition: LHEInputModule.h:76
Belle2::LHEInputModule::m_initial
InitialParticleGeneration m_initial
initial particle used by BeamParameter class
Definition: LHEInputModule.h:81
Belle2::LHEReader
Class to read LHE files and store the content in a MCParticle graph.
Definition: LHEReader.h:43
Belle2::InitialParticleGeneration
Generate Collision.
Definition: InitialParticleGeneration.h:35
Belle2::LHEInputModule::LHEInputModule
LHEInputModule()
Constructor.
Definition: LHEInputModule.cc:32
Belle2::LHEInputModule::m_runNum
int m_runNum
The run number that should be used if the reader acts as master.
Definition: LHEInputModule.h:72
Belle2::LHEInputModule::m_inputFileNames
std::vector< std::string > m_inputFileNames
The list of filenames of input LHEfile.
Definition: LHEInputModule.h:60
Belle2::LHEInputModule::m_useWeights
bool m_useWeights
Parameter to switch on/off weight propagation.
Definition: LHEInputModule.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::LHEInputModule::initialize
virtual void initialize() override
Initializes the module.
Definition: LHEInputModule.cc:63
Belle2::LHEInputModule::m_inputFileName
std::string m_inputFileName
The Name of the current input LHE file.
Definition: LHEInputModule.h:61
Belle2::LHEInputModule::m_wrongSignPz
bool m_wrongSignPz
Parameter to signal that direction of LER and HER was switched.
Definition: LHEInputModule.h:70
Belle2::LHEInputModule::m_meanDecayLength
double m_meanDecayLength
Mean lifetime*c of displaced particle, default to be zero.
Definition: LHEInputModule.h:75
Belle2::LHEInputModule::m_nInitial
int m_nInitial
The number of particles in each event that should be flagges with c_Initial.
Definition: LHEInputModule.h:64
Belle2::LHEInputModule::event
virtual void event() override
Method is called for each event.
Definition: LHEInputModule.cc:125
Belle2::LHEInputModule::m_skipEventNumber
int m_skipEventNumber
The number of events which should be skipped at the start of reading.
Definition: LHEInputModule.h:63
Belle2::LHEInputModule::m_iFile
uint m_iFile
Index of the current LHE input file.
Definition: LHEInputModule.h:62
Belle2::LHEInputModule::m_boost2Lab
bool m_boost2Lab
Parameter to switch on/off boost to LAB system.
Definition: LHEInputModule.h:69