12#ifndef JFEXINPUTBYTESTREAMTOOL_H
13#define JFEXINPUTBYTESTREAMTOOL_H
27#include "Gaudi/Property.h"
43 virtual StatusCode
convertFromBS(
const std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vrobf,
const EventContext& eventContext)
const override;
46 virtual StatusCode
convertToBS(std::vector<OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment*>& vrobf,
const EventContext& eventContext)
override;
49 virtual const std::vector<uint32_t>&
robIds()
const override {
56 ToolHandle<GenericMonitoringTool>
m_monTool{
this,
"MonTool",
"",
"Monitoring tool"};
59 Gaudi::Property<bool>
m_doThinning {
this,
"DoThinning" ,
true,
"Remove overlapped towers. Only FPGA Core region is saved"};
62 Gaudi::Property<std::vector<uint32_t>>
m_robIds {
this,
"ROBIDs", {},
"List of ROB IDs required for conversion to/from xAOD RoI"};
65 Gaudi::Property<std::string>
m_FiberMapping {
this,
"jFexTowerMapping",
"L1CaloFEXByteStream/2023-08-01/jFexTowerMap.txt",
"Text file to convert from hardware fiber to eta-phi location"};
71 SG::ReadHandleKey < xAOD::jFexTowerContainer>
m_jTowersReadKey {
this,
"jTowersReadKey" ,
"L1_jFexDataTowers",
"Read jFexEDM Trigger Tower container"};
75 std::array<uint16_t,3>
Dataformat1 (uint32_t )
const;
76 std::array<uint16_t,4>
Dataformat2 (uint32_t )
const;
83 constexpr static unsigned int mapIndex(
unsigned int jfex,
unsigned int fpga,
unsigned int channel,
unsigned int tower);
86 void printError(
const std::string& location,
const std::string& title, MSG::Level
type,
const std::string&
detail)
const;
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid from which a WriteHandle is made.