EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrackSegmentCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_TrackSegment_CollectionData_H
4#define EDM4EIC_TrackSegment_CollectionData_H
5
6// datamodel specific includes
9#include "edm4eic/Track.h"
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 TrackSegmentObjPointerContainer = std::deque<TrackSegmentObj*>;
24using TrackSegmentDataContainer = std::vector<TrackSegmentData>;
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 TrackSegmentCollectionData(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::Track> m_rel_track{nullptr}; ///< Relation buffer for read / write
78
79 // members to handle vector members
80 podio::UVecPtr<edm4eic::TrackPoint> m_vec_points{nullptr}; /// combined vector of all objects in collection
81 std::vector<podio::UVecPtr<edm4eic::TrackPoint>> m_vecs_points{}; /// pointers to individual member vectors
82
83 // I/O related buffers
84 podio::CollRefCollection m_refCollections{};
85 podio::VectorMembersInfo m_vecmem_info{};
86 std::unique_ptr<TrackSegmentDataContainer> m_data{nullptr};
87};
88
89
90} // namespace edm4eic
91
92
93#endif
Definition TrackSegmentCollectionData.h:31
void makeSubsetCollection()
Definition TrackSegmentCollectionData.cc:166
TrackSegmentObjPointerContainer entries
Definition TrackSegmentCollectionData.h:36
TrackSegmentCollectionData & operator=(TrackSegmentCollectionData &&other)=default
TrackSegmentCollectionData()
Definition TrackSegmentCollectionData.cc:12
void prepareAfterRead(uint32_t collectionID)
Definition TrackSegmentCollectionData.cc:112
void createRelations(TrackSegmentObj *obj)
Definition TrackSegmentCollectionData.cc:127
TrackSegmentCollectionData & operator=(const TrackSegmentCollectionData &)=delete
TrackSegmentCollectionData(TrackSegmentCollectionData &&other)=default
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrackSegmentCollectionData.cc:61
void prepareForWrite(bool isSubsetColl)
Definition TrackSegmentCollectionData.cc:75
TrackSegmentCollectionData(const TrackSegmentCollectionData &)=delete
void clear(bool isSubsetColl)
Definition TrackSegmentCollectionData.cc:37
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrackSegmentCollectionData.cc:132
Definition TrackSegmentObj.h:23
Definition CalorimeterHit.cc:18
std::vector< TrackSegmentData > TrackSegmentDataContainer
Definition TrackSegmentCollectionData.h:24
std::deque< TrackSegmentObj * > TrackSegmentObjPointerContainer
Definition TrackSegmentCollectionData.h:23