ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigRoiConversion
TrigRoiConversion
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
18
class
TrigRoiDescriptor
;
19
class
TrigRoiDescriptorCollection
;
20
class
IRoiDescriptor
;
21
22
namespace
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
31
void
serialise
(
const
TrigRoiDescriptorCollection
& rois,
roiserial_type
& s );
32
33
35
void
deserialise
(
const
roiserial_type
& s, std::vector<const IRoiDescriptor*>& rois );
36
38
void
deserialise
(
const
roiserial_type
& s,
TrigRoiDescriptorCollection
& rois );
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
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition
IRoiDescriptor.h:23
TrigRoiDescriptorCollection
Definition
TrigRoiDescriptorCollection.h:14
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
Definition
TrigRoiDescriptor.h:48
RoiUtil
Definition
RoiUtil.h:20
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:64
RoiUtil::roiserial_type
std::vector< std::vector< roitype_t > > roiserial_type
Definition
RoiSerialise.h:25
RoiUtil::serialise
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
Definition
RoiSerialise.cxx:47
RoiUtil::roitype_t
std::uint32_t roitype_t
Definition
RoiSerialise.h:24
Generated on
for ATLAS Offline Software by
1.17.0