ATLAS Offline Software
CollectionGetterFilterToolImpl.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
16 
17 
18 namespace D3PD {
19 
20 
28  (const std::string& type,
29  const std::string& name,
30  const IInterface* parent)
32  m_getter (this)
33 {
34  declareProperty ("Getter", m_getter,
35  "Getter defining the sequence to filter.");
36 }
37 
38 
39 
44 {
45  CHECK( m_getter.retrieve() );
46  CHECK( m_getter->configureElementTypeinfo (elementTypeinfo()) );
48 }
49 
50 
58 StatusCode CollectionGetterFilterToolImpl::reset (bool allowMissing/*= false*/)
59 {
60  return m_getter->reset (allowMissing);
61 }
62 
63 
74 size_t CollectionGetterFilterToolImpl::sizeHint (bool allowMissing /*= false*/)
75 {
76  return m_getter->sizeHint (allowMissing);
77 }
78 
79 
83 const std::type_info& CollectionGetterFilterToolImpl::typeinfo() const
84 {
85  return m_getter->typeinfo();
86 }
87 
88 
97 const void*
98 CollectionGetterFilterToolImpl::getUntyped (bool allowMissing /*= false*/)
99 {
100  return m_getter->getUntyped (allowMissing);
101 }
102 
103 
113 void
115 {
116  return m_getter->releaseObjectUntyped (p);
117 }
118 
119 
120 } // namespace D3PD
D3PD::CollectionGetterFilterToolImpl::sizeHint
virtual size_t sizeHint(bool allowMissing=false)
Return an estimate of the number of elements in the iteration.
Definition: CollectionGetterFilterToolImpl.cxx:74
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::CollectionGetterFilterToolImpl::reset
virtual StatusCode reset(bool allowMissing=false)
Reset the iteration to the start of the collection.
Definition: CollectionGetterFilterToolImpl.cxx:58
D3PD::CollectionGetterFilterToolImpl::typeinfo
virtual const std::type_info & typeinfo() const
Return the type of object retrieved by this tool.
Definition: CollectionGetterFilterToolImpl.cxx:83
D3PD::CollectionGetterFilterToolImpl::m_getter
ToolHandle< ICollectionGetterTool > m_getter
Property: The getter defining the sequence to filter.
Definition: CollectionGetterFilterToolImpl.h:110
D3PD::CollectionGetterFilterToolImpl::CollectionGetterFilterToolImpl
CollectionGetterFilterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: CollectionGetterFilterToolImpl.cxx:28
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::CollectionGetterFilterToolImpl::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition: CollectionGetterFilterToolImpl.cxx:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::CollectionGetterToolImpl::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition: CollectionGetterToolImpl.cxx:45
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
CollectionGetterFilterToolImpl.h
Non-template parts of CollectionGetterFilterTool.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::CollectionGetterFilterToolImpl::getUntyped
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
Definition: CollectionGetterFilterToolImpl.cxx:98
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
D3PD::CollectionGetterFilterToolImpl::releaseObjectUntyped
virtual void releaseObjectUntyped(const void *p)
Release an object retrieved from the getter.
Definition: CollectionGetterFilterToolImpl.cxx:114
D3PD::CollectionGetterToolImpl
Non-template parts of CollectionGetterTool.
Definition: CollectionGetterToolImpl.h:42