EDM4eic
EIC data model
Toggle main menu visibility
Loading...
Searching...
No Matches
IrtRadiatorInfoCollectionData.h
Go to the documentation of this file.
1
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3
#ifndef EDM4EIC_IrtRadiatorInfo_CollectionData_H
4
#define EDM4EIC_IrtRadiatorInfo_CollectionData_H
5
6
// datamodel specific includes
7
#include "
edm4eic/IrtRadiatorInfoData.h
"
8
#include "
edm4eic/IrtRadiatorInfoObj.h
"
9
#include "
edm4eic/IrtRadiatorInfo.h
"
10
11
// schema evolution specific includes
12
13
// podio specific includes
14
#include "podio/CollectionBuffers.h"
15
#include "podio/ICollectionProvider.h"
16
17
#include <deque>
18
#include <memory>
19
20
namespace
edm4eic
{
21
22
23
using
IrtRadiatorInfoObjPointerContainer
= std::deque<IrtRadiatorInfoObj*>;
24
using
IrtRadiatorInfoDataContainer
= std::vector<IrtRadiatorInfoData>;
25
26
27
/**
28
* Class encapsulating everything related to storage of data that is needed by a
29
* collection.
30
*/
31
class
IrtRadiatorInfoCollectionData
{
32
public
:
33
/**
34
* The Objs of this collection
35
*/
36
IrtRadiatorInfoObjPointerContainer
entries
{};
37
38
/**
39
* Default constructor setting up the necessary buffers
40
*/
41
IrtRadiatorInfoCollectionData
();
42
43
/**
44
* Constructor from existing I/O buffers
45
*/
46
IrtRadiatorInfoCollectionData
(podio::CollectionReadBuffers buffers,
bool
isSubsetColl);
47
48
/**
49
* Non copy-able, move-only class
50
*/
51
IrtRadiatorInfoCollectionData
(
const
IrtRadiatorInfoCollectionData
&) =
delete
;
52
IrtRadiatorInfoCollectionData
&
operator=
(
const
IrtRadiatorInfoCollectionData
&) =
delete
;
53
IrtRadiatorInfoCollectionData
(
IrtRadiatorInfoCollectionData
&& other) =
default
;
54
IrtRadiatorInfoCollectionData
&
operator=
(
IrtRadiatorInfoCollectionData
&& other) =
default
;
55
56
/**
57
* Destructor
58
*/
59
~IrtRadiatorInfoCollectionData
() =
default
;
60
61
void
clear
(
bool
isSubsetColl);
62
63
podio::CollectionWriteBuffers
getCollectionBuffers
(
bool
isSubsetColl);
64
65
void
prepareForWrite
(
bool
isSubsetColl);
66
67
void
prepareAfterRead
(uint32_t collectionID);
68
69
void
makeSubsetCollection
();
70
71
72
bool
setReferences
(
const
podio::ICollectionProvider* collectionProvider,
bool
isSubsetColl);
73
74
private
:
75
// members to handle 1-to-N-relations
76
77
// members to handle vector members
78
79
// I/O related buffers
80
podio::CollRefCollection m_refCollections{};
81
podio::VectorMembersInfo m_vecmem_info{};
82
std::unique_ptr<IrtRadiatorInfoDataContainer> m_data{
nullptr
};
83
};
84
85
86
}
// namespace edm4eic
87
88
89
#endif
IrtRadiatorInfo.h
IrtRadiatorInfoData.h
IrtRadiatorInfoObj.h
edm4eic::IrtRadiatorInfoCollectionData::getCollectionBuffers
podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl)
Definition
IrtRadiatorInfoCollectionData.cc:62
edm4eic::IrtRadiatorInfoCollectionData::IrtRadiatorInfoCollectionData
IrtRadiatorInfoCollectionData(IrtRadiatorInfoCollectionData &&other)=default
edm4eic::IrtRadiatorInfoCollectionData::IrtRadiatorInfoCollectionData
IrtRadiatorInfoCollectionData(const IrtRadiatorInfoCollectionData &)=delete
edm4eic::IrtRadiatorInfoCollectionData::IrtRadiatorInfoCollectionData
IrtRadiatorInfoCollectionData()
Definition
IrtRadiatorInfoCollectionData.cc:12
edm4eic::IrtRadiatorInfoCollectionData::operator=
IrtRadiatorInfoCollectionData & operator=(IrtRadiatorInfoCollectionData &&other)=default
edm4eic::IrtRadiatorInfoCollectionData::~IrtRadiatorInfoCollectionData
~IrtRadiatorInfoCollectionData()=default
edm4eic::IrtRadiatorInfoCollectionData::operator=
IrtRadiatorInfoCollectionData & operator=(const IrtRadiatorInfoCollectionData &)=delete
edm4eic::IrtRadiatorInfoCollectionData::makeSubsetCollection
void makeSubsetCollection()
Definition
IrtRadiatorInfoCollectionData.cc:124
edm4eic::IrtRadiatorInfoCollectionData::clear
void clear(bool isSubsetColl)
Definition
IrtRadiatorInfoCollectionData.cc:45
edm4eic::IrtRadiatorInfoCollectionData::setReferences
bool setReferences(const podio::ICollectionProvider *collectionProvider, bool isSubsetColl)
Definition
IrtRadiatorInfoCollectionData.cc:105
edm4eic::IrtRadiatorInfoCollectionData::prepareForWrite
void prepareForWrite(bool isSubsetColl)
Definition
IrtRadiatorInfoCollectionData.cc:71
edm4eic::IrtRadiatorInfoCollectionData::prepareAfterRead
void prepareAfterRead(uint32_t collectionID)
Definition
IrtRadiatorInfoCollectionData.cc:90
edm4eic::IrtRadiatorInfoCollectionData::entries
IrtRadiatorInfoObjPointerContainer entries
Definition
IrtRadiatorInfoCollectionData.h:36
edm4eic
Definition
CalorimeterHit.cc:17
edm4eic::IrtRadiatorInfoObjPointerContainer
std::deque< IrtRadiatorInfoObj * > IrtRadiatorInfoObjPointerContainer
Definition
IrtRadiatorInfoCollectionData.h:23
edm4eic::IrtRadiatorInfoDataContainer
std::vector< IrtRadiatorInfoData > IrtRadiatorInfoDataContainer
Definition
IrtRadiatorInfoCollectionData.h:24
build
edm4eic
IrtRadiatorInfoCollectionData.h
Generated by
1.17.0