ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerCoreComps
src
SGDataVectorGetterTool.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id: SGDataVectorGetterTool.h 790090 2016-12-16 05:31:29Z ssnyder $
14
15
16
#ifndef D3PDMAKERCORECOMPS_SGDATAVECTORGETTERTOOL_H
17
#define D3PDMAKERCORECOMPS_SGDATAVECTORGETTERTOOL_H
18
19
20
#include "
D3PDMakerUtils/CollectionGetterTool.h
"
21
#include "
D3PDMakerUtils/SGGetterImpl.h
"
22
#include "
D3PDMakerUtils/TypeConverter.h
"
23
#include "
AthContainers/DataVector.h
"
24
#include "
AthenaPoolCnvSvc/IAthenaPoolCnvSvc.h
"
25
#include "
AthenaKernel/errorcheck.h
"
26
#include "GaudiKernel/ServiceHandle.h"
27
28
29
namespace
DataModel_detail
{
30
class
DVLInfoBase
;
31
}
// namespace DataModel_detail
32
33
34
namespace
D3PD
{
35
36
53
class
SGDataVectorGetterTool
54
:
public
SGGetterImpl
,
public
CollectionGetterToolImpl
55
{
56
public
:
63
SGDataVectorGetterTool
(
const
std::string&
type
,
64
const
std::string& name,
65
const
IInterface* parent);
66
67
69
virtual
StatusCode
initialize
();
70
71
73
virtual
StatusCode
finalize
();
74
75
81
virtual
const
std::type_info&
elementTypeinfo
()
const
;
82
83
91
virtual
StatusCode
reset
(
bool
allowMissing =
false
);
92
93
99
virtual
const
void
*
nextUntyped
();
100
101
112
virtual
size_t
sizeHint
(
bool
allowMissing =
false
);
113
114
115
private
:
117
ServiceHandle<IAthenaPoolCnvSvc>
m_athenaPoolCnvSvc
;
118
120
const
DataModel_detail::DVLInfoBase
*
getInfo
(
const
std::type_info& ti);
121
123
const
DataModel_detail::DVLInfoBase
*
m_info
;
124
126
DataModel_detail::DVLIteratorBase
*
m_it
;
127
131
TypeConverter
m_converter
;
132
};
133
134
135
}
// namespace D3PD
136
137
138
#endif
// not D3PDMAKERCORECOMPS_SGCOLLECTIONGETTERTOOL_H
CollectionGetterTool.h
Type-safe wrapper for collection getter tools.
errorcheck.h
Helpers for checking error return status codes and reporting errors.
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
IAthenaPoolCnvSvc.h
This file contains the class definition for the IAthenaPoolCnvSvc interface class.
SGGetterImpl.h
Common object getter code for retrieving from StoreGate.
TypeConverter.h
Helper to convert pointers.
D3PD::CollectionGetterToolImpl::CollectionGetterToolImpl
CollectionGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
CollectionGetterToolImpl.cxx:28
D3PD::SGDataVectorGetterTool::m_athenaPoolCnvSvc
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Used to auto-load converters, if needed.
Definition
SGDataVectorGetterTool.h:117
D3PD::SGDataVectorGetterTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition
SGDataVectorGetterTool.cxx:46
D3PD::SGDataVectorGetterTool::m_converter
TypeConverter m_converter
Converter from the pointer that we get from StoreGate to a pointer to the collection over which we it...
Definition
SGDataVectorGetterTool.h:131
D3PD::SGDataVectorGetterTool::sizeHint
virtual size_t sizeHint(bool allowMissing=false)
Return an estimate of the number of elements in the iteration.
Definition
SGDataVectorGetterTool.cxx:185
D3PD::SGDataVectorGetterTool::getInfo
const DataModel_detail::DVLInfoBase * getInfo(const std::type_info &ti)
Retrieve DataVector/List information for this collection.
Definition
SGDataVectorGetterTool.cxx:199
D3PD::SGDataVectorGetterTool::elementTypeinfo
virtual const std::type_info & elementTypeinfo() const
Return the element type of the collection.
Definition
SGDataVectorGetterTool.cxx:119
D3PD::SGDataVectorGetterTool::finalize
virtual StatusCode finalize()
Standard Gaudi finalize method.
Definition
SGDataVectorGetterTool.cxx:106
D3PD::SGDataVectorGetterTool::nextUntyped
virtual const void * nextUntyped()
Return a pointer to the next element in the collection.
Definition
SGDataVectorGetterTool.cxx:167
D3PD::SGDataVectorGetterTool::m_it
DataModel_detail::DVLIteratorBase * m_it
Current iterator over the collection.
Definition
SGDataVectorGetterTool.h:126
D3PD::SGDataVectorGetterTool::SGDataVectorGetterTool
SGDataVectorGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
SGDataVectorGetterTool.cxx:30
D3PD::SGDataVectorGetterTool::m_info
const DataModel_detail::DVLInfoBase * m_info
DataVector/List information for this collection.
Definition
SGDataVectorGetterTool.h:123
D3PD::SGGetterImpl::SGGetterImpl
SGGetterImpl(const std::string &name, ServiceHandle< StoreGateSvc > &sg)
Constructor.
Definition
SGGetterImpl.cxx:26
D3PD::TypeConverter
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Definition
TypeConverter.h:45
DataModel_detail::DVLInfoBase
Definition
DVLInfo.h:68
DataModel_detail::DVLIteratorBase
Helper to iterate over a DV container.
Definition
DVLInfo.h:32
ServiceHandle
Definition
ClusterMakerTool.h:36
reset
const std::string reset
Definition
comparitor.cxx:61
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
DataModel_detail
Definition
CompareAndPrint.h:15
type
Generated on
for ATLAS Offline Software by
1.17.0