EDM4eic
EIC data model
Loading...
Searching...
No Matches
CherenkovParticleIDCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_CherenkovParticleID_CollectionData_H
4#define EDM4EIC_CherenkovParticleID_CollectionData_H
5
6// datamodel specific includes
11
12// schema evolution specific includes
13
14// podio specific includes
15#include "podio/CollectionBuffers.h"
16#include "podio/ICollectionProvider.h"
17
18#include <deque>
19#include <memory>
20
21namespace edm4eic {
22
23
24using CherenkovParticleIDObjPointerContainer = std::deque<CherenkovParticleIDObj*>;
25using CherenkovParticleIDDataContainer = std::vector<CherenkovParticleIDData>;
26
27
28/**
29 * Class encapsulating everything related to storage of data that is needed by a
30 * collection.
31 */
33public:
34 /**
35 * The Objs of this collection
36 */
38
39 /**
40 * Default constructor setting up the necessary buffers
41 */
43
44 /**
45 * Constructor from existing I/O buffers
46 */
47 CherenkovParticleIDCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
48
49 /**
50 * Non copy-able, move-only class
51 */
56
57 /**
58 * Deconstructor
59 */
61
62 void clear(bool isSubsetColl);
63
64 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
65
66 void prepareForWrite(bool isSubsetColl);
67
68 void prepareAfterRead(uint32_t collectionID);
69
71
73
74 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
75
76private:
77 // members to handle 1-to-N-relations
78 podio::UVecPtr<edm4eic::MCRecoTrackerHitAssociation> m_rel_rawHitAssociations; ///< Relation buffer for read / write
79 std::vector<podio::UVecPtr<edm4eic::MCRecoTrackerHitAssociation>> m_rel_rawHitAssociations_tmp{}; ///< Relation buffer for internal book-keeping
80 podio::UVecPtr<edm4eic::TrackSegment> m_rel_chargedParticle{nullptr}; ///< Relation buffer for read / write
81
82 // members to handle vector members
83 podio::UVecPtr<edm4eic::CherenkovParticleIDHypothesis> m_vec_hypotheses{nullptr}; /// combined vector of all objects in collection
84 std::vector<podio::UVecPtr<edm4eic::CherenkovParticleIDHypothesis>> m_vecs_hypotheses{}; /// pointers to individual member vectors
85 podio::UVecPtr<edm4hep::Vector2f> m_vec_thetaPhiPhotons{nullptr}; /// combined vector of all objects in collection
86 std::vector<podio::UVecPtr<edm4hep::Vector2f>> m_vecs_thetaPhiPhotons{}; /// pointers to individual member vectors
87
88 // I/O related buffers
89 podio::CollRefCollection m_refCollections{};
90 podio::VectorMembersInfo m_vecmem_info{};
91 std::unique_ptr<CherenkovParticleIDDataContainer> m_data{nullptr};
92};
93
94
95} // namespace edm4eic
96
97
98#endif
Definition CherenkovParticleIDCollectionData.h:32
void makeSubsetCollection()
Definition CherenkovParticleIDCollectionData.cc:231
CherenkovParticleIDCollectionData & operator=(CherenkovParticleIDCollectionData &&other)=default
CherenkovParticleIDCollectionData & operator=(const CherenkovParticleIDCollectionData &)=delete
void prepareAfterRead(uint32_t collectionID)
Definition CherenkovParticleIDCollectionData.cc:155
CherenkovParticleIDCollectionData()
Definition CherenkovParticleIDCollectionData.cc:13
CherenkovParticleIDCollectionData(const CherenkovParticleIDCollectionData &)=delete
CherenkovParticleIDCollectionData(CherenkovParticleIDCollectionData &&other)=default
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition CherenkovParticleIDCollectionData.cc:181
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition CherenkovParticleIDCollectionData.cc:83
CherenkovParticleIDObjPointerContainer entries
Definition CherenkovParticleIDCollectionData.h:37
void prepareForWrite(bool isSubsetColl)
Definition CherenkovParticleIDCollectionData.cc:98
void clear(bool isSubsetColl)
Definition CherenkovParticleIDCollectionData.cc:44
void createRelations(CherenkovParticleIDObj *obj)
Definition CherenkovParticleIDCollectionData.cc:172
Definition CherenkovParticleIDObj.h:25
Definition CalorimeterHit.cc:18
std::vector< CherenkovParticleIDData > CherenkovParticleIDDataContainer
Definition CherenkovParticleIDCollectionData.h:25
std::deque< CherenkovParticleIDObj * > CherenkovParticleIDObjPointerContainer
Definition CherenkovParticleIDCollectionData.h:24