Belle II Software  release-05-02-19
HepevtOutputModule.h
1 /**************************************************************************
2  * Belle II detector background library *
3  * Copyright(C) 2011-2012 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Andreas Moll *
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 <fstream>
16 #include <string>
17 
18 namespace Belle2 {
31  class HepevtOutputModule : public Module {
32 
33  public:
34 
40 
42  virtual ~HepevtOutputModule() {}
43 
45  virtual void initialize() override;
46 
48  virtual void event() override;
49 
51  virtual void terminate() override;
52 
53 
54  protected:
55 
56  //Parameter
57  std::string m_filename;
58  bool m_mirrorPz;
60  bool m_fullFormat;
62  //Variables
63  std::ofstream m_fileStream;
65  };
66 
68 } // end namespace Belle2
69 
70 
Belle2::HepevtOutputModule::m_fileStream
std::ofstream m_fileStream
The text file stream.
Definition: HepevtOutputModule.h:71
Belle2::HepevtOutputModule::initialize
virtual void initialize() override
Initializes the module.
Definition: HepevtOutputModule.cc:45
Belle2::HepevtOutputModule::m_filename
std::string m_filename
The output filename.
Definition: HepevtOutputModule.h:65
Belle2::HepevtOutputModule::terminate
virtual void terminate() override
Terminates the module.
Definition: HepevtOutputModule.cc:97
Belle2::HepevtOutputModule::m_fullFormat
bool m_fullFormat
Flag which specifies if the full HepEvt format should be written (true), or a compact format (false).
Definition: HepevtOutputModule.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::HepevtOutputModule::m_mirrorPz
bool m_mirrorPz
If the directions of HER and LER are switched, mirror Pz.
Definition: HepevtOutputModule.h:66
Belle2::HepevtOutputModule::~HepevtOutputModule
virtual ~HepevtOutputModule()
Destructor.
Definition: HepevtOutputModule.h:50
Belle2::HepevtOutputModule::m_storeVirtualParticles
bool m_storeVirtualParticles
Flag which specifies if virtual particles are stored in the HEPEvt file.
Definition: HepevtOutputModule.h:67
Belle2::HepevtOutputModule::HepevtOutputModule
HepevtOutputModule()
Constructor.
Definition: HepevtOutputModule.cc:32
Belle2::HepevtOutputModule::event
virtual void event() override
Method is called for each event.
Definition: HepevtOutputModule.cc:51