ATLAS Offline Software
MuonCalibStreamAddressProviderSvc.h
Go to the documentation of this file.
1 #ifndef MUONCALIBSTREAMCNVSVCBASE_MUONCALIBSTREAMADDRESSPROVIDERSVC_H
2 #define MUONCALIBSTREAMCNVSVCBASE_MUONCALIBSTREAMADDRESSPROVIDERSVC_H
3 
4 #include <map>
5 #include <set>
6 
9 #include "GaudiKernel/ClassID.h"
11 
12 // Forward declarations
13 
14 template <class TYPE> class SvcFactory;
15 
16 class MuonCalibStreamAddressProviderSvc : public virtual AthService, public virtual IAddressProvider {
19 
20 public:
21  MuonCalibStreamAddressProviderSvc(const std::string &name, ISvcLocator *svcloc);
23 
24  // Service initialize
25  virtual StatusCode initialize();
26 
27  // IAddressProvider interface.
28  // preload the address
30 
32  virtual StatusCode updateAddress(StoreID::type tp, SG::TransientAddress *tad, const EventContext &);
33 
34 private:
35  // type and name of the objects to create the address for.
36  std::vector<std::string> m_typeNames;
38  std::map<CLID, std::set<std::string> > m_clidKey;
39 };
40 #endif
MuonCalibStreamAddressProviderSvc::m_dataSvc
IMuonCalibStreamDataProviderSvc * m_dataSvc
Definition: MuonCalibStreamAddressProviderSvc.h:37
MuonCalibStreamAddressProviderSvc::initialize
virtual StatusCode initialize()
Initialize the service.
Definition: MuonCalibStreamAddressProviderSvc.cxx:26
IMuonCalibStreamDataProviderSvc.h
MuonCalibStreamAddressProviderSvc::MuonCalibStreamAddressProviderSvc
MuonCalibStreamAddressProviderSvc(const std::string &name, ISvcLocator *svcloc)
Standard constructor.
Definition: MuonCalibStreamAddressProviderSvc.cxx:12
SvcFactory
Definition: AthCnvSvc.h:28
MuonCalibStreamAddressProviderSvc::~MuonCalibStreamAddressProviderSvc
virtual ~MuonCalibStreamAddressProviderSvc()
Standard Destructor.
Definition: MuonCalibStreamAddressProviderSvc.cxx:23
query_example.tlist
tlist
Definition: query_example.py:25
SG::TransientAddress
Definition: TransientAddress.h:32
ParticleTest.tp
tp
Definition: ParticleTest.py:25
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
MuonCalibStreamAddressProviderSvc
Definition: MuonCalibStreamAddressProviderSvc.h:16
MuonCalibStreamAddressProviderSvc::updateAddress
virtual StatusCode updateAddress(StoreID::type tp, SG::TransientAddress *tad, const EventContext &)
update an existing transient Address
Definition: MuonCalibStreamAddressProviderSvc.cxx:68
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonCalibStreamAddressProviderSvc::m_clidKey
std::map< CLID, std::set< std::string > > m_clidKey
Definition: MuonCalibStreamAddressProviderSvc.h:38
StoreID::type
type
Definition: StoreID.h:24
IAddressProvider::tadList
std::list< SG::TransientAddress * > tadList
Definition: IAddressProvider.h:32
AthService.h
IAddressProvider.h
MuonCalibStreamAddressProviderSvc::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type id, tadList &tlist)
get all addresses from Provider : Called before Begin Event
Definition: MuonCalibStreamAddressProviderSvc.cxx:32
IMuonCalibStreamDataProviderSvc
Definition: IMuonCalibStreamDataProviderSvc.h:13
MuonCalibStreamAddressProviderSvc::m_typeNames
std::vector< std::string > m_typeNames
Definition: MuonCalibStreamAddressProviderSvc.h:36