EDM4eic
EIC data model
Loading...
Searching...
No Matches
IrtRadiatorInfoCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_IrtRadiatorInfo_CollectionData_H
4#define EDM4EIC_IrtRadiatorInfo_CollectionData_H
5
6// datamodel specific includes
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
20namespace edm4eic {
21
22
23using IrtRadiatorInfoObjPointerContainer = std::deque<IrtRadiatorInfoObj*>;
24using IrtRadiatorInfoDataContainer = std::vector<IrtRadiatorInfoData>;
25
26
27/**
28 * Class encapsulating everything related to storage of data that is needed by a
29 * collection.
30 */
32public:
33 /**
34 * The Objs of this collection
35 */
37
38 /**
39 * Default constructor setting up the necessary buffers
40 */
42
43 /**
44 * Constructor from existing I/O buffers
45 */
46 IrtRadiatorInfoCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
47
48 /**
49 * Non copy-able, move-only class
50 */
55
56 /**
57 * Destructor
58 */
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
70
71
72 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
73
74private:
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<IrtRadiatorInfoDataContainer> m_data{nullptr};
83};
84
85
86} // namespace edm4eic
87
88
89#endif
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition IrtRadiatorInfoCollectionData.cc:62
IrtRadiatorInfoCollectionData(IrtRadiatorInfoCollectionData &&other)=default
IrtRadiatorInfoCollectionData(const IrtRadiatorInfoCollectionData &)=delete
IrtRadiatorInfoCollectionData()
Definition IrtRadiatorInfoCollectionData.cc:12
IrtRadiatorInfoCollectionData & operator=(IrtRadiatorInfoCollectionData &&other)=default
IrtRadiatorInfoCollectionData & operator=(const IrtRadiatorInfoCollectionData &)=delete
void makeSubsetCollection()
Definition IrtRadiatorInfoCollectionData.cc:124
void clear(bool isSubsetColl)
Definition IrtRadiatorInfoCollectionData.cc:45
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition IrtRadiatorInfoCollectionData.cc:105
void prepareForWrite(bool isSubsetColl)
Definition IrtRadiatorInfoCollectionData.cc:71
void prepareAfterRead(uint32_t collectionID)
Definition IrtRadiatorInfoCollectionData.cc:90
IrtRadiatorInfoObjPointerContainer entries
Definition IrtRadiatorInfoCollectionData.h:36
Definition CalorimeterHit.cc:17
std::deque< IrtRadiatorInfoObj * > IrtRadiatorInfoObjPointerContainer
Definition IrtRadiatorInfoCollectionData.h:23
std::vector< IrtRadiatorInfoData > IrtRadiatorInfoDataContainer
Definition IrtRadiatorInfoCollectionData.h:24