EDM4eic
EIC data model
Loading...
Searching...
No Matches
HadronicFinalStateCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_HadronicFinalState_CollectionData_H
4#define EDM4EIC_HadronicFinalState_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 HadronicFinalStateObjPointerContainer = std::deque<HadronicFinalStateObj*>;
24using HadronicFinalStateDataContainer = std::vector<HadronicFinalStateData>;
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 HadronicFinalStateCollectionData(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::ReconstructedParticle> m_rel_hadrons; ///< Relation buffer for read / write
78 std::vector<podio::UVecPtr<edm4eic::ReconstructedParticle>> m_rel_hadrons_tmp{}; ///< Relation buffer for internal book-keeping
79
80 // members to handle vector members
81
82 // I/O related buffers
83 podio::CollRefCollection m_refCollections{};
84 podio::VectorMembersInfo m_vecmem_info{};
85 std::unique_ptr<HadronicFinalStateDataContainer> m_data{nullptr};
86};
87
88
89} // namespace edm4eic
90
91
92#endif
Definition HadronicFinalStateCollectionData.h:31
HadronicFinalStateCollectionData & operator=(HadronicFinalStateCollectionData &&other)=default
HadronicFinalStateCollectionData(HadronicFinalStateCollectionData &&other)=default
void clear(bool isSubsetColl)
Definition HadronicFinalStateCollectionData.cc:33
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition HadronicFinalStateCollectionData.cc:61
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition HadronicFinalStateCollectionData.cc:121
void prepareForWrite(bool isSubsetColl)
Definition HadronicFinalStateCollectionData.cc:70
HadronicFinalStateCollectionData & operator=(const HadronicFinalStateCollectionData &)=delete
void createRelations(HadronicFinalStateObj *obj)
Definition HadronicFinalStateCollectionData.cc:116
HadronicFinalStateCollectionData()
Definition HadronicFinalStateCollectionData.cc:11
HadronicFinalStateCollectionData(const HadronicFinalStateCollectionData &)=delete
void prepareAfterRead(uint32_t collectionID)
Definition HadronicFinalStateCollectionData.cc:101
void makeSubsetCollection()
Definition HadronicFinalStateCollectionData.cc:156
HadronicFinalStateObjPointerContainer entries
Definition HadronicFinalStateCollectionData.h:36
Definition HadronicFinalStateObj.h:19
Definition CalorimeterHit.cc:18
std::deque< HadronicFinalStateObj * > HadronicFinalStateObjPointerContainer
Definition HadronicFinalStateCollectionData.h:23
std::vector< HadronicFinalStateData > HadronicFinalStateDataContainer
Definition HadronicFinalStateCollectionData.h:24