EDM4eic
EIC data model
Toggle main menu visibility
Loading...
Searching...
No Matches
TrackClusterMatchCollectionData.h
Go to the documentation of this file.
1
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3
#ifndef EDM4EIC_TrackClusterMatch_CollectionData_H
4
#define EDM4EIC_TrackClusterMatch_CollectionData_H
5
6
// datamodel specific includes
7
#include "
edm4eic/TrackClusterMatchData.h
"
8
#include "
edm4eic/TrackClusterMatchObj.h
"
9
#include "
edm4eic/TrackClusterMatch.h
"
10
#include "
edm4eic/Cluster.h
"
11
#include "
edm4eic/Track.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
TrackClusterMatchObjPointerContainer
= std::deque<TrackClusterMatchObj*>;
26
using
TrackClusterMatchDataContainer
= std::vector<TrackClusterMatchData>;
27
28
29
/**
30
* Class encapsulating everything related to storage of data that is needed by a
31
* collection.
32
*/
33
class
TrackClusterMatchCollectionData
{
34
public
:
35
/**
36
* The Objs of this collection
37
*/
38
TrackClusterMatchObjPointerContainer
entries
{};
39
40
/**
41
* Default constructor setting up the necessary buffers
42
*/
43
TrackClusterMatchCollectionData
();
44
45
/**
46
* Constructor from existing I/O buffers
47
*/
48
TrackClusterMatchCollectionData
(podio::CollectionReadBuffers buffers,
bool
isSubsetColl);
49
50
/**
51
* Non copy-able, move-only class
52
*/
53
TrackClusterMatchCollectionData
(
const
TrackClusterMatchCollectionData
&) =
delete
;
54
TrackClusterMatchCollectionData
&
operator=
(
const
TrackClusterMatchCollectionData
&) =
delete
;
55
TrackClusterMatchCollectionData
(
TrackClusterMatchCollectionData
&& other) =
default
;
56
TrackClusterMatchCollectionData
&
operator=
(
TrackClusterMatchCollectionData
&& other) =
default
;
57
58
/**
59
* Destructor
60
*/
61
~TrackClusterMatchCollectionData
() =
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
74
bool
setReferences
(
const
podio::ICollectionProvider* collectionProvider,
bool
isSubsetColl);
75
76
private
:
77
// members to handle 1-to-N-relations
78
podio::UVecPtr<edm4eic::Cluster> m_rel_cluster{std::make_unique<std::vector<edm4eic::Cluster>>()};
///< Relation buffer for read / write
79
podio::UVecPtr<edm4eic::Track> m_rel_track{std::make_unique<std::vector<edm4eic::Track>>()};
///< Relation buffer for read / write
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<TrackClusterMatchDataContainer> m_data{
nullptr
};
87
};
88
89
90
}
// namespace edm4eic
91
92
93
#endif
Cluster.h
Track.h
TrackClusterMatch.h
TrackClusterMatchData.h
TrackClusterMatchObj.h
edm4eic::TrackClusterMatchCollectionData::operator=
TrackClusterMatchCollectionData & operator=(const TrackClusterMatchCollectionData &)=delete
edm4eic::TrackClusterMatchCollectionData::TrackClusterMatchCollectionData
TrackClusterMatchCollectionData(const TrackClusterMatchCollectionData &)=delete
edm4eic::TrackClusterMatchCollectionData::operator=
TrackClusterMatchCollectionData & operator=(TrackClusterMatchCollectionData &&other)=default
edm4eic::TrackClusterMatchCollectionData::getCollectionBuffers
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition
TrackClusterMatchCollectionData.cc:79
edm4eic::TrackClusterMatchCollectionData::prepareAfterRead
void prepareAfterRead(uint32_t collectionID)
Definition
TrackClusterMatchCollectionData.cc:123
edm4eic::TrackClusterMatchCollectionData::prepareForWrite
void prepareForWrite(bool isSubsetColl)
Definition
TrackClusterMatchCollectionData.cc:88
edm4eic::TrackClusterMatchCollectionData::entries
TrackClusterMatchObjPointerContainer entries
Definition
TrackClusterMatchCollectionData.h:38
edm4eic::TrackClusterMatchCollectionData::clear
void clear(bool isSubsetColl)
Definition
TrackClusterMatchCollectionData.cc:51
edm4eic::TrackClusterMatchCollectionData::TrackClusterMatchCollectionData
TrackClusterMatchCollectionData(TrackClusterMatchCollectionData &&other)=default
edm4eic::TrackClusterMatchCollectionData::makeSubsetCollection
void makeSubsetCollection()
Definition
TrackClusterMatchCollectionData.cc:185
edm4eic::TrackClusterMatchCollectionData::setReferences
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition
TrackClusterMatchCollectionData.cc:138
edm4eic::TrackClusterMatchCollectionData::~TrackClusterMatchCollectionData
~TrackClusterMatchCollectionData()=default
edm4eic::TrackClusterMatchCollectionData::TrackClusterMatchCollectionData
TrackClusterMatchCollectionData()
Definition
TrackClusterMatchCollectionData.cc:14
edm4eic
Definition
CalorimeterHit.cc:17
edm4eic::TrackClusterMatchDataContainer
std::vector< TrackClusterMatchData > TrackClusterMatchDataContainer
Definition
TrackClusterMatchCollectionData.h:26
edm4eic::TrackClusterMatchObjPointerContainer
std::deque< TrackClusterMatchObj * > TrackClusterMatchObjPointerContainer
Definition
TrackClusterMatchCollectionData.h:25
build
edm4eic
TrackClusterMatchCollectionData.h
Generated by
1.17.0