Belle II Software development
trgtopUnpackerWaveformModule.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#pragma once
10
11#include <framework/datastore/StoreArray.h>
12#include <framework/core/Module.h>
13
14#include <string>
15
16
17#define NUMBER_OF_TOP_SLOTS 16
18
19namespace Belle2 {
26 class RawTRG;
27
35
37
38 public:
39
44
46 virtual ~TRGTOPUnpackerWaveformModule() override;
47
49 virtual void initialize() override;
50
52 virtual void beginRun() override;
53
55 virtual void event() override;
56
58 virtual void endRun() override;
59
61 virtual void terminate() override;
62
64 std::string version() const;
65
67 virtual void readDAQEvent(RawTRG*, int, int);
68
70 virtual void unpackWaveforms(int*, int);
71
72 protected:
73
79
80 bool m_reportedAlreadyRun_1;
81 bool m_reportedAlreadyRun_2;
82
83 bool m_overrideControlBits;
84
85 private:
86
89
90 StoreArray<TRGTOPWaveFormTimeStampsSlot> m_TRGTOPWaveFormTimeStampsSlots;
91 StoreArray<TRGTOPWaveFormTimeStamp> m_TRGTOPWaveFormTimeStamps;
92
93 };
94
95}
Module()
Constructor.
Definition Module.cc:30
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
Definition RawTRG.h:27
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
virtual void readDAQEvent(RawTRG *, int, int)
Read data from TRG DAQ.
std::string m_outputWaveFormTimeStampsSlotsName
name of TOPTRGTimeStampsSlot store array
virtual void initialize() override
Initialize the Module.
TRGTOPUnpackerWaveformModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
std::string m_outputWaveFormTimeStampsName
name of TOPTRGTimeStamp store array
int m_eventNumber
Event number (according to L1/global)
virtual void beginRun() override
Called when entering a new run.
virtual void unpackWaveforms(int *, int)
Unpacker main function.
std::string version() const
returns version of TRGTOPUnpackerWaveformModule.
Abstract base class for different kinds of events.