The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
StoreExplorerAlg Class Reference

Small algorith, which traverses the data store and prints generic information about all leaves, which can be loaded/accessed. More...

Inheritance diagram for StoreExplorerAlg:
Collaboration diagram for StoreExplorerAlg:

Public Member Functions

template<class T>
std::string access (T *p)
 
void printObj (IRegistry *pReg, std::vector< bool > &flg)
 Print datastore leaf.
 
void explore (IRegistry *pObj, std::vector< bool > &flg)
 
StatusCode initialize () override
 Initialize.
 
StatusCode finalize () override
 Finalize.
 
StatusCode execute () override
 Execute procedure.
 
- Public Member Functions inherited from Algorithm
 LegacyAlgorithmAdapter (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 
- Public Member Functions inherited from Gaudi::details::LegacyAlgorithmAdapter
 LegacyAlgorithmAdapter (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 
const EventContextgetContext () const
 
bool isExecuted () const
 Has this algorithm been executed since the last reset?
 
void setExecuted (bool state) const
 Set the executed flag to the specified state.
 
bool filterPassed () const
 Did this algorithm pass or fail its filter criterion for the last event?
 
void setFilterPassed (bool state) const
 Set the filter passed flag to the specified state.
 
- Public Member Functions inherited from Gaudi::Algorithm
 Algorithm (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 Constructor.
 
StatusCode sysStart () override
 Reinitialization method invoked by the framework.
 
StatusCode sysInitialize () override
 Initialization method invoked by the framework.
 
StatusCode sysReinitialize () override
 Reinitialization method invoked by the framework.
 
StatusCode sysRestart () override
 Restart method invoked by the framework.
 
StatusCode sysExecute (const EventContext &ctx) override
 The actions to be performed by the algorithm on an event.
 
StatusCode sysStop () override
 System stop.
 
StatusCode sysFinalize () override
 System finalization.
 
const std::string & name () const override
 The identifying name of the algorithm object.
 
const Gaudi::StringKeynameKey () const override
 
const std::string & type () const override
 The type of the algorithm object.
 
void setType (std::string type) override
 
const std::string & version () const override
 
unsigned int index () const override
 
StatusCode configure () override
 Dummy implementation of IStateful::configure() method.
 
StatusCode terminate () override
 Dummy implementation of IStateful::terminate() method.
 
StatusCode initialize () override
 the default (empty) implementation of IStateful::initialize() method
 
StatusCode start () override
 the default (empty) implementation of IStateful::start() method
 
StatusCode stop () override
 the default (empty) implementation of IStateful::stop() method
 
StatusCode finalize () override
 the default (empty) implementation of IStateful::finalize() method
 
StatusCode reinitialize () override
 the default (empty) implementation of IStateful::reinitialize() method
 
StatusCode restart () override
 the default (empty) implementation of IStateful::restart() method
 
Gaudi::StateMachine::State FSMState () const override
 returns the current state of the algorithm
 
Gaudi::StateMachine::State targetFSMState () const override
 returns the state the algorithm will be in after the ongoing transition
 
bool isEnabled () const override
 Is this algorithm enabled or disabled?
 
bool isSequence () const override
 Are we a Sequence?
 
unsigned int errorCount () const
 Get the number of failures of the algorithm.
 
SmartIF< IServiceservice (std::string_view name, const bool createIf=true, const bool quiet=false) const
 Return a pointer to the service identified by name (or "type/name")
 
template<class T>
SmartIF< T > service (std::string_view name, bool createIf=true, bool quiet=false) const
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked.
 
SmartIF< IChronoStatSvc > & chronoSvc () const
 The standard Chrono & Stat service, Return a pointer to the service if present.
 
SmartIF< IDataProviderSvc > & detSvc () const
 The standard detector data service.
 
SmartIF< IConversionSvc > & detCnvSvc () const
 The standard detector data persistency conversion service.
 
SmartIF< IDataProviderSvc > & eventSvc () const
 The standard event data service.
 
SmartIF< IDataProviderSvc > & evtSvc () const
 shortcut for method eventSvc
 
SmartIF< IConversionSvc > & eventCnvSvc () const
 The standard event data persistency conversion service.
 
SmartIF< IHistogramSvc > & histoSvc () const
 The standard histogram service.
 
SmartIF< INTupleSvc > & ntupleSvc () const
 The standard N tuple service.
 
SmartIF< IRndmGenSvc > & randSvc () const
 The standard RandomGen service, Return a pointer to the service if present.
 
SmartIF< IToolSvc > & toolSvc () const
 The standard ToolSvc service, Return a pointer to the service if present.
 
SmartIF< IExceptionSvc > & exceptionSvc () const
 Get the exception Service.
 
SmartIF< IAlgContextSvc > & contextSvc () const
 get Algorithm Context Service
 
SmartIF< ITimelineSvc > & timelineSvc () const
 
SmartIF< ISvcLocator > & serviceLocator () const override
 The standard service locator.
 
SmartIF< ISvcLocator > & svcLoc () const
 shortcut for method serviceLocator
 
SmartIF< IHiveWhiteBoard > & whiteboard () const
 
SmartIF< IAlgExecStateSvc > & algExecStateSvc () const
 
bool registerContext () const
 register for Algorithm Context Service?
 
template<class T>
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
template<class T>
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
SmartIF< IMonitorSvc > & monitorSvc () const
 Access the monitor service.
 
template<class T>
void declareInfo (const std::string &name, const T &var, const std::string &desc) const
 Declare monitoring information.
 
void declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const
 Declare monitoring information (special case)
 
void acceptDHVisitor (IDataHandleVisitor *) const override
 
void registerTool (IAlgTool *tool) const
 
void deregisterTool (IAlgTool *tool) const
 
template<class T>
StatusCode declareTool (ToolHandle< T > &handle, bool createIf=true)
 
template<class T>
StatusCode declareTool (ToolHandle< T > &handle, const std::string &toolTypeAndName, bool createIf=true)
 
template<class T>
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
bool isAsynchronous () const
 
void setAsynchronous (bool value)
 
unsigned int cardinality () const override
 Return the cardinality.
 
const std::vector< std::string > & neededResources () const override
 
AlgExecStateRef execState (const EventContext &ctx) const override
 get the AlgExecStateRef of current algorithm Actually a small wrapper around it, thus the plain object return type
 
std::ostream & toControlFlowExpression (std::ostream &os) const override
 Produce string represention of the control flow expression.
 
- Public Member Functions inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
std::vector< Gaudi::DataHandle * > inputHandles () const override
 
std::vector< Gaudi::DataHandle * > outputHandles () const override
 
virtual const DataObjIDCollextraInputDeps () const override
 
virtual const DataObjIDCollextraOutputDeps () const override
 
void declare (Gaudi::DataHandle &handle) override
 
void renounce (Gaudi::DataHandle &handle) override
 
bool renounceInput (const DataObjID &id) override
 
const DataObjIDCollinputDataObjs () const override
 
const DataObjIDColloutputDataObjs () const override
 
void addDependency (const DataObjID &id, const Gaudi::DataHandle::Mode &mode) override
 
- Public Member Functions inherited from extends< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >, IDataHandleHolder >
void const * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast.
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface.
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames.
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property.
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals.
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string.
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value
 
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property.
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular property.
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation.
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property.
 
StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property.
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals.
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string.
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name
 
StatusCode getProperty (std::string_view n, std::string &v) const override
 convert the property to the string
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties
 
bool hasProperty (std::string_view name) const override
 Return true if we have a property with the given name.
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected
 
void bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc)
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream)
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream
 
- Public Member Functions inherited from CommonMessagingBase
virtual ~CommonMessagingBase ()=default
 Virtual destructor.
 
const SmartIF< IMessageSvc > & msgSvc () const
 The standard message service.
 
MsgStreammsgStream () const
 Return an uninitialized MsgStream.
 
MsgStreammsgStream (const MSG::Level level) const
 Predefined configurable message stream for the efficient printouts.
 
MsgStreamalways () const
 shortcut for the method msgStream(MSG::ALWAYS)
 
MsgStreamfatal () const
 shortcut for the method msgStream(MSG::FATAL)
 
MsgStreamerr () const
 shortcut for the method msgStream(MSG::ERROR)
 
MsgStreamerror () const
 shortcut for the method msgStream(MSG::ERROR)
 
MsgStreamwarning () const
 shortcut for the method msgStream(MSG::WARNING)
 
MsgStreaminfo () const
 shortcut for the method msgStream(MSG::INFO)
 
MsgStreamdebug () const
 shortcut for the method msgStream(MSG::DEBUG)
 
MsgStreamverbose () const
 shortcut for the method msgStream(MSG::VERBOSE)
 
MsgStreammsg () const
 shortcut for the method msgStream(MSG::INFO)
 

Private Attributes

Gaudi::Property< bool > m_load { this, "Load", false, "load non existing items" }
 
Gaudi::Property< long > m_print { this, "PrintEvt", 1, "limit printout to first N events" }
 
Gaudi::Property< long > m_printMissing { this, "PrintMissing", 0, "indicate if missing entities should be printed" }
 
Gaudi::Property< double > m_frequency { this, "PrintFreq", 0.0, "printout frequency" }
 
Gaudi::Property< bool > m_exploreRelations { this, "ExploreRelations", false, "if relations should be followed" }
 
Gaudi::Property< std::string > m_dataSvcName { this, "DataSvc", "EventDataSvc", "name of the data provider service" }
 
Gaudi::Property< bool > m_testAccess
 
Gaudi::Property< bool > m_accessForeign { this, "AccessForeign", false, "indicate if foreign files should be opened" }
 
long m_total = 0
 Internal counter to trigger printouts.
 
long m_frqPrint = 0
 Internal counter to adjust printout frequency.
 
SmartIF< IDataProviderSvcm_dataSvc
 Reference to data provider service.
 
std::string m_rootName
 Name of the root leaf (obtained at initialize)
 

Additional Inherited Members

- Public Types inherited from Gaudi::Algorithm
typedef Gaudi::PluginService::Factory< IAlgorithm *(const std::string &, ISvcLocator *)> Factory
 
- Public Types inherited from extends< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >, IDataHandleHolder >
using base_class
 Typedef to this class.
 
using extend_interfaces_base
 Typedef to the base of this class.
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
using PropertyHolderImpl
 Typedef used to refer to this class from derived classes, as in.
 
- Public Types inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
using base_class
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids
 take union of the ext_iids of all Interfaces...
 
- Public Attributes inherited from Gaudi::Algorithm
friend AlgorithmManager
 
- Protected Member Functions inherited from Gaudi::details::LegacyAlgorithmAdapter
bool isReEntrant () const override
 
- Protected Member Functions inherited from Gaudi::Algorithm
std::vector< IAlgTool * > & tools ()
 
bool isInitialized () const override
 Has the Algorithm already been initialized?
 
bool isFinalized () const override
 Has the Algorithm already been finalized?
 
void setIndex (const unsigned int &idx) override
 set instantiation index of Alg
 
bool isReEntrant () const override
 
- Protected Member Functions inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
void initDataHandleHolder ()
 initializes all handles - called by the sysInitialize method of any descendant of this
 
- Protected Member Functions inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches.
 
MSG::Level resetMessaging ()
 Reinitialize internal states.
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream.
 
- Protected Attributes inherited from Gaudi::Algorithm
std::unique_ptr< IDataHandleVisitorm_updateDataHandles
 Hook for for derived classes to provide a custom visitor for data handles.
 
- Protected Attributes inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
DataObjIDColl m_inputDataObjs
 
DataObjIDColl m_outputDataObjs
 

Detailed Description

Small algorith, which traverses the data store and prints generic information about all leaves, which can be loaded/accessed.

Author
: M.Frank
Version
: 1.0

Definition at line 42 of file StoreExplorerAlg.cpp.

Member Function Documentation

◆ access()

template<class T>
std::string StoreExplorerAlg::access ( T * p)
inline

Definition at line 68 of file StoreExplorerAlg.cpp.

68 {
69 if ( !p ) return "Access FAILED.";
70 std::string result = std::accumulate(
71 std::begin( *p ), std::end( *p ), std::string{}, [&]( const std::string& s, typename T::const_reference i ) {
72 return s + std::to_string( p->index( i ) ) + ":" + std::to_string( i->clID() ) + ",";
73 } );
74 return result.substr( 0, result.length() - 2 );
75 }

◆ execute()

StatusCode StoreExplorerAlg::execute ( )
inlineoverridevirtual

Execute procedure.

Implements Algorithm.

Definition at line 201 of file StoreExplorerAlg.cpp.

201 {
202 SmartDataPtr<DataObject> root( m_dataSvc.get(), m_rootName );
203 if ( ( ( m_print > m_total++ ) || ( m_frequency * m_total > m_frqPrint ) ) && root ) {
205 std::string store_name = "Unknown";
206 IRegistry* pReg = root->registry();
207 if ( pReg ) {
208 auto isvc = SmartIF<IService>{ pReg->dataSvc() };
209 if ( isvc ) store_name = isvc->name();
210 }
211 info() << "========= " << m_rootName << "[" << std::showbase << std::hex << (unsigned long)root.ptr() << std::dec
212 << "@" << store_name << "]:" << endmsg;
213 std::vector<bool> flg( 1, true );
214 explore( root->registry(), flg );
215 return StatusCode::SUCCESS;
216 } else if ( root ) {
217 return StatusCode::SUCCESS;
218 }
219 error() << "Cannot retrieve \"/Event\"!" << endmsg;
220 return StatusCode::FAILURE;
221 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
virtual IDataProviderSvc * dataSvc() const =0
Retrieve pointer to Transient Store.
constexpr static const auto SUCCESS
Definition StatusCode.h:99
constexpr static const auto FAILURE
Definition StatusCode.h:100
SmartIF< IDataProviderSvc > m_dataSvc
Reference to data provider service.
void explore(IRegistry *pObj, std::vector< bool > &flg)
long m_total
Internal counter to trigger printouts.
std::string m_rootName
Name of the root leaf (obtained at initialize)
Gaudi::Property< long > m_print
long m_frqPrint
Internal counter to adjust printout frequency.
Gaudi::Property< double > m_frequency

◆ explore()

void StoreExplorerAlg::explore ( IRegistry * pObj,
std::vector< bool > & flg )
inline

Definition at line 136 of file StoreExplorerAlg.cpp.

136 {
137 printObj( pObj, flg );
138 if ( pObj ) {
139 auto mgr = eventSvc().as<IDataManagerSvc>();
140 if ( mgr ) {
141 std::vector<IRegistry*> leaves;
142 StatusCode sc = mgr->objectLeaves( pObj, leaves );
143 const std::string* par0 = nullptr;
144 if ( pObj->address() ) par0 = pObj->address()->par();
145 if ( sc.isSuccess() ) {
146 for ( auto i = leaves.begin(); i != leaves.end(); i++ ) {
147 const std::string& id = ( *i )->identifier();
148 DataObject* p = nullptr;
149 if ( !m_accessForeign && ( *i )->address() ) {
150 if ( par0 ) {
151 const std::string* par1 = ( *i )->address()->par();
152 if ( par1 && par0[0] != par1[0] ) continue;
153 }
154 }
155 if ( m_load ) {
156 sc = eventSvc()->retrieveObject( id, p );
157 } else {
158 sc = eventSvc()->findObject( id, p );
159 }
160 if ( sc.isSuccess() ) {
161 if ( id != "/Event/Rec/Relations" || m_exploreRelations ) {
162 flg.push_back( i + 1 == leaves.end() );
163 explore( *i, flg );
164 flg.pop_back();
165 }
166 } else {
167 flg.push_back( i + 1 == leaves.end() );
168 printObj( *i, flg );
169 flg.pop_back();
170 }
171 }
172 }
173 }
174 }
175 }
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
virtual StatusCode findObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Find object identified by its directory entry.
virtual const std::string * par() const =0
Retrieve String parameters.
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
SmartIF< IFace > as() const
return a new SmartIF instance to another interface
Definition SmartIF.h:110
bool isSuccess() const
Definition StatusCode.h:314
void printObj(IRegistry *pReg, std::vector< bool > &flg)
Print datastore leaf.
Gaudi::Property< bool > m_accessForeign
Gaudi::Property< bool > m_exploreRelations
Gaudi::Property< bool > m_load

◆ finalize()

StatusCode StoreExplorerAlg::finalize ( )
inlineoverride

Finalize.

Definition at line 195 of file StoreExplorerAlg.cpp.

195 {
196 m_dataSvc.reset();
197 return StatusCode::SUCCESS;
198 }

◆ initialize()

StatusCode StoreExplorerAlg::initialize ( )
inlineoverride

Initialize.

Definition at line 178 of file StoreExplorerAlg.cpp.

178 {
179 m_rootName.clear();
181 if ( !m_dataSvc ) {
182 error() << "Failed to access service \"" << m_dataSvcName << "\"." << endmsg;
183 return StatusCode::FAILURE;
184 }
185 auto mgr = m_dataSvc.as<IDataManagerSvc>();
186 if ( !mgr ) {
187 error() << "Failed to retrieve IDataManagerSvc interface." << endmsg;
188 return StatusCode::FAILURE;
189 }
190 m_rootName = mgr->rootName();
191 return StatusCode::SUCCESS;
192 }
SmartIF< IService > service(std::string_view name, const bool createIf=true, const bool quiet=false) const
Return a pointer to the service identified by name (or "type/name")
Gaudi::Property< std::string > m_dataSvcName

◆ printObj()

void StoreExplorerAlg::printObj ( IRegistry * pReg,
std::vector< bool > & flg )
inline

Print datastore leaf.

Definition at line 78 of file StoreExplorerAlg.cpp.

78 {
79 auto& log = info();
80 for ( size_t j = 1; j < flg.size(); j++ ) {
81 if ( !flg[j - 1] && flg[j] )
82 log << "| ";
83 else if ( flg[j] )
84 log << " ";
85 else
86 log << "| ";
87 }
88 log << "+--> " << pReg->name();
89 if ( pReg->address() ) {
90 log << " [Address: CLID=" << std::showbase << std::hex << pReg->address()->clID()
91 << " Type=" << (void*)pReg->address()->svcType() << "]";
92 } else {
93 log << " [No Address]";
94 }
95 DataObject* p = pReg->object();
96 if ( p ) {
97 try {
98 std::string typ = System::typeinfoName( typeid( *p ) );
99 if ( m_testAccess ) p->clID();
100 log << " " << typ.substr( 0, 32 );
101 } catch ( ... ) { log << "Access test FAILED"; }
102 } else {
103 log << " (Unloaded) ";
104 }
105 ObjectContainerBase* base = dynamic_cast<ObjectContainerBase*>( p );
106 if ( base ) {
107 try {
108 int numObj = base->numberOfObjects();
109 const CLID id = p->clID();
110 log << " [" << numObj << "]";
111 if ( m_testAccess ) {
112 CLID idd = id >> 16;
113 switch ( idd ) {
114 case CLID_ObjectList >> 16: /* ObjectList */
115 access( (ObjectList<ContainedObject>*)base );
116 break;
117 case CLID_ObjectVector >> 16: /* ObjectVector */
118 access( (ObjectVector<ContainedObject>*)base );
119 break;
120 case ( CLID_ObjectVector + 0x00030000 ) >> 16: /* Keyed Map */
121 access( (KeyedContainer<KeyedObject<int>, Containers::Map>*)base );
122 break;
123 case ( CLID_ObjectVector + 0x00040000 ) >> 16: /* Keyed Hashmap */
124 access( (KeyedContainer<KeyedObject<int>, Containers::HashMap>*)base );
125 break;
126 case ( CLID_ObjectVector + 0x00050000 ) >> 16: /* Keyed array */
127 access( (KeyedContainer<KeyedObject<int>, Containers::Array>*)base );
128 break;
129 }
130 }
131 } catch ( ... ) { log << "Access test FAILED"; }
132 }
133 log << endmsg;
134 }
unsigned int CLID
Class ID definition.
Definition ClassID.h:16
virtual const CLID & clID() const
Retrieve reference to class definition structure.
virtual long svcType() const =0
Retrieve service type.
virtual const CLID & clID() const =0
Retrieve class information from link.
virtual const name_type & name() const =0
Name of the directory (or key)
virtual DataObject * object() const =0
Retrieve object behind the link.
Gaudi::Property< bool > m_testAccess
std::string access(T *p)
KeyedObjectManager< hashmap > HashMap
Forward declaration of specialized std::hashmap-like object manager.
KeyedObjectManager< map > Map
Forward declaration of specialized std::map-like object manager.
KeyedObjectManager< array > Array
Forward declaration of specialized redirection array object manager.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition System.cpp:260

Member Data Documentation

◆ m_accessForeign

Gaudi::Property<bool> StoreExplorerAlg::m_accessForeign { this, "AccessForeign", false, "indicate if foreign files should be opened" }
private

Definition at line 52 of file StoreExplorerAlg.cpp.

52{ this, "AccessForeign", false, "indicate if foreign files should be opened" };

◆ m_dataSvc

SmartIF<IDataProviderSvc> StoreExplorerAlg::m_dataSvc
private

Reference to data provider service.

Definition at line 59 of file StoreExplorerAlg.cpp.

◆ m_dataSvcName

Gaudi::Property<std::string> StoreExplorerAlg::m_dataSvcName { this, "DataSvc", "EventDataSvc", "name of the data provider service" }
private

Definition at line 49 of file StoreExplorerAlg.cpp.

49{ this, "DataSvc", "EventDataSvc", "name of the data provider service" };

◆ m_exploreRelations

Gaudi::Property<bool> StoreExplorerAlg::m_exploreRelations { this, "ExploreRelations", false, "if relations should be followed" }
private

Definition at line 48 of file StoreExplorerAlg.cpp.

48{ this, "ExploreRelations", false, "if relations should be followed" };

◆ m_frequency

Gaudi::Property<double> StoreExplorerAlg::m_frequency { this, "PrintFreq", 0.0, "printout frequency" }
private

Definition at line 47 of file StoreExplorerAlg.cpp.

47{ this, "PrintFreq", 0.0, "printout frequency" };

◆ m_frqPrint

long StoreExplorerAlg::m_frqPrint = 0
private

Internal counter to adjust printout frequency.

Definition at line 57 of file StoreExplorerAlg.cpp.

◆ m_load

Gaudi::Property<bool> StoreExplorerAlg::m_load { this, "Load", false, "load non existing items" }
private

Definition at line 44 of file StoreExplorerAlg.cpp.

44{ this, "Load", false, "load non existing items" };

◆ m_print

Gaudi::Property<long> StoreExplorerAlg::m_print { this, "PrintEvt", 1, "limit printout to first N events" }
private

Definition at line 45 of file StoreExplorerAlg.cpp.

45{ this, "PrintEvt", 1, "limit printout to first N events" };

◆ m_printMissing

Gaudi::Property<long> StoreExplorerAlg::m_printMissing { this, "PrintMissing", 0, "indicate if missing entities should be printed" }
private

Definition at line 46 of file StoreExplorerAlg.cpp.

46{ this, "PrintMissing", 0, "indicate if missing entities should be printed" };

◆ m_rootName

std::string StoreExplorerAlg::m_rootName
private

Name of the root leaf (obtained at initialize)

Definition at line 61 of file StoreExplorerAlg.cpp.

◆ m_testAccess

Gaudi::Property<bool> StoreExplorerAlg::m_testAccess
private
Initial value:
{ this, "TestAccess", false,
"test access to objects (DataObject and ContainedObject)" }

Definition at line 50 of file StoreExplorerAlg.cpp.

50 { this, "TestAccess", false,
51 "test access to objects (DataObject and ContainedObject)" };

◆ m_total

long StoreExplorerAlg::m_total = 0
private

Internal counter to trigger printouts.

Definition at line 55 of file StoreExplorerAlg.cpp.


The documentation for this class was generated from the following file: