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#ifndef TRGTOPUNPACKERWAVEFORM_H
9#define TRGTOPUNPACKERWAVEFORM_H
10
11#include <string>
12
13//#pragma once
14
15#include "rawdata/dataobjects/RawTRG.h"
16#include "trg/top/dataobjects/TRGTOPWaveFormTimeStampsSlot.h"
17
18#include <framework/datastore/StoreArray.h>
19#include <framework/core/Module.h>
20
21
22#define NUMBER_OF_TOP_SLOTS 16
23
24namespace Belle2 {
38
39 public:
40
45
47 virtual ~TRGTOPUnpackerWaveformModule() override;
48
50 virtual void initialize() override;
51
53 virtual void beginRun() override;
54
56 virtual void event() override;
57
59 virtual void endRun() override;
60
62 virtual void terminate() override;
63
65 std::string version() const;
66
68 virtual void readDAQEvent(RawTRG*, int, int);
69
71 virtual void unpackWaveforms(int*, int);
72
73 protected:
74
75 int m_eventNumber;
82 bool m_reportedAlreadyRun_2;
83
84 bool m_overrideControlBits;
85
86 private:
87
91 StoreArray<TRGTOPWaveFormTimeStampsSlot> m_TRGTOPWaveFormTimeStampsSlots;
92 StoreArray<TRGTOPWaveFormTimeStamp> m_TRGTOPWaveFormTimeStamps;
93
94 };
96}
97
98#endif
Base class for Modules.
Definition: Module.h:72
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.
bool m_reportedAlreadyRun_1
PCIe40 data or copper data.
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
virtual void beginRun() override
Called when entering a new run.
int m_trigType
Event number (according to L1/global)
virtual void unpackWaveforms(int *, int)
Unpacker main function.
std::string version() const
returns version of TRGTOPUnpackerWaveformModule.
Abstract base class for different kinds of events.