ATLAS Offline Software
Trigger
TrigEvent
TrigRoiConversion
TrigRoiConversion
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
16
#include "
TrigSteeringEvent/TrigRoiDescriptor.h
"
17
#include "
TrigSteeringEvent/TrigRoiDescriptorCollection.h
"
18
19
namespace
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
28
void
serialise
(
const
TrigRoiDescriptorCollection
&
rois
,
roiserial_type
&
s
);
29
30
32
void
deserialise
(
const
roiserial_type
&
s
, std::vector<const IRoiDescriptor*>&
rois
);
33
35
void
deserialise
(
const
roiserial_type
&
s
,
TrigRoiDescriptorCollection
&
rois
);
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
Generated on Sun Dec 22 2024 21:17:12 for ATLAS Offline Software by
1.8.18