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