File indexing completed on 2026-09-17 08:41:41
0001
0002
0003 #ifndef ACTSPODIOEDM_Track_CollectionData_H
0004 #define ACTSPODIOEDM_Track_CollectionData_H
0005
0006
0007 #include "ActsPodioEdm/Track.h"
0008 #include "ActsPodioEdm/TrackData.h"
0009 #include "ActsPodioEdm/TrackObj.h"
0010
0011
0012
0013
0014 #include <deque>
0015 #include <memory>
0016
0017 #include "podio/CollectionBuffers.h"
0018 #include "podio/ICollectionProvider.h"
0019
0020 namespace ActsPodioEdm {
0021
0022 using TrackObjPointerContainer = std::deque<TrackObj*>;
0023 using TrackDataContainer = std::vector<TrackData>;
0024
0025
0026
0027
0028
0029 class TrackCollectionData {
0030 public:
0031
0032
0033
0034 TrackObjPointerContainer entries{};
0035
0036
0037
0038
0039 TrackCollectionData();
0040
0041
0042
0043
0044 TrackCollectionData(podio::CollectionReadBuffers&& buffers,
0045 bool isSubsetColl);
0046
0047
0048
0049
0050 TrackCollectionData(const TrackCollectionData&) = delete;
0051 TrackCollectionData& operator=(const TrackCollectionData&) = delete;
0052 TrackCollectionData(TrackCollectionData&& other) = default;
0053 TrackCollectionData& operator=(TrackCollectionData&& other) = default;
0054
0055
0056
0057
0058 ~TrackCollectionData() = default;
0059
0060 void clear(bool isSubsetColl);
0061
0062 podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
0063
0064 void prepareForWrite(bool isSubsetColl);
0065
0066 void prepareAfterRead(uint32_t collectionID);
0067
0068 void makeSubsetCollection();
0069
0070 bool setReferences(const podio::ICollectionProvider* collectionProvider,
0071 bool isSubsetColl);
0072
0073 private:
0074
0075
0076
0077
0078
0079 podio::CollRefCollection m_refCollections{};
0080 podio::VectorMembersInfo m_vecmem_info{};
0081 std::unique_ptr<TrackDataContainer> m_data{nullptr};
0082 };
0083
0084 }
0085
0086 #endif