ATLAS Offline Software
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 
19 namespace RoiUtil {
20 
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
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
RoiUtil::serialise
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
Definition: RoiSerialise.cxx:45
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
RoiUtil::roiserial_type
std::vector< std::vector< roitype_t > > roiserial_type
Definition: RoiSerialise.h:22
RoiUtil::deserialise
void deserialise(const roiserial_type &s, std::vector< const IRoiDescriptor * > &rois)
deserialise uint32_t vector into a full vector of IRoiDescriptors
Definition: RoiSerialise.cxx:62
RoiUtil::roitype_t
uint32_t roitype_t
Definition: RoiSerialise.h:21
RoiUtil
Definition: RoiUtil.h:20
TrigRoiDescriptorCollection
Definition: TrigRoiDescriptorCollection.h:21
TriggerTest.rois
rois
Definition: TriggerTest.py:23
TrigRoiDescriptor.h
TrigRoiDescriptorCollection.h