EDM4eic
EIC data model
Toggle main menu visibility
Loading...
Searching...
No Matches
TrackSeedCollectionData.h
Go to the documentation of this file.
1
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3
#ifndef EDM4EIC_TrackSeed_CollectionData_H
4
#define EDM4EIC_TrackSeed_CollectionData_H
5
6
// datamodel specific includes
7
#include "
edm4eic/TrackSeedData.h
"
8
#include "
edm4eic/TrackSeedObj.h
"
9
#include "
edm4eic/TrackSeed.h
"
10
#include "
edm4eic/TrackParameters.h
"
11
#include "
edm4eic/TrackerHit.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
22
namespace
edm4eic
{
23
24
25
using
TrackSeedObjPointerContainer
= std::deque<TrackSeedObj*>;
26
using
TrackSeedDataContainer
= std::vector<TrackSeedData>;
27
28
29
/**
30
* Class encapsulating everything related to storage of data that is needed by a
31
* collection.
32
*/
33
class
TrackSeedCollectionData
{
34
public
:
35
/**
36
* The Objs of this collection
37
*/
38
TrackSeedObjPointerContainer
entries
{};
39
40
/**
41
* Default constructor setting up the necessary buffers
42
*/
43
TrackSeedCollectionData
();
44
45
/**
46
* Constructor from existing I/O buffers
47
*/
48
TrackSeedCollectionData
(podio::CollectionReadBuffers buffers,
bool
isSubsetColl);
49
50
/**
51
* Non copy-able, move-only class
52
*/
53
TrackSeedCollectionData
(
const
TrackSeedCollectionData
&) =
delete
;
54
TrackSeedCollectionData
&
operator=
(
const
TrackSeedCollectionData
&) =
delete
;
55
TrackSeedCollectionData
(
TrackSeedCollectionData
&& other) =
default
;
56
TrackSeedCollectionData
&
operator=
(
TrackSeedCollectionData
&& other) =
default
;
57
58
/**
59
* Destructor
60
*/
61
~TrackSeedCollectionData
() =
default
;
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
71
void
makeSubsetCollection
();
72
73
void
createRelations
(
TrackSeedObj
* obj);
74
75
bool
setReferences
(
const
podio::ICollectionProvider* collectionProvider,
bool
isSubsetColl);
76
77
private
:
78
// members to handle 1-to-N-relations
79
podio::UVecPtr<edm4eic::TrackerHit> m_rel_hits{std::make_unique<std::vector<edm4eic::TrackerHit>>()};
///< Relation buffer for read / write
80
std::vector<podio::UVecPtr<edm4eic::TrackerHit>> m_rel_hits_tmp{};
///< Relation buffer for internal book-keeping
81
podio::UVecPtr<edm4eic::TrackParameters> m_rel_params{std::make_unique<std::vector<edm4eic::TrackParameters>>()};
///< Relation buffer for read / write
82
83
// members to handle vector members
84
85
// I/O related buffers
86
podio::CollRefCollection m_refCollections{};
87
podio::VectorMembersInfo m_vecmem_info{};
88
std::unique_ptr<TrackSeedDataContainer> m_data{
nullptr
};
89
};
90
91
92
}
// namespace edm4eic
93
94
95
#endif
TrackParameters.h
TrackSeed.h
TrackSeedData.h
TrackSeedObj.h
TrackerHit.h
edm4eic::TrackSeedCollectionData::TrackSeedCollectionData
TrackSeedCollectionData(const TrackSeedCollectionData &)=delete
edm4eic::TrackSeedCollectionData::createRelations
void createRelations(TrackSeedObj *obj)
Definition
TrackSeedCollectionData.cc:149
edm4eic::TrackSeedCollectionData::makeSubsetCollection
void makeSubsetCollection()
Definition
TrackSeedCollectionData.cc:201
edm4eic::TrackSeedCollectionData::getCollectionBuffers
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition
TrackSeedCollectionData.cc:86
edm4eic::TrackSeedCollectionData::clear
void clear(bool isSubsetColl)
Definition
TrackSeedCollectionData.cc:51
edm4eic::TrackSeedCollectionData::setReferences
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition
TrackSeedCollectionData.cc:154
edm4eic::TrackSeedCollectionData::prepareForWrite
void prepareForWrite(bool isSubsetColl)
Definition
TrackSeedCollectionData.cc:95
edm4eic::TrackSeedCollectionData::prepareAfterRead
void prepareAfterRead(uint32_t collectionID)
Definition
TrackSeedCollectionData.cc:134
edm4eic::TrackSeedCollectionData::operator=
TrackSeedCollectionData & operator=(const TrackSeedCollectionData &)=delete
edm4eic::TrackSeedCollectionData::entries
TrackSeedObjPointerContainer entries
Definition
TrackSeedCollectionData.h:38
edm4eic::TrackSeedCollectionData::~TrackSeedCollectionData
~TrackSeedCollectionData()=default
edm4eic::TrackSeedCollectionData::TrackSeedCollectionData
TrackSeedCollectionData(TrackSeedCollectionData &&other)=default
edm4eic::TrackSeedCollectionData::operator=
TrackSeedCollectionData & operator=(TrackSeedCollectionData &&other)=default
edm4eic::TrackSeedCollectionData::TrackSeedCollectionData
TrackSeedCollectionData()
Definition
TrackSeedCollectionData.cc:14
edm4eic::TrackSeedObj
Definition
TrackSeedObj.h:24
edm4eic
Definition
CalorimeterHit.cc:17
edm4eic::TrackSeedObjPointerContainer
std::deque< TrackSeedObj * > TrackSeedObjPointerContainer
Definition
TrackSeedCollectionData.h:25
edm4eic::TrackSeedDataContainer
std::vector< TrackSeedData > TrackSeedDataContainer
Definition
TrackSeedCollectionData.h:26
build
edm4eic
TrackSeedCollectionData.h
Generated by
1.17.0