ATLAS Offline Software
Loading...
Searching...
No Matches
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):
21class 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;
62 StatusCode convert(const L1TopoRDO* result, RawEventWrite* re) 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
const boost::regex re(r_e)
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
Definition RawEvent.h:39
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
virtual StatusCode initialize()
Function to initialise the tool.
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment ROBF
StatusCode convert(const std::string &sgKey, L1TopoRDOCollection *result) const
Convert ROBFragment to L1TopoRDO.
L1TopoByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
virtual StatusCode finalize()
Function to finalise the tool.
std::vector< uint32_t > m_sourceIDs
Source IDs of L1Topo RODs.
const std::vector< uint32_t > & sourceIDs()
return list of L1Topo ROD source IDs to use, defaults to DAQ ROD IDs
L1TopoSrcIdMap * m_srcIdMap
Object to generate and convert between the various IDs of the L1Topo fragment.
virtual ~L1TopoByteStreamTool()
Default destructor.
Container of L1TopoRDOs (standard Athena boilerplate)
The class that represents the raw data received from an L1Topo board.
Definition L1TopoRDO.h:29
This class provides conversion between Lower level Source ID to higher level source ID for L1Topo Byt...
eformat::ROBFragment< PointerType > ROBFragment
Definition RawEvent.h:27