the canonical implementation of ISelectionNameSvc
More...
#include <SelectionNameSvc.h>
the canonical implementation of ISelectionNameSvc
Definition at line 25 of file SelectionNameSvc.h.
◆ SelectionNameSvc()
CP::SelectionNameSvc::SelectionNameSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
standard constructor
- Guarantee
- strong
- Failures
- out of memory II
Definition at line 27 of file SelectionNameSvc.cxx.
33 declareServiceInterface<ISelectionNameSvc>();
◆ addAcceptInfo()
Implements CP::ISelectionNameSvc.
Definition at line 47 of file SelectionNameSvc.cxx.
51 ANA_MSG_DEBUG (
"adding selection " << decorName <<
" for object " << objectName);
53 if (subMap.find (objectName) != subMap.end())
55 ANA_MSG_ERROR (
"object " << objectName <<
" already has a selection named " << decorName);
56 return StatusCode::FAILURE;
58 subMap[objectName] = acceptInfo;
61 ANA_MSG_ERROR (
"failed to add selection " << decorName <<
" for object " << objectName);
62 return StatusCode::FAILURE;
64 return StatusCode::SUCCESS;
◆ DeclareInterfaceID()
◆ declareServiceInterface()
template<typename T >
void asg::AsgService::declareServiceInterface |
|
inherited |
add the given interface to the list of interfaces
Definition at line 76 of file AsgService.h.
78 #ifndef XAOD_STANDALONE
◆ finalize()
StatusCode asg::AsgService::finalize |
( |
| ) |
|
|
virtualinherited |
◆ getAcceptInfo()
Implements CP::ISelectionNameSvc.
Definition at line 69 of file SelectionNameSvc.cxx.
73 ANA_MSG_DEBUG (
"querying selection " << decorName <<
" for object " << objectName);
77 std::string myObjectName = objectName;
78 while (!myObjectName.empty())
80 auto result = subMap->second.find (myObjectName);
81 if (
result != subMap->second.end())
83 ANA_MSG_DEBUG (
"found selection " << decorName <<
" for object " << objectName <<
" using name " << myObjectName);
86 myObjectName =
m_sysSvc->getCopySource (myObjectName);
◆ initialize()
StatusCode CP::SelectionNameSvc::initialize |
( |
| ) |
|
|
overridevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ print()
void asg::AsgService::print |
( |
| ) |
const |
|
virtualinherited |
◆ queryInterface()
StatusCode asg::AsgService::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvi |
|
) |
| |
|
virtualinherited |
query interface for gaudi
Definition at line 57 of file AsgService.cxx.
62 if (riid == interface.first())
64 *ppvi = interface.second (
this);
66 return StatusCode::SUCCESS;
69 return AsgServiceBase::queryInterface (riid, ppvi);
◆ m_acceptInfoMap
std::unordered_map<std::string, std::unordered_map<std::string, asg::AcceptInfo> > CP::SelectionNameSvc::m_acceptInfoMap |
|
private |
◆ m_interfaces
std::vector<std::pair<const InterfaceID& (*)(),void *(*)(AsgService*)> > asg::AsgService::m_interfaces |
|
privateinherited |
list of interfaces we have
Definition at line 68 of file AsgService.h.
◆ m_sysSvc
The documentation for this class was generated from the following files: