ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
ByteStreamCnvSvc
src
ByteStreamToRawEventAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef BYTESTREAMCNVSVC_BYTESTREAMTORAWEVENT_H
5
#define BYTESTREAMCNVSVC_BYTESTREAMTORAWEVENT_H
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
#include "
AthenaKernel/SlotSpecificObj.h
"
9
#include "
ByteStreamCnvSvcBase/IByteStreamCnvSvc.h
"
10
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
11
#include "
CxxUtils/checker_macros.h
"
12
#include <Gaudi/Property.h>
13
28
29
class
ByteStreamToRawEventAlg
:
public
AthReentrantAlgorithm
{
30
public
:
31
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
32
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
35
36
private
:
37
ServiceHandle<IByteStreamCnvSvc>
m_byteStreamCnvSvc
{
this
,
38
"ByteStreamConvertionService"
,
"ByteStreamCnvSvc"
,
""
};
39
40
ServiceHandle<IROBDataProviderSvc>
m_robsSvc
{
this
,
41
"ROBDataProvider"
,
"ROBDataProviderSvc/ROBDataProviderSvc"
};
42
43
Gaudi::Property<std::vector<std::string>>
m_RawContainers
{
this
,
44
"RawContainers"
, {},
"Names of the containers holding the byte stream data"
};
45
46
struct
Cache
{
47
std::mutex
m_mutex
;
48
RawEvent
m_event
;
49
std::vector<uint32_t>
m_data
;
50
};
51
52
mutable
SG::SlotSpecificObj<Cache>
m_eventsCache
ATLAS_THREAD_SAFE
;
// Access to Cache objects must be protected by their internal mutex
53
};
54
55
#endif
// BYTESTREAMCNVSVC_BYTESTREAMTORAWEVENT_H
AthReentrantAlgorithm.h
SlotSpecificObj.h
Maintain a set of objects, one per slot.
IByteStreamCnvSvc.h
IROBDataProviderSvc.h
RawEvent
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Definition
RawEvent.h:37
checker_macros.h
Define macros for attributes used to control the static checker.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ByteStreamToRawEventAlg
Algorithm that converts detector byte streams into a raw event and feeds it to a IROBDataProviderSvc.
Definition
ByteStreamToRawEventAlg.h:29
ByteStreamToRawEventAlg::m_byteStreamCnvSvc
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
Definition
ByteStreamToRawEventAlg.h:37
ByteStreamToRawEventAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
ByteStreamToRawEventAlg.cxx:17
ByteStreamToRawEventAlg::m_RawContainers
Gaudi::Property< std::vector< std::string > > m_RawContainers
Definition
ByteStreamToRawEventAlg.h:43
ByteStreamToRawEventAlg::ATLAS_THREAD_SAFE
SG::SlotSpecificObj< Cache > m_eventsCache ATLAS_THREAD_SAFE
Definition
ByteStreamToRawEventAlg.h:52
ByteStreamToRawEventAlg::initialize
virtual StatusCode initialize() override
Definition
ByteStreamToRawEventAlg.cxx:8
ByteStreamToRawEventAlg::m_robsSvc
ServiceHandle< IROBDataProviderSvc > m_robsSvc
Definition
ByteStreamToRawEventAlg.h:40
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition
AthenaKernel/AthenaKernel/SlotSpecificObj.h:84
ServiceHandle
Definition
ClusterMakerTool.h:36
ByteStreamToRawEventAlg::Cache
Definition
ByteStreamToRawEventAlg.h:46
ByteStreamToRawEventAlg::Cache::m_event
RawEvent m_event
Definition
ByteStreamToRawEventAlg.h:48
ByteStreamToRawEventAlg::Cache::m_mutex
std::mutex m_mutex
Definition
ByteStreamToRawEventAlg.h:47
ByteStreamToRawEventAlg::Cache::m_data
std::vector< uint32_t > m_data
Definition
ByteStreamToRawEventAlg.h:49
Generated on
for ATLAS Offline Software by
1.17.0