8#ifndef TRGTOPUNPACKER_H
9#define TRGTOPUNPACKER_H
14#include "rawdata/dataobjects/RawTRG.h"
16#include "trg/top/dataobjects/TRGTOPCombinedT0Decision.h"
18#include "trg/top/dataobjects/TRGTOPSlotTiming.h"
20#include <framework/datastore/StoreArray.h>
21#include <framework/core/Module.h>
23#define NUMBER_OF_SLOTS 16
42 static constexpr double clkTo1ns = 0.5 / 0.508877;
59 virtual void event()
override;
62 virtual void endRun()
override;
84 bool m_reportedAlreadyRun_1;
85 bool m_reportedAlreadyRun_2;
87 bool m_overrideControlBits;
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
Accessor to arrays stored in the data store.
virtual void readDAQEvent(RawTRG *, int, int)
Read data from TRG DAQ.
bool m_pciedata
PCIe40 data or copper data.
int m_nodeId
Our read-out ID.
virtual void initialize() override
Initialize the Module.
int m_nWords
N words in raw data.
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.
int m_eventNumber
Event number (according to L1/global)
virtual void beginRun() override
Called when entering a new run.
virtual void unpackT0Decisions(int *, int)
Unpacker main function.
static constexpr int revoToNS
time period of revo strobe in "ns" (assuming the clock of "125MHz")
TRGTOPUnpackerModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_trigType
Trigger type.
std::string version() const
returns version of TRGGDLUnpackerModule.
Abstract base class for different kinds of events.