Belle II Software development
TRGCDCTSStreamModule.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
9//-----------------------------------------------------------------------------
10// Description : A trigger module for CDC
11//-----------------------------------------------------------------------------
12
13#ifndef TRGCDCTSStreamModule_H
14#define TRGCDCTSStreamModule_H
15
16#include <string>
17#include "framework/core/Module.h"
18#include "trg/cdc/TRGCDC.h"
19
20namespace Belle2 {
28
29 public:
30
33
35 virtual ~TRGCDCTSStreamModule();
36
38 virtual void initialize() override;
39
41 virtual void beginRun() override;
42
44 virtual void event() override;
45
47 virtual void endRun() override;
48
50 virtual void terminate() override;
51
52 public:
53
55 std::string version(void) const;
56
57 private: // Parameters
58
61
63 int _mode;
64
66 std::string _streamFilename;
67
68 private:
69
72
74 std::vector<const TRGCDCWire*> _wires[9];
75
77 std::ofstream* _out;
78 };
79
81} // namespace Belle2
82
83#endif // TRGCDCTSStreamModule_H
Base class for Modules.
Definition: Module.h:72
A module to process CDC trigger data.
std::ofstream * _out
A pointer to an output file.
int _mode
Mode for streaming data.
std::string _streamFilename
The filename of bit stream.
std::vector< const TRGCDCWire * > _wires[9]
Storage for TS central wires.
TRGCDC * _cdc
A pointer to a TRGCDC;.
The instance of TRGCDC is a singleton.
Definition: TRGCDC.h:69
virtual void initialize() override
Initilizes TRGCDCTSStreamModule.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
std::string version(void) const
returns version of TRGCDCTSStreamModule.
virtual ~TRGCDCTSStreamModule()
Destructor.
Abstract base class for different kinds of events.