ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
EventSelectorAthenaPool
src
CondProxyProvider.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CONDPROXYPROVIDER_H
6
#define CONDPROXYPROVIDER_H
7
12
13
#include "GaudiKernel/ServiceHandle.h"
14
#include "Gaudi/Property.h"
/*no forward decl: typedef*/
15
#include "
AthenaKernel/IAddressProvider.h
"
16
#include "
AthenaBaseComps/AthService.h
"
17
#include "
AthenaPoolCnvSvc/IAthenaPoolCnvSvc.h
"
18
#include "
PoolSvc/IPoolSvc.h
"
19
#include <memory>
20
21
// Forward declarations
22
namespace
pool
{
23
class
ICollectionCursor
;
24
}
25
class
ISvcLocator;
26
class
PoolCollectionConverter
;
27
class
IPoolSvc
;
28
class
StoreGateSvc
;
29
33
class
CondProxyProvider
:
public
extends<AthService, IAddressProvider> {
34
public
:
// Constructor and Destructor
36
CondProxyProvider
(
const
std::string& name, ISvcLocator* pSvcLocator);
38
virtual
~CondProxyProvider
();
39
41
virtual
StatusCode
initialize
()
override
;
42
46
virtual
StatusCode
preLoadAddresses
(
StoreID::type
storeID,
IAddressProvider::tadList
& tads)
override
;
47
49
virtual
StatusCode
loadAddresses
(
StoreID::type
storeID,
IAddressProvider::tadList
& tads)
override
;
50
54
virtual
StatusCode
updateAddress
(
StoreID::type
storeID,
SG::TransientAddress
* tad,
55
const
EventContext& ctx)
override
;
56
57
private
:
// data
58
ServiceHandle<IAthenaPoolCnvSvc>
m_athenaPoolCnvSvc
{
this
,
"ConversionService"
,
"AthenaPoolCnvSvc"
};
59
ServiceHandle<IPoolSvc>
m_poolSvc
{
this
,
"PoolSvc"
,
"PoolSvc"
};
60
unsigned
int
m_contextId
;
61
62
private
:
// properties
64
Gaudi::Property<std::vector<std::string>>
m_inputCollectionsProp
65
{
this
,
"InputCollections"
, {},
"Files to read"
,
"OrderedSet<std::string>"
};
66
std::vector<std::string>::const_iterator
m_inputCollectionsIterator
{};
67
68
private
:
// internal helper functions
70
std::unique_ptr<PoolCollectionConverter>
getCollectionCnv
();
71
};
72
73
#endif
AthService.h
IAddressProvider.h
IAthenaPoolCnvSvc.h
This file contains the class definition for the IAthenaPoolCnvSvc interface class.
IPoolSvc.h
This file contains the class definition for the IPoolSvc interface class.
CondProxyProvider::m_contextId
unsigned int m_contextId
Definition
CondProxyProvider.h:60
CondProxyProvider::getCollectionCnv
std::unique_ptr< PoolCollectionConverter > getCollectionCnv()
Return pointer to new PoolCollectionConverter.
Definition
CondProxyProvider.cxx:144
CondProxyProvider::updateAddress
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx) override
Update a transient address.
Definition
CondProxyProvider.cxx:138
CondProxyProvider::m_poolSvc
ServiceHandle< IPoolSvc > m_poolSvc
Definition
CondProxyProvider.h:59
CondProxyProvider::initialize
virtual StatusCode initialize() override
Required of all Gaudi Services.
Definition
CondProxyProvider.cxx:41
CondProxyProvider::m_inputCollectionsIterator
std::vector< std::string >::const_iterator m_inputCollectionsIterator
Definition
CondProxyProvider.h:66
CondProxyProvider::loadAddresses
virtual StatusCode loadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Implementation of the loadAddresses function without any functionality.
Definition
CondProxyProvider.cxx:133
CondProxyProvider::~CondProxyProvider
virtual ~CondProxyProvider()
Destructor.
Definition
CondProxyProvider.cxx:38
CondProxyProvider::m_athenaPoolCnvSvc
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Definition
CondProxyProvider.h:58
CondProxyProvider::CondProxyProvider
CondProxyProvider(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition
CondProxyProvider.cxx:32
CondProxyProvider::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Get all addresses from provider.
Definition
CondProxyProvider.cxx:64
CondProxyProvider::m_inputCollectionsProp
Gaudi::Property< std::vector< std::string > > m_inputCollectionsProp
InputCollections, vector with names of the input collections.
Definition
CondProxyProvider.h:65
IAddressProvider::tadList
std::list< SG::TransientAddress * > tadList
Definition
IAddressProvider.h:32
IPoolSvc
This class provides the interface to the APR persistency software.
Definition
IPoolSvc.h:35
PoolCollectionConverter
This class provides an interface to POOL collections.
Definition
PoolCollectionConverter.h:28
SG::TransientAddress
Definition
TransientAddress.h:34
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
StoreID::type
type
Definition
StoreID.h:24
pool::ICollectionCursor
An interface used to navigate the result of a query on a collection.
Definition
ICollectionCursor.h:22
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0