Belle II Software development
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
18namespace Belle2 {
25 class svdDumpModule : public Module {
26 public:
29 virtual ~svdDumpModule() {};
30
32 virtual void initialize() override;
33 virtual void beginRun() override;
34 virtual void endRun() override;
35 virtual void event() override;
36 virtual void terminate() override;
38 private:
41 unsigned long m_event;
46 std::string m_outputFileName;
47 std::ofstream* m_outputFile = nullptr;
49 std::string m_svdRawName;
51 };
53} // Namaspace Belle2
54
55#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:25
std::string m_svdRawName
raw name
Definition: svdDumpModule.h:49
StoreArray< RawSVD > m_rawSVD
Array for RawSVD.
Definition: svdDumpModule.h:39
virtual void initialize() override
module functions
virtual void event() override
dump RawSVDs
int m_nFtbTrailer
FTB trailer.
Definition: svdDumpModule.h:44
virtual void endRun() override
print end run
virtual void terminate() override
write output file
std::ofstream * m_outputFile
output file.
Definition: svdDumpModule.h:47
virtual void beginRun() override
print begin run
int m_nFtbHeader
FTB header.
Definition: svdDumpModule.h:43
svdDumpModule()
Constructor and Destructor.
unsigned long m_event
event number
Definition: svdDumpModule.h:41
std::string m_outputFileName
Name of output file.
Definition: svdDumpModule.h:46
Abstract base class for different kinds of events.