Belle II Software  release-08-01-10
svdDumpModule.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 #ifndef SVD_DUMP_MODULE_H
9 #define SVD_DUMP_MODULE_H
10 
11 #include <framework/core/Module.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <rawdata/dataobjects/RawSVD.h>
14 
15 #include <string>
16 #include <fstream>
17 
18 namespace Belle2 {
28  class svdDumpModule : public Module {
29  public:
31  svdDumpModule();
32  virtual ~svdDumpModule() {};
33 
35  virtual void initialize() override;
36  virtual void beginRun() override;
37  virtual void endRun() override;
38  virtual void event() override;
39  virtual void terminate() override;
41  private:
44  unsigned long m_event;
49  std::string m_outputFileName;
50  std::ofstream* m_outputFile = nullptr;
52  std::string m_svdRawName;
54  };
56 } // Namaspace Belle2
57 
58 #endif /* SVD_DUMP_MODULE_H */
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Class definition of svdClsHistoManager module.
Definition: svdDumpModule.h:28
std::string m_svdRawName
raw name
Definition: svdDumpModule.h:52
StoreArray< RawSVD > m_rawSVD
Array for RawSVD.
Definition: svdDumpModule.h:42
virtual void initialize() override
module functions
virtual void event() override
dump RawSVDs
int m_nFtbTrailer
FTB trailer.
Definition: svdDumpModule.h:47
virtual void endRun() override
print end run
virtual void terminate() override
write output file
std::ofstream * m_outputFile
output file.
Definition: svdDumpModule.h:50
virtual void beginRun() override
print begin run
int m_nFtbHeader
FTB header.
Definition: svdDumpModule.h:46
svdDumpModule()
Constructor and Destructor.
unsigned long m_event
event number
Definition: svdDumpModule.h:44
std::string m_outputFileName
Name of output file.
Definition: svdDumpModule.h:49
Abstract base class for different kinds of events.