Belle II Software  release-08-01-10
HepevtInputModule.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/hepevt/HepevtReader.h>
16 #include <mdst/dataobjects/MCParticleGraph.h>
17 
18 /* C++ headers. */
19 #include <string>
20 
21 namespace Belle2 {
31  class HepevtInputModule : public Module {
32 
33  public:
34 
40 
42  virtual ~HepevtInputModule() {}
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_nVirtual;
59  bool m_useWeights;
61  bool m_makeMaster;
62  int m_runNum;
63  int m_expNum;
64  int m_evtNum;
66  private:
67 
70  };
71 
73 } // end namespace Belle2
74 
The HepevtInput module.
virtual ~HepevtInputModule()
Destructor.
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
The event number is needed if the reader acts as master.
virtual void initialize() override
Initializes the module.
virtual void event() override
Method is called for each event.
std::string m_inputFileName
The Name of the current input HepEvt file.
int m_expNum
The experiment number that should be used if the reader acts as master.
std::vector< std::string > m_inputFileNames
The list of filenames of input HepEvtfile.
StoreObjPtr< EventMetaData > m_eventMetaData
Event meta data.
HepevtReader m_hepevt
An instance of the HepEvt reader.
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.
MCParticleGraph mpg
The MCParticle graph object.
int m_nVirtual
The number of particles in each event that should be made virtual.
uint m_iFile
Index of the current HepEvt input file.
int m_runNum
The run number that should be used if the reader acts as master.
Class to read Hepevt files and store the content in a MCParticle graph.
Definition: HepevtReader.h:33
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.