42 "test access to objects (DataObject and ContainedObject)"};
61 if ( !p )
return "Access FAILED.";
73 for (
size_t j = 1; j < flg.
size(); j++ ) {
74 if ( !flg[j - 1] && flg[j] )
86 log <<
" [No Address]";
95 log <<
"Access test FAILED";
98 log <<
" (Unloaded) ";
105 log <<
" [" << numObj <<
"]";
109 case CLID_ObjectList >> 16:
112 case CLID_ObjectVector >> 16:
115 case ( CLID_ObjectVector + 0x00030000 ) >> 16:
118 case ( CLID_ObjectVector + 0x00040000 ) >> 16:
121 case ( CLID_ObjectVector + 0x00050000 ) >> 16:
127 log <<
"Access test FAILED";
140 StatusCode sc = mgr->objectLeaves( pObj, leaves );
144 for (
auto i = leaves.
begin(); i != leaves.
end(); i++ ) {
149 const std::string* par1 = ( *i )->address()->par();
150 if ( par1 && par0[0] != par1[0] )
continue;
186 error() <<
"Failed to retrieve IDataManagerSvc interface." <<
endmsg;
189 m_rootName = mgr->rootName();
205 if (
m_frequency * m_total > m_frqPrint ) m_frqPrint++;
210 if ( isvc ) store_name = isvc->name();
213 <<
"@" << store_name <<
"]:" <<
endmsg;
220 error() <<
"Cannot retrieve \"/Event\"!" <<
endmsg;
constexpr static const auto FAILURE
StatusCode initialize() override
Initialize.
Gaudi::Property< bool > m_exploreRelations
virtual const CLID & clID() const =0
Retrieve class information from link.
Implementation of property with value of concrete type.
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
Definition of the templated KeyedObject class.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
SmartIF< IDataProviderSvc > m_dataSvc
Reference to data provider service.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
virtual StatusCode findObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Find object identified by its directory entry.
Gaudi::Property< bool > m_accessForeign
ObjectVector is one of the basic Gaudi container classes capable of being registered in Data Stores...
template class KeyedContainer, KeyedContainer.h
virtual const name_type & name() const =0
Name of the directory (or key)
StatusCode execute() override
Execute procedure.
Gaudi::Property< std::string > m_dataSvcName
virtual const std::string * par() const =0
Retrieve String parameters.
long m_total
Internal counter to trigger printouts.
Gaudi::Property< double > m_frequency
ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores...
Gaudi::Property< bool > m_testAccess
#define DECLARE_COMPONENT(type)
TYPE * get() const
Get interface pointer.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
SmartIF< IFace > as() const
return a new SmartIF instance to another interface
virtual const CLID & clID() const
Retrieve reference to class definition structure.
This class is used for returning status codes from appropriate routines.
std::string m_rootName
Name of the root leaf (obtained at initialize)
virtual IDataProviderSvc * dataSvc() const =0
Retrieve pointer to Transient Store.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
virtual long svcType() const =0
Retrieve service type.
virtual StatusCode retrieveObject(IRegistry *pDirectory, boost::string_ref path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
unsigned int CLID
Class ID definition.
void printObj(IRegistry *pReg, std::vector< bool > &flg)
Print datastore leaf.
Gaudi::Property< long > m_print
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
constexpr static const auto SUCCESS
virtual DataObject * object() const =0
Retrieve object behind the link.
void explore(IRegistry *pObj, std::vector< bool > &flg)
Base class from which all concrete algorithm classes should be derived.
StatusCode finalize() override
Finalize.
KeyedObjectManager Class to manage keyed objects.
A small class used to access easily (and efficiently) data items residing in data stores...
Gaudi::Property< long > m_printMissing
Small algorith, which traverses the data store and prints generic information about all leaves...
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
ObjectContainerBase is the base class for Gaudi container classes.
virtual size_type numberOfObjects() const =0
Number of objects in the container.
StatusCode service(const std::string &name, T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
long m_frqPrint
Internal counter to adjust printout frequency.
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
A DataObject is the base class of any identifiable object on any data store.
Gaudi::Property< bool > m_load
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.