ATLAS Offline Software
CondContMaker.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration.
3  */
4 
5 #ifndef ATHENAKERNEL_CONDCONTMAKER_H
6 #define ATHENAKERNEL_CONDCONTMAKER_H 1
7 
12 #include "GaudiKernel/DataObjID.h"
13 
14 class CondContBase;
15 namespace Athena {
16  class IRCUSvc;
17 }
18 
19 namespace CondContainer {
20  template <typename T>
21  class CondContMaker : public ICondContMaker {
22  public:
25  }
26 
27  virtual
29  Create(Athena::IRCUSvc& rcusvc, const CLID& clid, const std::string& key) const {
30  DataObjID id(clid,key);
31 
33  (SG::asStorable (new CondCont<T>(rcusvc, id)));
34  }
35  };
36 }
37 
38 
39 #endif
40 
CondContFactory.h
CondContainer::CondContFactory::Instance
static CondContFactory & Instance()
Definition: CondContFactory.cxx:14
StorableConversions.h
convert to and from a SG storable
SG::asStorable
DataObject * asStorable(T *pObject)
Definition: StorableConversions.h:158
CondContainer::CondContFactory::regMaker
void regMaker(const CLID &clid, ICondContMaker *maker)
Definition: CondContFactory.cxx:19
CondContainer::CondContMaker
Definition: CondContMaker.h:21
ICondContMaker.h
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
CondContBase
Base class for all conditions containers.
Definition: CondCont.h:140
CondContainer
Definition: CondContFactory.h:19
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
Athena::IRCUSvc
Interface for RCU service.
Definition: IRCUSvc.h:40
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
CondContainer::CondContMaker::Create
virtual SG::DataObjectSharedPtr< DataObject > Create(Athena::IRCUSvc &rcusvc, const CLID &clid, const std::string &key) const
Definition: CondContMaker.h:29
CondCont
Hold mapping of ranges to condition objects.
Definition: CondCont.h:811
CondContainer::CondContMaker::CondContMaker
CondContMaker()
Definition: CondContMaker.h:23
SG::DataObjectSharedPtr
Smart pointer to manage DataObject reference counts.
Definition: DataObjectSharedPtr.h:46
CondContainer::ICondContMaker
Definition: ICondContMaker.h:22
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37