ATLAS Offline Software
L1TopoByteStreamTool.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef L1TOPOBYTESTREAM_L1TOPOBYTESTREAMTOOL_H
8 #define L1TOPOBYTESTREAM_L1TOPOBYTESTREAMTOOL_H
9 
10 // Gaudi/Athena include(s):
12 
15 
16 // Local include(s):
17 #include "L1TopoSrcIdMap.h"
19 
20 // Forward declaration(s):
21 class L1TopoRDO;
23 
37  private:
39 
40  public:
42  L1TopoByteStreamTool(const std::string& type, const std::string& name,
43  const IInterface* parent);
45  virtual ~L1TopoByteStreamTool();
46 
48  static const InterfaceID& interfaceID();
49 
51  virtual StatusCode initialize();
53  virtual StatusCode finalize();
54 
56  const std::vector<uint32_t>& sourceIDs();
58  StatusCode convert(const std::string& sgKey, L1TopoRDOCollection* result) const;
60  StatusCode convert(const ROBF* rob, L1TopoRDO*& result) const;
63 
64  private:
69  std::vector<uint32_t> m_sourceIDs;
70 
71  BooleanProperty m_doDAQROBs;
72  BooleanProperty m_doROIROBs;
73 
74  private:
77 }; // class L1TopoByteStreamTool
78 
79 #endif // L1TOPOBYTESTREAM_L1TOPOBYTESTREAMTOOL_H
L1TopoRDO
The class that represents the raw data received from an L1Topo board.
Definition: L1TopoRDO.h:29
RawEventWrite
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
Definition: RawEvent.h:39
L1TopoByteStreamTool::m_sourceIDs
std::vector< uint32_t > m_sourceIDs
Source IDs of L1Topo RODs.
Definition: L1TopoByteStreamTool.h:69
get_generator_info.result
result
Definition: get_generator_info.py:21
L1TopoByteStreamTool::m_doROIROBs
BooleanProperty m_doROIROBs
Definition: L1TopoByteStreamTool.h:72
L1TopoByteStreamTool::ROBF
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment ROBF
Definition: L1TopoByteStreamTool.h:38
L1TopoSrcIdMap
This class provides conversion between Lower level Source ID to higher level source ID for L1Topo Byt...
Definition: L1TopoSrcIdMap.h:17
L1TopoByteStreamTool::finalize
virtual StatusCode finalize()
Function to finalise the tool.
Definition: L1TopoByteStreamTool.cxx:85
L1TopoByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition: L1TopoByteStreamTool.cxx:28
L1TopoByteStreamTool::~L1TopoByteStreamTool
virtual ~L1TopoByteStreamTool()
Default destructor.
Definition: L1TopoByteStreamTool.cxx:57
L1TopoByteStreamTool
Tool doing the L1TopoRDO <-> ByteStream conversion.
Definition: L1TopoByteStreamTool.h:36
eformat::ROBFragment
Definition: L1CaloBsDecoderUtil.h:12
L1TopoByteStreamTool::m_srcIdMap
L1TopoSrcIdMap * m_srcIdMap
Object to generate and convert between the various IDs of the L1Topo fragment.
Definition: L1TopoByteStreamTool.h:67
RawEvent.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
L1TopoByteStreamTool::convert
StatusCode convert(const std::string &sgKey, L1TopoRDOCollection *result) const
Convert ROBFragment to L1TopoRDO.
Definition: L1TopoByteStreamTool.cxx:175
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
L1TopoByteStreamTool::sourceIDs
const std::vector< uint32_t > & sourceIDs()
return list of L1Topo ROD source IDs to use, defaults to DAQ ROD IDs
Definition: L1TopoByteStreamTool.cxx:100
FullEventAssembler.h
L1TopoByteStreamTool::m_doDAQROBs
BooleanProperty m_doDAQROBs
Definition: L1TopoByteStreamTool.h:71
L1TopoByteStreamTool::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Definition: L1TopoByteStreamTool.h:76
L1TopoRDOCollection
Container of L1TopoRDOs (standard Athena boilerplate)
Definition: L1TopoRDOCollection.h:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
L1TopoByteStreamTool::L1TopoByteStreamTool
L1TopoByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition: L1TopoByteStreamTool.cxx:36
L1TopoByteStreamTool::initialize
virtual StatusCode initialize()
Function to initialise the tool.
Definition: L1TopoByteStreamTool.cxx:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
re
const boost::regex re(r_e)
AthAlgTool
Definition: AthAlgTool.h:26
IROBDataProviderSvc.h
L1TopoSrcIdMap.h
ServiceHandle< IROBDataProviderSvc >