ATLAS Offline Software
CondProxyProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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*/
17 
18 // Forward declarations
19 namespace pool {
20  class ICollectionCursor;
21 }
22 class ISvcLocator;
24 class StoreGateSvc;
25 class IAthenaPoolCnvSvc;
26 
31 public: // Constructor and Destructor
33  CondProxyProvider(const std::string& name, ISvcLocator* pSvcLocator);
35  virtual ~CondProxyProvider();
36 
38  virtual StatusCode initialize();
40  virtual StatusCode finalize();
42  virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvInterface);
43 
48 
51 
56  const EventContext& ctx);
57 
58 private: // data
60 
61  mutable PoolCollectionConverter* m_poolCollectionConverter ATLAS_THREAD_SAFE;
62  unsigned int m_contextId;
63 
64 private: // properties
66  StringArrayProperty m_inputCollectionsProp
67  { this, "InputCollections", {}, "Files to read", "OrderedSet<std::string>" };
68  mutable std::vector<std::string>::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE;
69 
70 private: // internal helper functions
72  PoolCollectionConverter* getCollectionCnv();
73 
74 };
75 
76 #endif
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:53
PoolCollectionConverter
This class provides an interface to POOL collections.
Definition: PoolCollectionConverter.h:27
initialize
void initialize()
Definition: run_EoverP.cxx:894
IAddressProvider::updateAddress
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *pTAd, const EventContext &ctx)=0
update a transient Address The ctx argument will give the current event information.
pool
pool namespace
Definition: libname.h:15
SG::TransientAddress
Definition: TransientAddress.h:32
CondProxyProvider::ATLAS_THREAD_SAFE
PoolCollectionConverter *m_poolCollectionConverter ATLAS_THREAD_SAFE
Definition: CondProxyProvider.h:61
IAddressProvider::loadAddresses
virtual StatusCode loadAddresses(StoreID::type, tadList &)
get all new addresses from Provider for this Event.
Definition: IAddressProvider.h:42
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
CondProxyProvider::m_contextId
unsigned int m_contextId
Definition: CondProxyProvider.h:62
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthService
Definition: AthService.h:32
IAddressProvider
interface for IOA providers
Definition: IAddressProvider.h:28
CondProxyProvider::m_athenaPoolCnvSvc
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Definition: CondProxyProvider.h:59
ATLAS_CHECK_THREAD_SAFETY
#define ATLAS_CHECK_THREAD_SAFETY
Definition: checker_macros.h:210
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CondProxyProvider::ATLAS_THREAD_SAFE
std::vector< std::string >::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE
Definition: CondProxyProvider.h:68
CondProxyProvider
This class is the AddressProvider for conditions data.
Definition: CondProxyProvider.h:30
StoreID::type
type
Definition: StoreID.h:24
IAddressProvider::tadList
std::list< SG::TransientAddress * > tadList
Definition: IAddressProvider.h:32
AthService.h
IAddressProvider.h
IAddressProvider::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type, tadList &)
get all addresses from Provider : Called before Begin Event
Definition: IAddressProvider.h:36
ServiceHandle< IAthenaPoolCnvSvc >
IAthenaPoolCnvSvc
This class provides the interface between Athena and PoolSvc.
Definition: IAthenaPoolCnvSvc.h:36