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,
48 const EventContext& eventContext)
override;
51 virtual const std::vector<uint32_t>&
robIds()
const override {
58 ToolHandle<GenericMonitoringTool>
m_monTool{
this,
"MonTool",
"",
"Monitoring tool"};
61 Gaudi::Property<bool>
m_doThinning {
this,
"DoThinning" ,
true,
"Remove overlapped towers. Only FPGA Core region is saved"};
64 Gaudi::Property<std::vector<uint32_t>>
m_robIds {
this,
"ROBIDs", {},
"List of ROB IDs required for conversion to/from xAOD RoI"};
67 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"};
73 SG::ReadHandleKey < xAOD::jFexTowerContainer>
m_jTowersReadKey {
this,
"jTowersReadKey" ,
"L1_jFexDataTowers",
"Read jFexEDM Trigger Tower container"};
77 std::array<uint16_t,3>
Dataformat1 (uint32_t )
const;
78 std::array<uint16_t,4>
Dataformat2 (uint32_t )
const;
85 constexpr static unsigned int mapIndex(
unsigned int jfex,
unsigned int fpga,
unsigned int channel,
unsigned int tower);
88 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.
TrigCompositeContainer_v1 TrigCompositeContainer
Declare the latest version of the container.