EDM4eic
EIC data model
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
9
10// schema evolution specific includes
11
12// podio specific includes
13#include "podio/CollectionBuffers.h"
14#include "podio/ICollectionProvider.h"
15
16#include <deque>
17#include <memory>
18
19namespace edm4eic {
20
21
22using RingImageObjPointerContainer = std::deque<RingImageObj*>;
23using RingImageDataContainer = std::vector<RingImageData>;
24
25
26/**
27 * Class encapsulating everything related to storage of data that is needed by a
28 * collection.
29 */
31public:
32 /**
33 * The Objs of this collection
34 */
36
37 /**
38 * Default constructor setting up the necessary buffers
39 */
41
42 /**
43 * Constructor from existing I/O buffers
44 */
45 RingImageCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
46
47 /**
48 * Non copy-able, move-only class
49 */
54
55 /**
56 * Deconstructor
57 */
59
60 void clear(bool isSubsetColl);
61
62 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
63
64 void prepareForWrite(bool isSubsetColl);
65
66 void prepareAfterRead(uint32_t collectionID);
67
69
70
71 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
72
73private:
74 // members to handle 1-to-N-relations
75
76 // members to handle vector members
77
78 // I/O related buffers
79 podio::CollRefCollection m_refCollections{};
80 podio::VectorMembersInfo m_vecmem_info{};
81 std::unique_ptr<RingImageDataContainer> m_data{nullptr};
82};
83
84
85} // namespace edm4eic
86
87
88#endif
Definition RingImageCollectionData.h:30
RingImageObjPointerContainer entries
Definition RingImageCollectionData.h:35
void prepareForWrite(bool isSubsetColl)
Definition RingImageCollectionData.cc:53
RingImageCollectionData(RingImageCollectionData &&other)=default
RingImageCollectionData()
Definition RingImageCollectionData.cc:10
RingImageCollectionData(const RingImageCollectionData &)=delete
RingImageCollectionData & operator=(RingImageCollectionData &&other)=default
void prepareAfterRead(uint32_t collectionID)
Definition RingImageCollectionData.cc:72
void makeSubsetCollection()
Definition RingImageCollectionData.cc:106
void clear(bool isSubsetColl)
Definition RingImageCollectionData.cc:29
RingImageCollectionData & operator=(const RingImageCollectionData &)=delete
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition RingImageCollectionData.cc:87
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition RingImageCollectionData.cc:44
Definition CalorimeterHit.cc:18
std::vector< RingImageData > RingImageDataContainer
Definition RingImageCollectionData.h:23
std::deque< RingImageObj * > RingImageObjPointerContainer
Definition RingImageCollectionData.h:22