EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrackProtoClusterMatchCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_TrackProtoClusterMatch_CollectionData_H
4#define EDM4EIC_TrackProtoClusterMatch_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 TrackProtoClusterMatchObjPointerContainer = std::deque<TrackProtoClusterMatchObj*>;
26using TrackProtoClusterMatchDataContainer = std::vector<TrackProtoClusterMatchData>;
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 TrackProtoClusterMatchCollectionData(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
73
74 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
75
76private:
77 // members to handle 1-to-N-relations
78 podio::UVecPtr<edm4eic::Track> m_rel_from{std::make_unique<std::vector<edm4eic::Track>>()}; ///< Relation buffer for read / write
79 podio::UVecPtr<edm4eic::ProtoCluster> m_rel_to{std::make_unique<std::vector<edm4eic::ProtoCluster>>()}; ///< Relation buffer for read / write
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<TrackProtoClusterMatchDataContainer> m_data{nullptr};
87};
88
89
90} // namespace edm4eic
91
92
93#endif
void prepareForWrite(bool isSubsetColl)
Definition TrackProtoClusterMatchCollectionData.cc:88
TrackProtoClusterMatchObjPointerContainer entries
Definition TrackProtoClusterMatchCollectionData.h:38
TrackProtoClusterMatchCollectionData(TrackProtoClusterMatchCollectionData &&other)=default
TrackProtoClusterMatchCollectionData()
Definition TrackProtoClusterMatchCollectionData.cc:14
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrackProtoClusterMatchCollectionData.cc:138
TrackProtoClusterMatchCollectionData(const TrackProtoClusterMatchCollectionData &)=delete
void prepareAfterRead(uint32_t collectionID)
Definition TrackProtoClusterMatchCollectionData.cc:123
void clear(bool isSubsetColl)
Definition TrackProtoClusterMatchCollectionData.cc:51
TrackProtoClusterMatchCollectionData & operator=(const TrackProtoClusterMatchCollectionData &)=delete
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrackProtoClusterMatchCollectionData.cc:79
TrackProtoClusterMatchCollectionData & operator=(TrackProtoClusterMatchCollectionData &&other)=default
void makeSubsetCollection()
Definition TrackProtoClusterMatchCollectionData.cc:185
Definition CalorimeterHit.cc:17
std::vector< TrackProtoClusterMatchData > TrackProtoClusterMatchDataContainer
Definition TrackProtoClusterMatchCollectionData.h:26
std::deque< TrackProtoClusterMatchObj * > TrackProtoClusterMatchObjPointerContainer
Definition TrackProtoClusterMatchCollectionData.h:25