EICd
EIC data model
MCRecoVertexParticleAssociationCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EICD_MCRecoVertexParticleAssociation_CollectionData_H
4#define EICD_MCRecoVertexParticleAssociation_CollectionData_H
5
6// datamodel specific includes
9#include "eicd/Vertex.h"
10#include "edm4hep/MCParticle.h"
11
12// podio specific includes
13#include "podio/CollectionBuffers.h"
14#include "podio/ICollectionProvider.h"
15
16#include <deque>
17#include <memory>
18
19namespace eicd {
20
21
22using MCRecoVertexParticleAssociationObjPointerContainer = std::deque<MCRecoVertexParticleAssociationObj*>;
23using MCRecoVertexParticleAssociationDataContainer = std::vector<MCRecoVertexParticleAssociationData>;
24
25
26/**
27 * Class encapsulating everything related to storage of data that is needed by a
28 * collection.
29 */
31public:
32 /**
33 * The Objs of this collection
34 */
36
37 /**
38 * Default constructor setting up the necessary buffers
39 */
41
42 /**
43 * Non copy-able, move-only class
44 */
49
50 /**
51 * Deconstructor
52 */
54
55 void clear(bool isSubsetColl);
56
57 podio::CollectionBuffers getCollectionBuffers(bool isSubsetColl);
58
59 void prepareForWrite(bool isSubsetColl);
60
61 void prepareAfterRead(int collectionID);
62
64
65
66 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
67
68private:
69 // members to handle 1-to-N-relations
70 podio::UVecPtr<eicd::Vertex> m_rel_rec; ///< Relation buffer for read / write
71 podio::UVecPtr<edm4hep::MCParticle> m_rel_sim; ///< Relation buffer for read / write
72
73 // members to handle vector members
74
75 // I/O related buffers
76 podio::CollRefCollection m_refCollections{};
77 podio::VectorMembersInfo m_vecmem_info{};
78 std::unique_ptr<MCRecoVertexParticleAssociationDataContainer> m_data{nullptr};
79};
80
81
82} // namespace eicd
83
84
85#endif
Definition: MCRecoVertexParticleAssociationCollectionData.h:30
podio::CollectionBuffers getCollectionBuffers(bool isSubsetColl)
Definition: MCRecoVertexParticleAssociationCollectionData.cc:46
void prepareForWrite(bool isSubsetColl)
Definition: MCRecoVertexParticleAssociationCollectionData.cc:54
void clear(bool isSubsetColl)
Definition: MCRecoVertexParticleAssociationCollectionData.cc:20
MCRecoVertexParticleAssociationCollectionData & operator=(MCRecoVertexParticleAssociationCollectionData &&other)=default
MCRecoVertexParticleAssociationCollectionData & operator=(const MCRecoVertexParticleAssociationCollectionData &)=delete
MCRecoVertexParticleAssociationCollectionData(const MCRecoVertexParticleAssociationCollectionData &)=delete
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition: MCRecoVertexParticleAssociationCollectionData.cc:104
MCRecoVertexParticleAssociationCollectionData(MCRecoVertexParticleAssociationCollectionData &&other)=default
MCRecoVertexParticleAssociationObjPointerContainer entries
Definition: MCRecoVertexParticleAssociationCollectionData.h:35
void makeSubsetCollection()
Definition: MCRecoVertexParticleAssociationCollectionData.cc:153
void prepareAfterRead(int collectionID)
Definition: MCRecoVertexParticleAssociationCollectionData.cc:89
MCRecoVertexParticleAssociationCollectionData()
Definition: MCRecoVertexParticleAssociationCollectionData.cc:12
Definition: CalorimeterHit.cc:13
std::vector< MCRecoVertexParticleAssociationData > MCRecoVertexParticleAssociationDataContainer
Definition: MCRecoVertexParticleAssociationCollectionData.h:23
std::deque< MCRecoVertexParticleAssociationObj * > MCRecoVertexParticleAssociationObjPointerContainer
Definition: MCRecoVertexParticleAssociationCollectionData.h:22