EDM4eic
EIC data model
Toggle main menu visibility
Loading...
Searching...
No Matches
RingImageCollectionData.h
Go to the documentation of this file.
1
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3
#ifndef EDM4EIC_RingImage_CollectionData_H
4
#define EDM4EIC_RingImage_CollectionData_H
5
6
// datamodel specific includes
7
#include "
edm4eic/RingImageData.h
"
8
#include "
edm4eic/RingImageObj.h
"
9
#include "
edm4eic/RingImage.h
"
10
11
// schema evolution specific includes
12
13
// podio specific includes
14
#include "podio/CollectionBuffers.h"
15
#include "podio/ICollectionProvider.h"
16
17
#include <deque>
18
#include <memory>
19
20
namespace
edm4eic
{
21
22
23
using
RingImageObjPointerContainer
= std::deque<RingImageObj*>;
24
using
RingImageDataContainer
= std::vector<RingImageData>;
25
26
27
/**
28
* Class encapsulating everything related to storage of data that is needed by a
29
* collection.
30
*/
31
class
RingImageCollectionData
{
32
public
:
33
/**
34
* The Objs of this collection
35
*/
36
RingImageObjPointerContainer
entries
{};
37
38
/**
39
* Default constructor setting up the necessary buffers
40
*/
41
RingImageCollectionData
();
42
43
/**
44
* Constructor from existing I/O buffers
45
*/
46
RingImageCollectionData
(podio::CollectionReadBuffers buffers,
bool
isSubsetColl);
47
48
/**
49
* Non copy-able, move-only class
50
*/
51
RingImageCollectionData
(
const
RingImageCollectionData
&) =
delete
;
52
RingImageCollectionData
&
operator=
(
const
RingImageCollectionData
&) =
delete
;
53
RingImageCollectionData
(
RingImageCollectionData
&& other) =
default
;
54
RingImageCollectionData
&
operator=
(
RingImageCollectionData
&& other) =
default
;
55
56
/**
57
* Destructor
58
*/
59
~RingImageCollectionData
() =
default
;
60
61
void
clear
(
bool
isSubsetColl);
62
63
podio::CollectionWriteBuffers
getCollectionBuffers
(
bool
isSubsetColl);
64
65
void
prepareForWrite
(
bool
isSubsetColl);
66
67
void
prepareAfterRead
(uint32_t collectionID);
68
69
void
makeSubsetCollection
();
70
71
72
bool
setReferences
(
const
podio::ICollectionProvider* collectionProvider,
bool
isSubsetColl);
73
74
private
:
75
// members to handle 1-to-N-relations
76
77
// members to handle vector members
78
79
// I/O related buffers
80
podio::CollRefCollection m_refCollections{};
81
podio::VectorMembersInfo m_vecmem_info{};
82
std::unique_ptr<RingImageDataContainer> m_data{
nullptr
};
83
};
84
85
86
}
// namespace edm4eic
87
88
89
#endif
RingImage.h
RingImageData.h
RingImageObj.h
edm4eic::RingImageCollectionData::entries
RingImageObjPointerContainer entries
Definition
RingImageCollectionData.h:36
edm4eic::RingImageCollectionData::prepareForWrite
void prepareForWrite(bool isSubsetColl)
Definition
RingImageCollectionData.cc:71
edm4eic::RingImageCollectionData::RingImageCollectionData
RingImageCollectionData(RingImageCollectionData &&other)=default
edm4eic::RingImageCollectionData::RingImageCollectionData
RingImageCollectionData()
Definition
RingImageCollectionData.cc:12
edm4eic::RingImageCollectionData::RingImageCollectionData
RingImageCollectionData(const RingImageCollectionData &)=delete
edm4eic::RingImageCollectionData::~RingImageCollectionData
~RingImageCollectionData()=default
edm4eic::RingImageCollectionData::operator=
RingImageCollectionData & operator=(RingImageCollectionData &&other)=default
edm4eic::RingImageCollectionData::prepareAfterRead
void prepareAfterRead(uint32_t collectionID)
Definition
RingImageCollectionData.cc:90
edm4eic::RingImageCollectionData::makeSubsetCollection
void makeSubsetCollection()
Definition
RingImageCollectionData.cc:124
edm4eic::RingImageCollectionData::clear
void clear(bool isSubsetColl)
Definition
RingImageCollectionData.cc:45
edm4eic::RingImageCollectionData::operator=
RingImageCollectionData & operator=(const RingImageCollectionData &)=delete
edm4eic::RingImageCollectionData::setReferences
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition
RingImageCollectionData.cc:105
edm4eic::RingImageCollectionData::getCollectionBuffers
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition
RingImageCollectionData.cc:62
edm4eic
Definition
CalorimeterHit.cc:17
edm4eic::RingImageDataContainer
std::vector< RingImageData > RingImageDataContainer
Definition
RingImageCollectionData.h:24
edm4eic::RingImageObjPointerContainer
std::deque< RingImageObj * > RingImageObjPointerContainer
Definition
RingImageCollectionData.h:23
build
edm4eic
RingImageCollectionData.h
Generated by
1.17.0