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