EDM4eic
EIC data model
Loading...
Searching...
No Matches
InclusiveKinematicsCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_InclusiveKinematics_CollectionData_H
4#define EDM4EIC_InclusiveKinematics_CollectionData_H
5
6// datamodel specific includes
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 InclusiveKinematicsObjPointerContainer = std::deque<InclusiveKinematicsObj*>;
24using InclusiveKinematicsDataContainer = std::vector<InclusiveKinematicsData>;
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 InclusiveKinematicsCollectionData(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
71
72 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
73
74private:
75 // members to handle 1-to-N-relations
76 podio::UVecPtr<edm4eic::ReconstructedParticle> m_rel_scat{nullptr}; ///< Relation buffer for read / write
77
78 // members to handle vector members
79
80 // I/O related buffers
81 podio::CollRefCollection m_refCollections{};
82 podio::VectorMembersInfo m_vecmem_info{};
83 std::unique_ptr<InclusiveKinematicsDataContainer> m_data{nullptr};
84};
85
86
87} // namespace edm4eic
88
89
90#endif
Definition InclusiveKinematicsCollectionData.h:31
InclusiveKinematicsCollectionData(InclusiveKinematicsCollectionData &&other)=default
void prepareForWrite(bool isSubsetColl)
Definition InclusiveKinematicsCollectionData.cc:63
InclusiveKinematicsCollectionData & operator=(InclusiveKinematicsCollectionData &&other)=default
void prepareAfterRead(uint32_t collectionID)
Definition InclusiveKinematicsCollectionData.cc:90
InclusiveKinematicsCollectionData(const InclusiveKinematicsCollectionData &)=delete
void clear(bool isSubsetColl)
Definition InclusiveKinematicsCollectionData.cc:33
InclusiveKinematicsObjPointerContainer entries
Definition InclusiveKinematicsCollectionData.h:36
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition InclusiveKinematicsCollectionData.cc:105
InclusiveKinematicsCollectionData()
Definition InclusiveKinematicsCollectionData.cc:11
void makeSubsetCollection()
Definition InclusiveKinematicsCollectionData.cc:139
InclusiveKinematicsCollectionData & operator=(const InclusiveKinematicsCollectionData &)=delete
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition InclusiveKinematicsCollectionData.cc:54
Definition CalorimeterHit.cc:18
std::vector< InclusiveKinematicsData > InclusiveKinematicsDataContainer
Definition InclusiveKinematicsCollectionData.h:24
std::deque< InclusiveKinematicsObj * > InclusiveKinematicsObjPointerContainer
Definition InclusiveKinematicsCollectionData.h:23