Belle II Software  release-05-02-19
HepevtInputModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter, Susanne Koblitz *
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 
17 #include <mdst/dataobjects/MCParticleGraph.h>
18 
19 #include <generators/hepevt/HepevtReader.h>
20 #include <generators/utilities/InitialParticleGeneration.h>
21 
22 namespace Belle2 {
32  class HepevtInputModule : public Module {
33 
34  public:
35 
41 
43  virtual ~HepevtInputModule() {}
44 
46  virtual void initialize() override;
47 
49  virtual void event() override;
50 
51  protected:
52 
53  std::vector <std::string> m_inputFileNames;
54  std::string m_inputFileName;
55  uint m_iFile;
56  int m_skipEventNumber;
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  private:
71  };
72 
74 } // end namespace Belle2
75 
Belle2::HepevtInputModule::m_nVirtual
int m_nVirtual
The number of particles in each event that should be made virtual.
Definition: HepevtInputModule.h:65
Belle2::HepevtInputModule::m_inputFileNames
std::vector< std::string > m_inputFileNames
The list of filenames of input HepEvtfile.
Definition: HepevtInputModule.h:61
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition: MCParticleGraph.h:48
Belle2::HepevtInputModule::mpg
MCParticleGraph mpg
The MCParticle graph object.
Definition: HepevtInputModule.h:67
Belle2::HepevtInputModule::m_evtNum
int m_evtNum
The event number is needed if the reader acts as master.
Definition: HepevtInputModule.h:74
Belle2::HepevtInputModule::m_expNum
int m_expNum
The experiment number that should be used if the reader acts as master.
Definition: HepevtInputModule.h:73
Belle2::InitialParticleGeneration
Generate Collision.
Definition: InitialParticleGeneration.h:35
Belle2::HepevtInputModule::m_runNum
int m_runNum
The run number that should be used if the reader acts as master.
Definition: HepevtInputModule.h:72
Belle2::HepevtInputModule::m_makeMaster
bool m_makeMaster
Parameter to signal if the modul should act as master.
Definition: HepevtInputModule.h:71
Belle2::HepevtInputModule::m_boost2Lab
bool m_boost2Lab
Parameter to switch on/off boost to LAB system.
Definition: HepevtInputModule.h:69
Belle2::HepevtInputModule::initialize
virtual void initialize() override
Initializes the module.
Definition: HepevtInputModule.cc:50
Belle2::HepevtReader
Class to read Hepevt files and store the content in a MCParticle graph.
Definition: HepevtReader.h:46
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::HepevtInputModule::HepevtInputModule
HepevtInputModule()
Constructor.
Definition: HepevtInputModule.cc:31
Belle2::HepevtInputModule::m_useWeights
bool m_useWeights
Parameter to switch on/off weight propagation.
Definition: HepevtInputModule.h:68
Belle2::HepevtInputModule::event
virtual void event() override
Method is called for each event.
Definition: HepevtInputModule.cc:99
Belle2::HepevtInputModule::~HepevtInputModule
virtual ~HepevtInputModule()
Destructor.
Definition: HepevtInputModule.h:51
Belle2::HepevtInputModule::m_hepevt
HepevtReader m_hepevt
An instance of the HepEvt reader.
Definition: HepevtInputModule.h:66
Belle2::HepevtInputModule::m_initial
InitialParticleGeneration m_initial
initial particle used by BeamParameter class
Definition: HepevtInputModule.h:77
Belle2::HepevtInputModule::m_wrongSignPz
bool m_wrongSignPz
Parameter to signal that direction of LER and HER was switched.
Definition: HepevtInputModule.h:70
Belle2::HepevtInputModule::m_skipEventNumber
int m_skipEventNumber
The number of events which should be skipped at the start of reading.
Definition: HepevtInputModule.h:64
Belle2::HepevtInputModule::m_inputFileName
std::string m_inputFileName
The Name of the current input HepEvt file.
Definition: HepevtInputModule.h:62
Belle2::HepevtInputModule::m_iFile
uint m_iFile
Index of the current HepEvt input file.
Definition: HepevtInputModule.h:63