EDM4eic
EIC data model
Loading...
Searching...
No Matches
TrajectoryCollectionData.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_Trajectory_CollectionData_H
4#define EDM4EIC_Trajectory_CollectionData_H
5
6// datamodel specific includes
11#include "edm4eic/TrackSeed.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 TrajectoryObjPointerContainer = std::deque<TrajectoryObj*>;
26using TrajectoryDataContainer = std::vector<TrajectoryData>;
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 TrajectoryCollectionData(podio::CollectionReadBuffers buffers, bool isSubsetColl);
49
50 /**
51 * Non copy-able, move-only class
52 */
57
58 /**
59 * Deconstructor
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
74
75 bool setReferences(const podio::ICollectionProvider* collectionProvider, bool isSubsetColl);
76
77private:
78 // members to handle 1-to-N-relations
79 podio::UVecPtr<edm4eic::TrackParameters> m_rel_trackParameters; ///< Relation buffer for read / write
80 std::vector<podio::UVecPtr<edm4eic::TrackParameters>> m_rel_trackParameters_tmp{}; ///< Relation buffer for internal book-keeping
81 podio::UVecPtr<edm4eic::Measurement2D> m_rel_measurements_deprecated; ///< Relation buffer for read / write
82 std::vector<podio::UVecPtr<edm4eic::Measurement2D>> m_rel_measurements_deprecated_tmp{}; ///< Relation buffer for internal book-keeping
83 podio::UVecPtr<edm4eic::Measurement2D> m_rel_outliers_deprecated; ///< Relation buffer for read / write
84 std::vector<podio::UVecPtr<edm4eic::Measurement2D>> m_rel_outliers_deprecated_tmp{}; ///< Relation buffer for internal book-keeping
85 podio::UVecPtr<edm4eic::TrackSeed> m_rel_seed{nullptr}; ///< Relation buffer for read / write
86
87 // members to handle vector members
88 podio::UVecPtr<float> m_vec_measurementChi2{nullptr}; /// combined vector of all objects in collection
89 std::vector<podio::UVecPtr<float>> m_vecs_measurementChi2{}; /// pointers to individual member vectors
90 podio::UVecPtr<float> m_vec_outlierChi2{nullptr}; /// combined vector of all objects in collection
91 std::vector<podio::UVecPtr<float>> m_vecs_outlierChi2{}; /// pointers to individual member vectors
92
93 // I/O related buffers
94 podio::CollRefCollection m_refCollections{};
95 podio::VectorMembersInfo m_vecmem_info{};
96 std::unique_ptr<TrajectoryDataContainer> m_data{nullptr};
97};
98
99
100} // namespace edm4eic
101
102
103#endif
Definition TrajectoryCollectionData.h:33
void createRelations(TrajectoryObj *obj)
Definition TrajectoryCollectionData.cc:227
TrajectoryCollectionData(const TrajectoryCollectionData &)=delete
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition TrajectoryCollectionData.cc:114
TrajectoryCollectionData & operator=(const TrajectoryCollectionData &)=delete
TrajectoryCollectionData()
Definition TrajectoryCollectionData.cc:14
TrajectoryObjPointerContainer entries
Definition TrajectoryCollectionData.h:38
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition TrajectoryCollectionData.cc:240
TrajectoryCollectionData(TrajectoryCollectionData &&other)=default
TrajectoryCollectionData & operator=(TrajectoryCollectionData &&other)=default
void clear(bool isSubsetColl)
Definition TrajectoryCollectionData.cc:51
void prepareAfterRead(uint32_t collectionID)
Definition TrajectoryCollectionData.cc:208
void makeSubsetCollection()
Definition TrajectoryCollectionData.cc:322
void prepareForWrite(bool isSubsetColl)
Definition TrajectoryCollectionData.cc:129
Definition TrajectoryObj.h:24
Definition CalorimeterHit.cc:18
std::vector< TrajectoryData > TrajectoryDataContainer
Definition TrajectoryCollectionData.h:26
std::deque< TrajectoryObj * > TrajectoryObjPointerContainer
Definition TrajectoryCollectionData.h:25