6 import AthenaPython.PyAthena 
as PyAthena
 
    7 StatusCode = PyAthena.StatusCode
 
   10     """simple algorithm to test the AthDictLoaderSvc capabilities 
   13     def __init__ (self, name="AthDictLoaderTestAlg", **kw):
 
   15         super (AthDictLoaderTestAlg, self).
__init__(**kw)
 
   20              'std::basic_string<char>',
 
   21              'std::vector<std::string>',
 
   22              'std::vector<std::basic_string<char> >',
 
   23              'std::vector<double>',
 
   26              'std::vector<std::string,std::allocator<std::string> >',
 
   28              'std::map<std::string,std::string>',
 
   29              'std::map<std::string, std::string>',
 
   30              'std::map<std::basic_string<char>,std::basic_string<char> >',
 
   32              'std::pair<std::string,std::string>',
 
   33              'std::pair<std::string, std::string>',
 
   34              'std::pair<std::basic_string<char>,std::basic_string<char> >',
 
   35              'std::pair<std::basic_string<char>, std::basic_string<char> >',
 
   36              'std::set<std::string>',
 
   37              'std::set<std::basic_string<char> >',
 
   38              'std::set<unsigned int>',
 
   39              'DataVector<TruthParticle>',
 
   40              'INavigable4Momentum',
 
   41              'INavigable4MomentumCollection',
 
   45              'ElementLink_p1<unsigned int>',
 
   52         self.
msg.info (
'retrieving the dictionary loader svc...')
 
   53         self.
dict_svc = PyAthena.py_svc (
'AthDictLoaderSvc',
 
   54                                          iface=
'IDictLoaderSvc')
 
   56             self.
msg.error (
'could not retrieve the dict. loader svc')
 
   57             return StatusCode.Failure
 
   58         return StatusCode.Success
 
   63         _info (
'testing loading of dictionaries...')
 
   67             _info (
'--> [%s]', name)
 
   68             type_name = self.
dict_svc.load_type (name).Name(DICT_SCOPE)
 
   69             _info (
'<-- [%s]', type_name)
 
   72                 self.
msg.error (
'problem loading dict for type [%s]', name)
 
   74             self.
msg.error (
'problem occured !')
 
   75             return StatusCode.Failure
 
   76         _info (
'test of dictionary loading SUCCEEDED')
 
   77         return StatusCode.Success
 
   80         return StatusCode.Success
 
   83 from AthenaCommon.AlgSequence 
import AlgSequence