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