EDM4eic
EIC data model
Loading...
Searching...
No Matches
Measurement2DCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_Measurement2D_CollectionData_H
4#define EDM4EIC_Measurement2D_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 Measurement2DObjPointerContainer = std::deque<Measurement2DObj*>;
24using Measurement2DDataContainer = std::vector<Measurement2DData>;
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 Measurement2DCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
47
48 /**
49 * Non copy-able, move-only class
50 */
55
56 /**
57 * Deconstructor
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
72
73 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
74
75private:
76 // members to handle 1-to-N-relations
77 podio::UVecPtr<edm4eic::TrackerHit> m_rel_hits; ///< Relation buffer for read / write
78 std::vector<podio::UVecPtr<edm4eic::TrackerHit>> m_rel_hits_tmp{}; ///< Relation buffer for internal book-keeping
79
80 // members to handle vector members
81 podio::UVecPtr<float> m_vec_weights{nullptr}; /// combined vector of all objects in collection
82 std::vector<podio::UVecPtr<float>> m_vecs_weights{}; /// pointers to individual member vectors
83
84 // I/O related buffers
85 podio::CollRefCollection m_refCollections{};
86 podio::VectorMembersInfo m_vecmem_info{};
87 std::unique_ptr<Measurement2DDataContainer> m_data{nullptr};
88};
89
90
91} // namespace edm4eic
92
93
94#endif
Definition Measurement2DCollectionData.h:31
Measurement2DCollectionData & operator=(const Measurement2DCollectionData &)=delete
void makeSubsetCollection()
Definition Measurement2DCollectionData.cc:180
Measurement2DCollectionData(Measurement2DCollectionData &&other)=default
void createRelations(Measurement2DObj *obj)
Definition Measurement2DCollectionData.cc:138
Measurement2DObjPointerContainer entries
Definition Measurement2DCollectionData.h:36
Measurement2DCollectionData & operator=(Measurement2DCollectionData &&other)=default
void prepareAfterRead(uint32_t collectionID)
Definition Measurement2DCollectionData.cc:122
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition Measurement2DCollectionData.cc:68
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition Measurement2DCollectionData.cc:145
void prepareForWrite(bool isSubsetColl)
Definition Measurement2DCollectionData.cc:82
Measurement2DCollectionData()
Definition Measurement2DCollectionData.cc:12
void clear(bool isSubsetColl)
Definition Measurement2DCollectionData.cc:37
Measurement2DCollectionData(const Measurement2DCollectionData &)=delete
Definition Measurement2DObj.h:19
Definition CalorimeterHit.cc:18
std::deque< Measurement2DObj * > Measurement2DObjPointerContainer
Definition Measurement2DCollectionData.h:23
std::vector< Measurement2DData > Measurement2DDataContainer
Definition Measurement2DCollectionData.h:24