ATLAS Offline Software
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 
13 #include "GaudiKernel/ServiceHandle.h"
14 #include "Gaudi/Property.h" /*no forward decl: typedef*/
18 
19 // Forward declarations
20 namespace pool {
21  class ICollectionCursor;
22 }
23 class ISvcLocator;
25 class StoreGateSvc;
26 
30 class CondProxyProvider : public extends<AthService, IAddressProvider> {
31 public: // Constructor and Destructor
33  CondProxyProvider(const std::string& name, ISvcLocator* pSvcLocator);
35  virtual ~CondProxyProvider();
36 
38  virtual StatusCode initialize() override;
40  virtual StatusCode finalize() override;
41 
45  virtual StatusCode preLoadAddresses(StoreID::type storeID, IAddressProvider::tadList& tads) override;
46 
48  virtual StatusCode loadAddresses(StoreID::type storeID, IAddressProvider::tadList& tads) override;
49 
54  const EventContext& ctx) override;
55 
56 private: // data
57  ServiceHandle<IAthenaPoolCnvSvc> m_athenaPoolCnvSvc{this, "ConversionService", "AthenaPoolCnvSvc"};
58  unsigned int m_contextId;
59 
60 private: // properties
62  StringArrayProperty m_inputCollectionsProp
63  { this, "InputCollections", {}, "Files to read", "OrderedSet<std::string>" };
64  mutable std::vector<std::string>::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE {};
65 
66 private: // internal helper functions
69 };
70 
71 #endif
CondProxyProvider::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Get all addresses from provider.
Definition: CondProxyProvider.cxx:71
IAthenaPoolCnvSvc.h
This file contains the class definition for the IAthenaPoolCnvSvc interface class.
PoolCollectionConverter
This class provides an interface to POOL collections.
Definition: PoolCollectionConverter.h:27
pool
pool namespace
Definition: libname.h:15
SG::TransientAddress
Definition: TransientAddress.h:32
CondProxyProvider::updateAddress
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx) override
Update a transient address.
Definition: CondProxyProvider.cxx:149
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:120
CondProxyProvider::m_contextId
unsigned int m_contextId
Definition: CondProxyProvider.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CondProxyProvider::loadAddresses
virtual StatusCode loadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Implementation of the loadAddresses function without any functionality.
Definition: CondProxyProvider.cxx:144
CondProxyProvider::m_athenaPoolCnvSvc
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Definition: CondProxyProvider.h:57
CondProxyProvider::initialize
virtual StatusCode initialize() override
Required of all Gaudi Services.
Definition: CondProxyProvider.cxx:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
CondProxyProvider::getCollectionCnv
PoolCollectionConverter * getCollectionCnv()
Return pointer to new PoolCollectionConverter.
Definition: CondProxyProvider.cxx:155
CondProxyProvider::ATLAS_THREAD_SAFE
std::vector< std::string >::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE
Definition: CondProxyProvider.h:64
CondProxyProvider
This class is the AddressProvider for conditions data.
Definition: CondProxyProvider.h:30
CondProxyProvider::finalize
virtual StatusCode finalize() override
Required of all Gaudi Services.
Definition: CondProxyProvider.cxx:63
StoreID::type
type
Definition: StoreID.h:24
CondProxyProvider::~CondProxyProvider
virtual ~CondProxyProvider()
Destructor.
Definition: CondProxyProvider.cxx:38
CondProxyProvider::m_inputCollectionsProp
StringArrayProperty m_inputCollectionsProp
InputCollections, vector with names of the input collections.
Definition: CondProxyProvider.h:63
IAddressProvider::tadList
std::list< SG::TransientAddress * > tadList
Definition: IAddressProvider.h:32
AthService.h
CondProxyProvider::CondProxyProvider
CondProxyProvider(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition: CondProxyProvider.cxx:32
IAddressProvider.h
ServiceHandle< IAthenaPoolCnvSvc >