EICd
EIC data model
MCRecoClusterParticleAssociationCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EICD_MCRecoClusterParticleAssociation_CollectionData_H
4#define EICD_MCRecoClusterParticleAssociation_CollectionData_H
5
6// datamodel specific includes
9#include "eicd/Cluster.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 MCRecoClusterParticleAssociationObjPointerContainer = std::deque<MCRecoClusterParticleAssociationObj*>;
23using MCRecoClusterParticleAssociationDataContainer = std::vector<MCRecoClusterParticleAssociationData>;
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::Cluster> 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<MCRecoClusterParticleAssociationDataContainer> m_data{nullptr};
79};
80
81
82} // namespace eicd
83
84
85#endif
Definition: MCRecoClusterParticleAssociationCollectionData.h:30
MCRecoClusterParticleAssociationCollectionData & operator=(MCRecoClusterParticleAssociationCollectionData &&other)=default
void makeSubsetCollection()
Definition: MCRecoClusterParticleAssociationCollectionData.cc:153
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition: MCRecoClusterParticleAssociationCollectionData.cc:104
MCRecoClusterParticleAssociationCollectionData(MCRecoClusterParticleAssociationCollectionData &&other)=default
MCRecoClusterParticleAssociationObjPointerContainer entries
Definition: MCRecoClusterParticleAssociationCollectionData.h:35
podio::CollectionBuffers getCollectionBuffers(bool isSubsetColl)
Definition: MCRecoClusterParticleAssociationCollectionData.cc:46
MCRecoClusterParticleAssociationCollectionData()
Definition: MCRecoClusterParticleAssociationCollectionData.cc:12
void prepareForWrite(bool isSubsetColl)
Definition: MCRecoClusterParticleAssociationCollectionData.cc:54
void prepareAfterRead(int collectionID)
Definition: MCRecoClusterParticleAssociationCollectionData.cc:89
MCRecoClusterParticleAssociationCollectionData & operator=(const MCRecoClusterParticleAssociationCollectionData &)=delete
MCRecoClusterParticleAssociationCollectionData(const MCRecoClusterParticleAssociationCollectionData &)=delete
void clear(bool isSubsetColl)
Definition: MCRecoClusterParticleAssociationCollectionData.cc:20
Definition: CalorimeterHit.cc:13
std::vector< MCRecoClusterParticleAssociationData > MCRecoClusterParticleAssociationDataContainer
Definition: MCRecoClusterParticleAssociationCollectionData.h:23
std::deque< MCRecoClusterParticleAssociationObj * > MCRecoClusterParticleAssociationObjPointerContainer
Definition: MCRecoClusterParticleAssociationCollectionData.h:22