EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrackSeedCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_TrackSeed_CollectionData_H
4#define EDM4EIC_TrackSeed_CollectionData_H
5
6// datamodel specific includes
9#include "edm4eic/TrackSeed.h"
11#include "edm4eic/TrackerHit.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 TrackSeedObjPointerContainer = std::deque<TrackSeedObj*>;
26using TrackSeedDataContainer = std::vector<TrackSeedData>;
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 TrackSeedCollectionData(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::TrackerHit> m_rel_hits{std::make_unique<std::vector<edm4eic::TrackerHit>>()}; ///< Relation buffer for read / write
80 std::vector<podio::UVecPtr<edm4eic::TrackerHit>> m_rel_hits_tmp{}; ///< Relation buffer for internal book-keeping
81 podio::UVecPtr<edm4eic::TrackParameters> m_rel_params{std::make_unique<std::vector<edm4eic::TrackParameters>>()}; ///< 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<TrackSeedDataContainer> m_data{nullptr};
89};
90
91
92} // namespace edm4eic
93
94
95#endif
TrackSeedCollectionData(const TrackSeedCollectionData &)=delete
void createRelations(TrackSeedObj *obj)
Definition TrackSeedCollectionData.cc:149
void makeSubsetCollection()
Definition TrackSeedCollectionData.cc:201
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrackSeedCollectionData.cc:86
void clear(bool isSubsetColl)
Definition TrackSeedCollectionData.cc:51
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrackSeedCollectionData.cc:154
void prepareForWrite(bool isSubsetColl)
Definition TrackSeedCollectionData.cc:95
void prepareAfterRead(uint32_t collectionID)
Definition TrackSeedCollectionData.cc:134
TrackSeedCollectionData & operator=(const TrackSeedCollectionData &)=delete
TrackSeedObjPointerContainer entries
Definition TrackSeedCollectionData.h:38
TrackSeedCollectionData(TrackSeedCollectionData &&other)=default
TrackSeedCollectionData & operator=(TrackSeedCollectionData &&other)=default
TrackSeedCollectionData()
Definition TrackSeedCollectionData.cc:14
Definition TrackSeedObj.h:24
Definition CalorimeterHit.cc:17
std::deque< TrackSeedObj * > TrackSeedObjPointerContainer
Definition TrackSeedCollectionData.h:25
std::vector< TrackSeedData > TrackSeedDataContainer
Definition TrackSeedCollectionData.h:26