EDM4eic
EIC data model
Loading...
Searching...
No Matches
ReconstructedParticleCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_ReconstructedParticle_CollectionData_H
4#define EDM4EIC_ReconstructedParticle_CollectionData_H
5
6// datamodel specific includes
9#include "edm4eic/Cluster.h"
10#include "edm4eic/Track.h"
11#include "edm4eic/Vertex.h"
12#include "edm4hep/ParticleID.h"
13
14// schema evolution specific includes
15
16// podio specific includes
17#include "podio/CollectionBuffers.h"
18#include "podio/ICollectionProvider.h"
19
20#include <deque>
21#include <memory>
22
23namespace edm4eic {
24
25
26using ReconstructedParticleObjPointerContainer = std::deque<ReconstructedParticleObj*>;
27using ReconstructedParticleDataContainer = std::vector<ReconstructedParticleData>;
28
29
30/**
31 * Class encapsulating everything related to storage of data that is needed by a
32 * collection.
33 */
35public:
36 /**
37 * The Objs of this collection
38 */
40
41 /**
42 * Default constructor setting up the necessary buffers
43 */
45
46 /**
47 * Constructor from existing I/O buffers
48 */
49 ReconstructedParticleCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
50
51 /**
52 * Non copy-able, move-only class
53 */
58
59 /**
60 * Deconstructor
61 */
63
64 void clear(bool isSubsetColl);
65
66 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
67
68 void prepareForWrite(bool isSubsetColl);
69
70 void prepareAfterRead(uint32_t collectionID);
71
73
75
76 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
77
78private:
79 // members to handle 1-to-N-relations
80 podio::UVecPtr<edm4eic::Cluster> m_rel_clusters; ///< Relation buffer for read / write
81 std::vector<podio::UVecPtr<edm4eic::Cluster>> m_rel_clusters_tmp{}; ///< Relation buffer for internal book-keeping
82 podio::UVecPtr<edm4eic::Track> m_rel_tracks; ///< Relation buffer for read / write
83 std::vector<podio::UVecPtr<edm4eic::Track>> m_rel_tracks_tmp{}; ///< Relation buffer for internal book-keeping
84 podio::UVecPtr<edm4eic::ReconstructedParticle> m_rel_particles; ///< Relation buffer for read / write
85 std::vector<podio::UVecPtr<edm4eic::ReconstructedParticle>> m_rel_particles_tmp{}; ///< Relation buffer for internal book-keeping
86 podio::UVecPtr<edm4hep::ParticleID> m_rel_particleIDs; ///< Relation buffer for read / write
87 std::vector<podio::UVecPtr<edm4hep::ParticleID>> m_rel_particleIDs_tmp{}; ///< Relation buffer for internal book-keeping
88 podio::UVecPtr<edm4eic::Vertex> m_rel_startVertex{nullptr}; ///< Relation buffer for read / write
89 podio::UVecPtr<edm4hep::ParticleID> m_rel_particleIDUsed{nullptr}; ///< Relation buffer for read / write
90
91 // members to handle vector members
92
93 // I/O related buffers
94 podio::CollRefCollection m_refCollections{};
95 podio::VectorMembersInfo m_vecmem_info{};
96 std::unique_ptr<ReconstructedParticleDataContainer> m_data{nullptr};
97};
98
99
100} // namespace edm4eic
101
102
103#endif
Definition ReconstructedParticleCollectionData.h:34
ReconstructedParticleCollectionData(const ReconstructedParticleCollectionData &)=delete
void prepareAfterRead(uint32_t collectionID)
Definition ReconstructedParticleCollectionData.cc:214
ReconstructedParticleObjPointerContainer entries
Definition ReconstructedParticleCollectionData.h:39
ReconstructedParticleCollectionData()
Definition ReconstructedParticleCollectionData.cc:14
ReconstructedParticleCollectionData(ReconstructedParticleCollectionData &&other)=default
void createRelations(ReconstructedParticleObj *obj)
Definition ReconstructedParticleCollectionData.cc:232
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition ReconstructedParticleCollectionData.cc:243
ReconstructedParticleCollectionData & operator=(const ReconstructedParticleCollectionData &)=delete
ReconstructedParticleCollectionData & operator=(ReconstructedParticleCollectionData &&other)=default
void makeSubsetCollection()
Definition ReconstructedParticleCollectionData.cc:356
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition ReconstructedParticleCollectionData.cc:125
void prepareForWrite(bool isSubsetColl)
Definition ReconstructedParticleCollectionData.cc:134
void clear(bool isSubsetColl)
Definition ReconstructedParticleCollectionData.cc:51
Definition ReconstructedParticleObj.h:28
Definition CalorimeterHit.cc:18
std::deque< ReconstructedParticleObj * > ReconstructedParticleObjPointerContainer
Definition ReconstructedParticleCollectionData.h:26
std::vector< ReconstructedParticleData > ReconstructedParticleDataContainer
Definition ReconstructedParticleCollectionData.h:27