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 {
23
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;
37
38 private:
40
41 unsigned long m_event;
42
45
46 std::string m_outputFileName;
47 std::ofstream* m_outputFile = nullptr;
48
49 std::string m_svdRawName;
50
51 };
52
53} // Namaspace Belle2
54
55#endif /* SVD_DUMP_MODULE_H */
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
std::string m_svdRawName
raw name
StoreArray< RawSVD > m_rawSVD
Array for RawSVD.
virtual void initialize() override
module functions
virtual void event() override
dump RawSVDs
int m_nFtbTrailer
FTB trailer.
virtual void endRun() override
print end run
virtual void terminate() override
write output file
std::ofstream * m_outputFile
output file.
virtual void beginRun() override
print begin run
int m_nFtbHeader
FTB header.
svdDumpModule()
Constructor and Destructor.
unsigned long m_event
event number
std::string m_outputFileName
Name of output file.
Abstract base class for different kinds of events.