8#ifndef TRGTOPTRD2TTSCONVERTER_H
9#define TRGTOPTRD2TTSCONVERTER_H
13#include <framework/core/Module.h>
16#include "trg/top/dataobjects/TRGTOPTimeStampsSlot.h"
17#include "top/dataobjects/TOPDigit.h"
18#include "top/dataobjects/TOPRawDigit.h"
20#include <framework/datastore/StoreArray.h>
22#define NUMBER_OF_TOP_SLOTS 16
23#define MIN_NUMBER_OF_TIMESTAMPS 5
43 static constexpr int numberOfWindows[] = {0, 428, 852, 1280, 1708, 2132, 2560, 2988, 3412};
46 static constexpr int timeOfWindows[] = {0, 428 * 3, 852 * 3, 1280 * 3, 1708 * 3, 2132 * 3, 2560 * 3, 2988 * 3, 3412 * 3};
72 virtual void event()
override;
75 virtual void endRun()
override;
95 std::vector<interimTimeStamp> m_interimTimeStamps[NUMBER_OF_TOP_SLOTS];
116 int m_minNumberOfTimeStamps;
Accessor to arrays stored in the data store.
Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHi...
static constexpr int latencyL1
L1 latency in FTSW clock cycles.
StoreArray< TOPRawDigit > m_rawDigits
collection of raw digits
std::string m_outputTimeStampsSlotName
name of TOPTRGTimeStampsSlot store array
bool m_requireMinNumberOfTimeStamps
switch ON/OFF min number of timestamps requirement for individual slots
virtual void initialize() override
Initialize the Module.
std::string m_outputTimeStampName
name of TOPTRGTimeStamp store array
virtual void event() override
This method is the core of the module.
static constexpr int revo9CounterMax
max number of FTSW clocks in revo9 cycle
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.
TRGTOPTRD2TTSConverterModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_inputRawDigitsName
name of TOPRawDigit store array
int m_eventNumber
Event number (according to L1/global)
virtual void beginRun() override
Called when entering a new run.
static constexpr int timeCorrection
time correction in ns (estimated by comparing trigger readout with main readout
StoreArray< TOPDigit > m_convertedDigits
collection of raw digits
bool m_addRelations
switch ON/OFF relations to TOPRawDigits
std::string m_inputConvertedDigitsName
name of TOPRawDigit store array
std::string version() const
returns version of TRGTOPTRD2TTSConverterModule.
Abstract base class for different kinds of events.