Belle II Software  release-08-01-10
LHEInputModule.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 /* Basf2 headers. */
12 #include <framework/core/Module.h>
13 #include <framework/dataobjects/EventMetaData.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <generators/lhe/LHEReader.h>
16 #include <mdst/dataobjects/MCParticleGraph.h>
17 
18 /* C++ headers. */
19 #include <string>
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;
56  int m_nInitial;
57  int m_nVirtual;
60  bool m_useWeights;
62  bool m_makeMaster;
63  int m_runNum;
64  int m_expNum;
65  int m_evtNum;
67  double m_Rmin;
68  double m_Rmax;
71  private:
72 
75  };
76 
78 }
The LHEInput module.
bool m_useWeights
Parameter to switch on/off weight propagation.
int m_skipEventNumber
The number of events which should be skipped at the start of reading.
int m_evtNum
Event number to start from if the reader acts as master.
double m_Rmin
Minimum of distance between displaced vertex to IP.
virtual void initialize() override
Initializes the module.
virtual void event() override
Method is called for each event.
LHEReader m_lhe
An instance of the LHE reader.
std::string m_inputFileName
The Name of the current input LHE file.
int m_nInitial
The number of particles in each event that should be flagges with c_Initial.
int m_expNum
Experiment number.
std::vector< std::string > m_inputFileNames
The list of filenames of input LHEfile.
double m_Rmax
Maximum of distance between dispalced vertex to IP.
StoreObjPtr< EventMetaData > m_eventMetaData
Event meta data.
LHEInputModule()
Constructor.
MCParticleGraph m_pg
The MCParticle graph object.
virtual ~LHEInputModule()
Destructor.
bool m_makeMaster
Parameter to signal if the modul should act as master.
bool m_wrongSignPz
Parameter to signal that direction of LER and HER was switched.
int m_pdg_displaced
PDG code of the displaced particle .
double m_meanDecayLength
Mean lifetime*c of displaced particle, default to be zero.
int m_nVirtual
The number of particles in each event that should be flagged with c_IsVirtual.
uint m_iFile
Index of the current LHE input file.
int m_runNum
Run number.
Class to read LHE files and store the content in a MCParticle graph.
Definition: LHEReader.h:31
Class to build, validate and sort a particle decay chain.
Base class for Modules.
Definition: Module.h:72
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.