EDM4eic
EIC data model
Loading...
Searching...
No Matches
MCRecoCalorimeterHitAssociationCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_MCRecoCalorimeterHitAssociation_CollectionData_H
4#define EDM4EIC_MCRecoCalorimeterHitAssociation_CollectionData_H
5
6// datamodel specific includes
9#include "edm4hep/RawCalorimeterHit.h"
10#include "edm4hep/SimCalorimeterHit.h"
11
12// schema evolution specific includes
13
14// podio specific includes
15#include "podio/CollectionBuffers.h"
16#include "podio/ICollectionProvider.h"
17
18#include <deque>
19#include <memory>
20
21namespace edm4eic {
22
23
24using MCRecoCalorimeterHitAssociationObjPointerContainer = std::deque<MCRecoCalorimeterHitAssociationObj*>;
25using MCRecoCalorimeterHitAssociationDataContainer = std::vector<MCRecoCalorimeterHitAssociationData>;
26
27
28/**
29 * Class encapsulating everything related to storage of data that is needed by a
30 * collection.
31 */
33public:
34 /**
35 * The Objs of this collection
36 */
38
39 /**
40 * Default constructor setting up the necessary buffers
41 */
43
44 /**
45 * Constructor from existing I/O buffers
46 */
47 MCRecoCalorimeterHitAssociationCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
48
49 /**
50 * Non copy-able, move-only class
51 */
56
57 /**
58 * Deconstructor
59 */
61
62 void clear(bool isSubsetColl);
63
64 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
65
66 void prepareForWrite(bool isSubsetColl);
67
68 void prepareAfterRead(uint32_t collectionID);
69
71
72
73 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
74
75private:
76 // members to handle 1-to-N-relations
77 podio::UVecPtr<edm4hep::RawCalorimeterHit> m_rel_rawHit{nullptr}; ///< Relation buffer for read / write
78 podio::UVecPtr<edm4hep::SimCalorimeterHit> m_rel_simHit{nullptr}; ///< Relation buffer for read / write
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<MCRecoCalorimeterHitAssociationDataContainer> m_data{nullptr};
86};
87
88
89} // namespace edm4eic
90
91
92#endif
Definition MCRecoCalorimeterHitAssociationCollectionData.h:32
MCRecoCalorimeterHitAssociationCollectionData & operator=(MCRecoCalorimeterHitAssociationCollectionData &&other)=default
MCRecoCalorimeterHitAssociationCollectionData(MCRecoCalorimeterHitAssociationCollectionData &&other)=default
MCRecoCalorimeterHitAssociationObjPointerContainer entries
Definition MCRecoCalorimeterHitAssociationCollectionData.h:37
MCRecoCalorimeterHitAssociationCollectionData(const MCRecoCalorimeterHitAssociationCollectionData &)=delete
void makeSubsetCollection()
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:171
void clear(bool isSubsetColl)
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:37
void prepareAfterRead(uint32_t collectionID)
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:107
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:122
void prepareForWrite(bool isSubsetColl)
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:72
MCRecoCalorimeterHitAssociationCollectionData & operator=(const MCRecoCalorimeterHitAssociationCollectionData &)=delete
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:63
MCRecoCalorimeterHitAssociationCollectionData()
Definition MCRecoCalorimeterHitAssociationCollectionData.cc:12
Definition CalorimeterHit.cc:18
std::vector< MCRecoCalorimeterHitAssociationData > MCRecoCalorimeterHitAssociationDataContainer
Definition MCRecoCalorimeterHitAssociationCollectionData.h:25
std::deque< MCRecoCalorimeterHitAssociationObj * > MCRecoCalorimeterHitAssociationObjPointerContainer
Definition MCRecoCalorimeterHitAssociationCollectionData.h:24