EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrackParametersCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_TrackParameters_CollectionData_H
4#define EDM4EIC_TrackParameters_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 TrackParametersObjPointerContainer = std::deque<TrackParametersObj*>;
23using TrackParametersDataContainer = std::vector<TrackParametersData>;
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 TrackParametersCollectionData(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<TrackParametersDataContainer> m_data{nullptr};
82};
83
84
85} // namespace edm4eic
86
87
88#endif
Definition TrackParametersCollectionData.h:30
TrackParametersObjPointerContainer entries
Definition TrackParametersCollectionData.h:35
TrackParametersCollectionData(const TrackParametersCollectionData &)=delete
void prepareForWrite(bool isSubsetColl)
Definition TrackParametersCollectionData.cc:53
TrackParametersCollectionData(TrackParametersCollectionData &&other)=default
void clear(bool isSubsetColl)
Definition TrackParametersCollectionData.cc:29
TrackParametersCollectionData & operator=(const TrackParametersCollectionData &)=delete
void makeSubsetCollection()
Definition TrackParametersCollectionData.cc:106
void prepareAfterRead(uint32_t collectionID)
Definition TrackParametersCollectionData.cc:72
TrackParametersCollectionData & operator=(TrackParametersCollectionData &&other)=default
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrackParametersCollectionData.cc:44
TrackParametersCollectionData()
Definition TrackParametersCollectionData.cc:10
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrackParametersCollectionData.cc:87
Definition CalorimeterHit.cc:18
std::vector< TrackParametersData > TrackParametersDataContainer
Definition TrackParametersCollectionData.h:23
std::deque< TrackParametersObj * > TrackParametersObjPointerContainer
Definition TrackParametersCollectionData.h:22