ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthContainers
src
ThinningDecision.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3
*/
10
11
12
#include "
AthContainers/ThinningDecision.h
"
13
14
15
namespace
SG
{
16
17
24
ThinningDecision::ThinningDecision
(
const
DataLink<SG::AuxVectorBase>
&
link
)
25
:
m_link
(
link
)
26
{
27
if
(!
m_link
.isValid()) {
28
throw SG::ExcInvalidThinningTarget (link.classID(), link.dataID());
29
}
30
resize
(
m_link
->size_v());
31
}
32
33
40
ThinningDecision::ThinningDecision
(
const
std::string& key)
41
:
ThinningDecision
(
DataLink
<
SG
::
AuxVectorBase
> (key))
42
{
43
}
44
45
49
const
DataLink<SG::AuxVectorBase>
&
ThinningDecision::link
()
const
50
{
51
return
m_link
;
52
}
53
54
60
void
ThinningDecision::lock
()
61
{
62
buildIndexMap
();
63
}
64
65
66
}
// namespace SG
ThinningDecision.h
Hold thinning decisions for one container.
DataLink
Object reference supporting deferred reading from StoreGate.
Definition
AthLinks/DataLink.h:93
SG::AuxVectorBase
Manage index tracking and synchronization of auxiliary data.
Definition
AuxVectorBase.h:98
SG::ThinningDecisionBase::buildIndexMap
void buildIndexMap()
Build the index map.
Definition
ThinningDecisionBase.cxx:240
SG::ThinningDecisionBase::resize
void resize(const size_t size)
Change the number of elements.
Definition
ThinningDecisionBase.cxx:33
SG::ThinningDecision::ThinningDecision
ThinningDecision(const DataLink< SG::AuxVectorBase > &link)
Constructor.
Definition
ThinningDecision.cxx:24
SG::ThinningDecision::link
const DataLink< SG::AuxVectorBase > & link() const
Return link to object being thinned.
Definition
ThinningDecision.cxx:49
SG::ThinningDecision::m_link
DataLink< SG::AuxVectorBase > m_link
Link to the object being thinned.
Definition
ThinningDecision.h:76
SG::ThinningDecision::lock
virtual void lock() override
Called when the object is locked in SG.
Definition
ThinningDecision.cxx:60
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0