EDM4eic
EIC data model
Loading...
Searching...
No Matches
VertexCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_Vertex_CollectionData_H
4#define EDM4EIC_Vertex_CollectionData_H
5
6// datamodel specific includes
8#include "edm4eic/VertexObj.h"
9#include "edm4eic/Vertex.h"
11
12// schema evolution specific includes
13
14// podio specific includes
15#include "podio/CollectionBuffers.h"
16#include "podio/ICollectionProvider.h"
17
18#include <deque>
19#include <memory>
20
21namespace edm4eic {
22
23
24using VertexObjPointerContainer = std::deque<VertexObj*>;
25using VertexDataContainer = std::vector<VertexData>;
26
27
28/**
29 * Class encapsulating everything related to storage of data that is needed by a
30 * collection.
31 */
33public:
34 /**
35 * The Objs of this collection
36 */
38
39 /**
40 * Default constructor setting up the necessary buffers
41 */
43
44 /**
45 * Constructor from existing I/O buffers
46 */
47 VertexCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
48
49 /**
50 * Non copy-able, move-only class
51 */
56
57 /**
58 * Destructor
59 */
61
62 void clear(bool isSubsetColl);
63
64 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
65
66 void prepareForWrite(bool isSubsetColl);
67
68 void prepareAfterRead(uint32_t collectionID);
69
71
72 void createRelations(VertexObj* obj);
73
74 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
75
76private:
77 // members to handle 1-to-N-relations
78 podio::UVecPtr<edm4eic::ReconstructedParticle> m_rel_associatedParticles{std::make_unique<std::vector<edm4eic::ReconstructedParticle>>()}; ///< Relation buffer for read / write
79 std::vector<podio::UVecPtr<edm4eic::ReconstructedParticle>> m_rel_associatedParticles_tmp{}; ///< Relation buffer for internal book-keeping
80
81 // members to handle vector members
82
83 // I/O related buffers
84 podio::CollRefCollection m_refCollections{};
85 podio::VectorMembersInfo m_vecmem_info{};
86 std::unique_ptr<VertexDataContainer> m_data{nullptr};
87};
88
89
90} // namespace edm4eic
91
92
93#endif
VertexCollectionData()
Definition VertexCollectionData.cc:13
void prepareAfterRead(uint32_t collectionID)
Definition VertexCollectionData.cc:118
void prepareForWrite(bool isSubsetColl)
Definition VertexCollectionData.cc:87
VertexCollectionData & operator=(const VertexCollectionData &)=delete
void clear(bool isSubsetColl)
Definition VertexCollectionData.cc:48
void makeSubsetCollection()
Definition VertexCollectionData.cc:171
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition VertexCollectionData.cc:138
VertexCollectionData(const VertexCollectionData &)=delete
void createRelations(VertexObj *obj)
Definition VertexCollectionData.cc:133
VertexObjPointerContainer entries
Definition VertexCollectionData.h:37
VertexCollectionData(VertexCollectionData &&other)=default
VertexCollectionData & operator=(VertexCollectionData &&other)=default
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition VertexCollectionData.cc:78
Definition VertexObj.h:20
Definition CalorimeterHit.cc:17
std::vector< VertexData > VertexDataContainer
Definition VertexCollectionData.h:25
std::deque< VertexObj * > VertexObjPointerContainer
Definition VertexCollectionData.h:24