ATLAS Offline Software
Loading...
Searching...
No Matches
RoiSerialise.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4//
5// @file RoiSerialise.h
6//
7// utilities to serialise and deserialise to and from
8// std::vector<IRoiDescriptor*> TrigRoiDescriptorCollection etc
9//
10#ifndef TRIGROICONVERSION_SERIALISE_H
11#define TRIGROICONVERSION_SERIALISE_H
12
13
14#include <vector>
15#include <cstdint>
16
17
20class IRoiDescriptor;
21
22namespace RoiUtil {
23
24 typedef std::uint32_t roitype_t;
25 typedef std::vector< std::vector<roitype_t> > roiserial_type;
26
28 void serialise( const std::vector<const IRoiDescriptor*>& rois, roiserial_type& s );
29
32
33
35 void deserialise( const roiserial_type& s, std::vector<const IRoiDescriptor*>& rois );
36
39
41 void serialise( const IRoiDescriptor* roi, std::vector<roitype_t>& s );
42
44 IRoiDescriptor* deserialise( const roitype_t*& s_end, const roitype_t* s_last );
45
46}
47
48#endif
Describes the API of the Region of Ineterest geometry.
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
void deserialise(const roiserial_type &s, std::vector< const IRoiDescriptor * > &rois)
deserialise uint32_t vector into a full vector of IRoiDescriptors
std::vector< std::vector< roitype_t > > roiserial_type
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
std::uint32_t roitype_t