EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrackClusterMatchCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_TrackClusterMatch_CollectionData_H
4#define EDM4EIC_TrackClusterMatch_CollectionData_H
5
6// datamodel specific includes
10#include "edm4eic/Cluster.h"
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 TrackClusterMatchObjPointerContainer = std::deque<TrackClusterMatchObj*>;
26using TrackClusterMatchDataContainer = std::vector<TrackClusterMatchData>;
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 TrackClusterMatchCollectionData(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::Cluster> m_rel_cluster{std::make_unique<std::vector<edm4eic::Cluster>>()}; ///< Relation buffer for read / write
79 podio::UVecPtr<edm4eic::Track> m_rel_track{std::make_unique<std::vector<edm4eic::Track>>()}; ///< 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<TrackClusterMatchDataContainer> m_data{nullptr};
87};
88
89
90} // namespace edm4eic
91
92
93#endif
TrackClusterMatchCollectionData & operator=(const TrackClusterMatchCollectionData &)=delete
TrackClusterMatchCollectionData(const TrackClusterMatchCollectionData &)=delete
TrackClusterMatchCollectionData & operator=(TrackClusterMatchCollectionData &&other)=default
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrackClusterMatchCollectionData.cc:79
void prepareAfterRead(uint32_t collectionID)
Definition TrackClusterMatchCollectionData.cc:123
void prepareForWrite(bool isSubsetColl)
Definition TrackClusterMatchCollectionData.cc:88
TrackClusterMatchObjPointerContainer entries
Definition TrackClusterMatchCollectionData.h:38
void clear(bool isSubsetColl)
Definition TrackClusterMatchCollectionData.cc:51
TrackClusterMatchCollectionData(TrackClusterMatchCollectionData &&other)=default
void makeSubsetCollection()
Definition TrackClusterMatchCollectionData.cc:185
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrackClusterMatchCollectionData.cc:138
TrackClusterMatchCollectionData()
Definition TrackClusterMatchCollectionData.cc:14
Definition CalorimeterHit.cc:17
std::vector< TrackClusterMatchData > TrackClusterMatchDataContainer
Definition TrackClusterMatchCollectionData.h:26
std::deque< TrackClusterMatchObj * > TrackClusterMatchObjPointerContainer
Definition TrackClusterMatchCollectionData.h:25