ATLAS Offline Software
Loading...
Searching...
No Matches
RoiSerialise.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 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
18
19namespace RoiUtil {
20
21 typedef uint32_t roitype_t;
22 typedef std::vector< std::vector<roitype_t> > roiserial_type;
23
25 void serialise( const std::vector<const IRoiDescriptor*>& rois, roiserial_type& s );
26
29
30
32 void deserialise( const roiserial_type& s, std::vector<const IRoiDescriptor*>& rois );
33
36
38 void serialise( const IRoiDescriptor* roi, std::vector<roitype_t>& s );
39
41 IRoiDescriptor* deserialise( const roitype_t*& s_end, const roitype_t* s_last );
42
43}
44
45#endif
Describes the API of the Region of Ineterest geometry.
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
uint32_t roitype_t
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors