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