ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthRemoteExec
AthRemoteExecCodecs
AthRemoteExecCodecs
RawEventCache.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 ATHREMOTEEXECCODECS_RAWEVENTCACHE_H
5
#define ATHREMOTEEXECCODECS_RAWEVENTCACHE_H
6
7
#include <
AthenaKernel/CLASS_DEF.h
>
8
#include <
ByteStreamData/RawEvent.h
>
9
10
#include <cstdint>
11
#include <utility>
12
#include <vector>
13
14
namespace
AthRemoteExec
{
15
18
class
RawEventCache
{
19
public
:
21
explicit
RawEventCache
(std::vector<uint32_t>&&
words
) :
m_words
(
std
::move(
words
)),
m_event
(
m_words
.data()) {}
22
23
RawEventCache
(
const
RawEventCache
&) =
delete
;
24
RawEventCache
&
operator=
(
const
RawEventCache
&) =
delete
;
25
RawEventCache
(
RawEventCache
&&) =
delete
;
26
RawEventCache
&
operator=
(
RawEventCache
&&) =
delete
;
27
28
const
RawEvent
*
event
()
const
{
return
&
m_event
; }
29
30
const
std::vector<uint32_t>&
words
()
const
{
return
m_words
; }
31
32
private
:
33
std::vector<uint32_t>
m_words
;
34
RawEvent
m_event
;
35
};
36
37
}
// namespace AthRemoteExec
38
39
CLASS_DEF
(
AthRemoteExec::RawEventCache
, 108881988, 1)
40
41
#endif
// ATHREMOTEEXECCODECS_RAWEVENTCACHE_H
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
RawEvent.h
RawEvent
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Definition
RawEvent.h:37
AthRemoteExec::RawEventCache
Class that allows for safe holding of RawEvent data and pointer throughout whole remote execution.
Definition
RawEventCache.h:18
AthRemoteExec::RawEventCache::words
const std::vector< uint32_t > & words() const
Definition
RawEventCache.h:30
AthRemoteExec::RawEventCache::m_words
std::vector< uint32_t > m_words
Definition
RawEventCache.h:33
AthRemoteExec::RawEventCache::RawEventCache
RawEventCache(std::vector< uint32_t > &&words)
Definition
RawEventCache.h:21
AthRemoteExec::RawEventCache::operator=
RawEventCache & operator=(RawEventCache &&)=delete
AthRemoteExec::RawEventCache::operator=
RawEventCache & operator=(const RawEventCache &)=delete
AthRemoteExec::RawEventCache::RawEventCache
RawEventCache(RawEventCache &&)=delete
AthRemoteExec::RawEventCache::event
const RawEvent * event() const
Definition
RawEventCache.h:28
AthRemoteExec::RawEventCache::m_event
RawEvent m_event
Definition
RawEventCache.h:34
AthRemoteExec::RawEventCache::RawEventCache
RawEventCache(const RawEventCache &)=delete
AthRemoteExec
Definition
CountWordsAlg.cxx:11
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0