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