All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

 StoreExplorerAlg (const std::string &name, ISvcLocator *pSvcLocator)
 Standard algorithm constructor. More...
 
virtual ~StoreExplorerAlg ()
 Standard Destructor. More...
 
template<class T >
std::string access (T *p)
 
void printObj (IRegistry *pReg, std::vector< bool > &flg)
 Print datastore leaf. More...
 
void explore (IRegistry *pObj, std::vector< bool > &flg)
 
virtual StatusCode initialize ()
 Initialize. More...
 
virtual StatusCode finalize ()
 Finalize. More...
 
virtual StatusCode execute ()
 Execute procedure. More...
 
- Public Member Functions inherited from Algorithm
 Algorithm (const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
 Constructor. More...
 
virtual ~Algorithm ()
 Destructor. More...
 
virtual StatusCode sysStart ()
 Reinitialization method invoked by the framework. More...
 
virtual StatusCode sysInitialize ()
 Initialization method invoked by the framework. More...
 
virtual StatusCode sysReinitialize ()
 Reinitialization method invoked by the framework. More...
 
virtual StatusCode sysRestart ()
 Restart method invoked by the framework. More...
 
virtual StatusCode sysExecute ()
 The actions to be performed by the algorithm on an event. More...
 
virtual StatusCode sysStop ()
 System stop. More...
 
virtual StatusCode sysFinalize ()
 System finalization. More...
 
virtual StatusCode sysBeginRun ()
 beginRun method invoked by the framework. More...
 
virtual StatusCode sysEndRun ()
 endRun method invoked by the framework. More...
 
virtual const std::string & name () const
 The identifying name of the algorithm object. More...
 
virtual const std::string & version () const
 The version of the algorithm. More...
 
virtual StatusCode configure ()
 Dummy implementation of IStateful::configure() method. More...
 
virtual StatusCode terminate ()
 Dummy implementation of IStateful::terminate() method. More...
 
virtual StatusCode start ()
 the default (empty) implementation of IStateful::start() method More...
 
virtual StatusCode stop ()
 the default (empty) implementation of IStateful::stop() method More...
 
virtual StatusCode reinitialize ()
 the default (empty) implementation of IStateful::reinitialize() method More...
 
virtual StatusCode restart ()
 the default (empty) implementation of IStateful::restart() method More...
 
virtual bool isExecuted () const
 Has this algorithm been executed since the last reset? More...
 
virtual void setExecuted (bool state)
 Set the executed flag to the specified state. More...
 
virtual void resetExecuted ()
 Reset the executed state of the Algorithm for the duration of the current event. More...
 
virtual StatusCode beginRun ()
 Algorithm begin run. More...
 
virtual StatusCode endRun ()
 Algorithm end run. This method is called at the end of the event loop. More...
 
virtual Gaudi::StateMachine::State FSMState () const
 returns the current state of the algorithm More...
 
virtual Gaudi::StateMachine::State targetFSMState () const
 returns the state the algorithm will be in after the ongoing transition More...
 
virtual bool isEnabled () const
 Is this algorithm enabled or disabled? More...
 
virtual bool filterPassed () const
 Did this algorithm pass or fail its filter criterion for the last event? More...
 
virtual void setFilterPassed (bool state)
 Set the filter passed flag to the specified state. More...
 
template<class T >
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. More...
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
SmartIF< IServiceservice (const std::string &name, const bool createIf=true, const bool quiet=false) const
 Return a pointer to the service identified by name (or "type/name") More...
 
void setOutputLevel (int level)
 Set the output level for current algorithm. More...
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
SmartIF< IChronoStatSvc > & chronoSvc () const
 The standard Chrono & Stat service, Return a pointer to the service if present. More...
 
SmartIF< IChronoStatSvc > & chronoStatService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IDataProviderSvc > & detSvc () const
 The standard detector data service. More...
 
SmartIF< IDataProviderSvc > & detDataService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IConversionSvc > & detCnvSvc () const
 The standard detector data persistency conversion service. More...
 
SmartIF< IConversionSvc > & detDataCnvService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IDataProviderSvc > & eventSvc () const
 The standard event data service. More...
 
SmartIF< IDataProviderSvc > & evtSvc () const
 shortcut for method eventSvc More...
 
SmartIF< IDataProviderSvc > & eventDataService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IConversionSvc > & eventCnvSvc () const
 The standard event data persistency conversion service. More...
 
SmartIF< IConversionSvc > & eventDataCnvService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IHistogramSvc > & histoSvc () const
 The standard histogram service. More...
 
SmartIF< IHistogramSvc > & histogramDataService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IMessageSvc > & msgSvc () const
 The standard message service. More...
 
SmartIF< IMessageSvc > & messageService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< INTupleSvc > & ntupleSvc () const
 The standard N tuple service. More...
 
SmartIF< INTupleSvc > & ntupleService () const
 Obsoleted name, kept due to the backwards compatibility. More...
 
SmartIF< IRndmGenSvc > & randSvc () const
 AIDA-based NTuple service Returns a pointer to the AIDATuple service if present. More...
 
SmartIF< IToolSvc > & toolSvc () const
 The standard ToolSvc service, Return a pointer to the service if present. More...
 
SmartIF< IExceptionSvc > & exceptionSvc () const
 Get the exception Service. More...
 
SmartIF< IAlgContextSvc > & contextSvc () const
 get Algorithm Context Service More...
 
SmartIF< ISvcLocator > & serviceLocator () const
 The standard service locator. More...
 
SmartIF< ISvcLocator > & svcLoc () const
 shortcut for method serviceLocator More...
 
bool registerContext () const
 register for Algorithm Context Service? More...
 
StatusCode createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg)
 Create a sub algorithm. More...
 
std::vector< Algorithm * > * subAlgorithms () const
 List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. More...
 
virtual StatusCode setProperty (const Property &p)
 Implementation of IProperty::setProperty. More...
 
virtual StatusCode setProperty (const std::string &s)
 Implementation of IProperty::setProperty. More...
 
virtual StatusCode setProperty (const std::string &n, const std::string &v)
 Implementation of IProperty::setProperty. More...
 
virtual StatusCode getProperty (Property *p) const
 Implementation of IProperty::getProperty. More...
 
virtual const PropertygetProperty (const std::string &name) const
 Implementation of IProperty::getProperty. More...
 
virtual StatusCode getProperty (const std::string &n, std::string &v) const
 Implementation of IProperty::getProperty. More...
 
virtual const std::vector
< Property * > & 
getProperties () const
 Implementation of IProperty::getProperties. More...
 
StatusCode setProperties ()
 Set the algorithm's properties. More...
 
template<class T >
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
 Declare the named property. More...
 
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
 Declare remote named properties. More...
 
SmartIF< IMonitorSvc > & monitorSvc () const
 Access the monitor service. More...
 
template<class T >
void declareInfo (const std::string &name, const T &var, const std::string &desc) const
 Declare monitoring information. More...
 
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) More...
 
template<class TYPE >
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
- Public Member Functions inherited from extend_interfaces3< IAlgorithm, IProperty, IStateful >
virtual ~extend_interfaces3 ()
 Virtual destructor. More...
 
- Public Member Functions inherited from IAlgorithm
 DeclareInterfaceID (IAlgorithm, 4, 0)
 InterfaceID. More...
 
- Public Member Functions inherited from INamedInterface
 DeclareInterfaceID (INamedInterface, 1, 0)
 InterfaceID. More...
 
virtual ~INamedInterface ()
 Virtual destructor (always needed for abstract classes). More...
 
- Public Member Functions inherited from IInterface
virtual void * i_cast (const InterfaceID &) const =0
 main cast function More...
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces. More...
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance. More...
 
virtual unsigned long release ()=0
 Release Interface instance. More...
 
virtual unsigned long refCount () const =0
 Current reference count. More...
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance. More...
 
virtual ~IInterface ()
 Virtual destructor. More...
 
- Public Member Functions inherited from IProperty
 DeclareInterfaceID (IProperty, 2, 0)
 InterfaceID. More...
 
- Public Member Functions inherited from IStateful
 DeclareInterfaceID (IStateful, 1, 0)
 InterfaceID. More...
 
virtual ~IStateful ()
 

Private Attributes

long m_print
 Job option to limit printout to first nnn events. More...
 
double m_frequency
 Job option to set the printout frequency. More...
 
bool m_exploreRelations
 Flag to check if relations should be followed. More...
 
long m_printMissing
 Flag to indicate if missing entities should be printed. More...
 
long m_total
 Internal counter to trigger printouts. More...
 
long m_frqPrint
 Internal counter to adjust printout frequency. More...
 
bool m_load
 Flag to load non existing items. More...
 
bool m_testAccess
 Flag to test access to objects (DataObject and ContainedObject) More...
 
bool m_accessForeign
 Flag to indicate if foreign files should be opened. More...
 
IDataProviderSvcm_dataSvc
 Reference to data provider service. More...
 
std::string m_dataSvcName
 Name of the data provider service. More...
 
std::string m_rootName
 Name of the root leaf (obtained at initialize) More...
 

Additional Inherited Members

- Public Types inherited from Algorithm
typedef
Gaudi::PluginService::Factory
< IAlgorithm *, const
std::string &, ISvcLocator * > 
Factory
 
- Public Types inherited from implements3< IAlgorithm, IProperty, IStateful >
typedef implements3 base_class
 Typedef to this class. More...
 
typedef extend_interfaces3
< IAlgorithm, IProperty,
IStateful
extend_interfaces_base
 Typedef to the base of this class. More...
 
typedef
extend_interfaces_base::ext_iids 
interfaces
 MPL set of all the implemented interfaces. More...
 
- Public Types inherited from extend_interfaces3< IAlgorithm, IProperty, IStateful >
typedef mpl::fold< typename
IAlgorithm::iid::iids::type,
typename mpl::fold< typename
IProperty::iid::iids::type,
typename
IStateful::iid::iids::type,
mpl::insert< mpl::_1, mpl::_2 >
>::type, mpl::insert< mpl::_1,
mpl::_2 > >::type 
ext_iids
 MPL set of interfaces extended by this one. More...
 
- Public Types inherited from IInterface
enum  Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR }
 Return status. More...
 
typedef Gaudi::InterfaceId
< IInterface, 0, 0 > 
iid
 Interface ID. More...
 
typedef mpl::set1< iidext_iids
 Extra interfaces. More...
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface. More...
 
- Protected Member Functions inherited from Algorithm
bool isInitialized () const
 Has the Algorithm already been initialized? More...
 
bool isFinalized () const
 Has the Algorithm already been finalized? More...
 
int outputLevel () const
 retrieve the Algorithm output level More...
 
IntegerPropertyoutputLevelProperty ()
 Accessor for the Message level property. More...
 
void initOutputLevel (Property &prop)
 callback for output level property More...
 

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 30 of file StoreExplorerAlg.cpp.

Constructor & Destructor Documentation

StoreExplorerAlg::StoreExplorerAlg ( const std::string &  name,
ISvcLocator pSvcLocator 
)
inline

Standard algorithm constructor.

Definition at line 58 of file StoreExplorerAlg.cpp.

59  : Algorithm(name, pSvcLocator), m_dataSvc(0)
60  {
61  m_total = m_frqPrint = 0;
62  declareProperty("Load", m_load = false);
63  declareProperty("PrintEvt", m_print = 1);
64  declareProperty("PrintMissing", m_printMissing = 0);
65  declareProperty("PrintFreq", m_frequency = 0.0);
66  declareProperty("ExploreRelations", m_exploreRelations = false);
67  declareProperty("DataSvc", m_dataSvcName="EventDataSvc");
68  declareProperty("TestAccess", m_testAccess = false);
69  declareProperty("AccessForeign", m_accessForeign = false);
70  }
long m_printMissing
Flag to indicate if missing entities should be printed.
bool m_accessForeign
Flag to indicate if foreign files should be opened.
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
Definition: Algorithm.h:397
bool m_load
Flag to load non existing items.
long m_total
Internal counter to trigger printouts.
double m_frequency
Job option to set the printout frequency.
long m_print
Job option to limit printout to first nnn events.
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.cpp:28
std::string m_dataSvcName
Name of the data provider service.
IDataProviderSvc * m_dataSvc
Reference to data provider service.
bool m_exploreRelations
Flag to check if relations should be followed.
long m_frqPrint
Internal counter to adjust printout frequency.
bool m_testAccess
Flag to test access to objects (DataObject and ContainedObject)
virtual StoreExplorerAlg::~StoreExplorerAlg ( )
inlinevirtual

Standard Destructor.

Definition at line 72 of file StoreExplorerAlg.cpp.

72  {
73  }

Member Function Documentation

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

Definition at line 76 of file StoreExplorerAlg.cpp.

76  {
77  if ( p ) {
78  std::stringstream s;
79  for (typename T::const_iterator i = p->begin(); i != p->end(); ++i ) {
80  int idx = p->index(*i);
81  s << idx << ":" << (*i)->clID() << ",";
82  }
83  std::string result = s.str();
84  return result.substr(0, result.length()-2);
85  }
86  return "Access FAILED.";
87  }
string s
Definition: gaudirun.py:210
list i
Definition: ana.py:128
virtual StatusCode StoreExplorerAlg::execute ( )
inlinevirtual

Execute procedure.

Implements IAlgorithm.

Definition at line 235 of file StoreExplorerAlg.cpp.

235  {
236  MsgStream log(msgSvc(), name());
238  if ( ((m_print > m_total++) || (m_frequency*m_total > m_frqPrint)) && root ) {
239  if ( m_frequency*m_total > m_frqPrint ) {
240  m_frqPrint++;
241  }
242  std::string store_name = "Unknown";
243  IRegistry* pReg = root->registry();
244  if ( pReg ) {
245  SmartIF<IService> isvc(pReg->dataSvc());
246  if ( isvc ) {
247  store_name = isvc->name();
248  }
249  }
250  log << MSG::INFO << "========= " << m_rootName << "["
251  << "0x" << std::hex << (unsigned long) root.ptr() << std::dec
252  << "@" << store_name << "]:" << endmsg;
253  std::vector<bool> flg;
254  flg.push_back(true);
255  explore(root->registry(), flg);
256  return StatusCode::SUCCESS;
257  }
258  else if ( root ) {
259  return StatusCode::SUCCESS;
260  }
261  log << MSG::ERROR << "Cannot retrieve \"/Event\"!" << endmsg;
262  return StatusCode::FAILURE;
263  }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
long m_total
Internal counter to trigger printouts.
double m_frequency
Job option to set the printout frequency.
long m_print
Job option to limit printout to first nnn events.
std::string m_rootName
Name of the root leaf (obtained at initialize)
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Definition: Algorithm.cpp:896
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
void explore(IRegistry *pObj, std::vector< bool > &flg)
IDataProviderSvc * m_dataSvc
Reference to data provider service.
A small class used to access easily (and efficiently) data items residing in data stores...
Definition: SmartDataPtr.h:46
tuple root
Definition: IOTest.py:42
virtual IDataProviderSvc * dataSvc() const =0
Retrieve pointer to Transient Store.
long m_frqPrint
Internal counter to adjust printout frequency.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
void StoreExplorerAlg::explore ( IRegistry pObj,
std::vector< bool > &  flg 
)
inline

Definition at line 158 of file StoreExplorerAlg.cpp.

158  {
159  printObj(pObj, flg);
160  if ( 0 != pObj ) {
162  if ( mgr ) {
163  typedef std::vector<IRegistry*> Leaves;
164  Leaves leaves;
165  StatusCode sc = mgr->objectLeaves(pObj, leaves);
166  const std::string* par0 = 0;
167  if ( pObj->address() ) {
168  par0 = pObj->address()->par();
169  }
170  if ( sc.isSuccess() ) {
171  for ( Leaves::const_iterator i=leaves.begin(); i != leaves.end(); i++ ) {
172  const std::string& id = (*i)->identifier();
173  DataObject* p = 0;
174  if ( !m_accessForeign && (*i)->address() ) {
175  if ( par0 ) {
176  const std::string* par1 = (*i)->address()->par();
177  if ( par1 ) {
178  if ( par0[0] != par1[0] ) {
179  continue;
180  }
181  }
182  }
183  }
184  if ( m_load ) {
185  sc = eventSvc()->retrieveObject(id, p);
186  }
187  else {
188  sc = eventSvc()->findObject(id, p);
189  }
190  if ( sc.isSuccess() ) {
191  if ( id != "/Event/Rec/Relations" || m_exploreRelations ) {
192  flg.push_back(i+1 == leaves.end());
193  explore(*i, flg);
194  flg.pop_back();
195  }
196  }
197  else {
198  flg.push_back(i+1 == leaves.end());
199  printObj(*i, flg);
200  flg.pop_back();
201  }
202  }
203  }
204  }
205  }
206  }
virtual const std::string * par() const =0
Retrieve String parameters.
bool m_accessForeign
Flag to indicate if foreign files should be opened.
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:75
bool m_load
Flag to load non existing items.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
void printObj(IRegistry *pReg, std::vector< bool > &flg)
Print datastore leaf.
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
void explore(IRegistry *pObj, std::vector< bool > &flg)
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
bool m_exploreRelations
Flag to check if relations should be followed.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
list i
Definition: ana.py:128
virtual StatusCode StoreExplorerAlg::finalize ( )
inlinevirtual

Finalize.

Reimplemented from Algorithm.

Definition at line 228 of file StoreExplorerAlg.cpp.

228  {
229  if ( m_dataSvc ) m_dataSvc->release();
230  m_dataSvc = 0;
231  return StatusCode::SUCCESS;
232  }
IDataProviderSvc * m_dataSvc
Reference to data provider service.
virtual unsigned long release()=0
Release Interface instance.
virtual StatusCode StoreExplorerAlg::initialize ( )
inlinevirtual

Initialize.

Reimplemented from Algorithm.

Definition at line 209 of file StoreExplorerAlg.cpp.

209  {
210  MsgStream log(msgSvc(), name());
211  m_rootName = "";
213  if ( sc.isSuccess() ) {
215  if ( mgr ) {
216  m_rootName = mgr->rootName();
217  return sc;
218  }
219  log << MSG::ERROR << "Failed to retrieve IDataManagerSvc interface." << endmsg;
220  return StatusCode::FAILURE;
221  }
222  log << MSG::ERROR << "Failed to access service \""
223  << m_dataSvcName << "\"." << endmsg;
224  return StatusCode::FAILURE;
225  }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:75
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
std::string m_rootName
Name of the root leaf (obtained at initialize)
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Definition: Algorithm.cpp:896
std::string m_dataSvcName
Name of the data provider service.
IDataProviderSvc * m_dataSvc
Reference to data provider service.
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.
Definition: Algorithm.h:207
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
void StoreExplorerAlg::printObj ( IRegistry pReg,
std::vector< bool > &  flg 
)
inline

Print datastore leaf.

Definition at line 91 of file StoreExplorerAlg.cpp.

91  {
92  MsgStream log(msgSvc(), name());
93  log << MSG::INFO;
94  for (size_t j = 1; j < flg.size(); j++ ) {
95  if ( !flg[j-1] && flg[j] ) log << "| ";
96  else if ( flg[j] ) log << " ";
97  else log << "| ";
98  }
99  log << "+--> " << pReg->name();
100  if ( pReg->address() ) {
101  log << " [Address: CLID="
102  << std::showbase << std::hex << pReg->address()->clID();
103  log << " Type=" << (void*)pReg->address()->svcType() << "]";
104  }
105  else {
106  log << " [No Address]";
107  }
108  DataObject* p = pReg->object();
109  if ( p ) {
110  try {
111  std::string typ = System::typeinfoName(typeid(*p));
112  if ( m_testAccess ) {
113  p->clID();
114  }
115  log << " " << typ.substr(0,32);
116  }
117  catch (...) {
118  log << "Access test FAILED";
119  }
120  }
121  else {
122  log << " (Unloaded) ";
123  }
124  ObjectContainerBase* base = dynamic_cast<ObjectContainerBase*>(p);
125  if ( base ) {
126  try {
127  int numObj = base->numberOfObjects();
128  const CLID id = p->clID();
129  log << " [" << numObj << "]";
130  if ( m_testAccess ) {
131  CLID idd = id>>16;
132  switch(idd) {
133  case CLID_ObjectList>>16: /* ObjectList */
135  break;
136  case CLID_ObjectVector>>16: /* ObjectVector */
138  break;
139  case (CLID_ObjectVector+0x00030000)>>16: /* Keyed Map */
141  break;
142  case (CLID_ObjectVector+0x00040000)>>16: /* Keyed Hashmap */
144  break;
145  case (CLID_ObjectVector+0x00050000)>>16: /* Keyed array */
147  break;
148  }
149  }
150  }
151  catch (...) {
152  log << "Access test FAILED";
153  }
154  }
155  log << endmsg;
156  }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:298
virtual size_type numberOfObjects() const =0
Number of objects in the container.
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)
virtual long svcType() const =0
Retrieve service type.
ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores...
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:58
virtual const CLID & clID() const =0
Retrieve class information from link.
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Definition: Algorithm.cpp:896
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
virtual DataObject * object() const =0
Retrieve object behind the link.
KeyedObjectManager Class to manage keyed objects.
ObjectContainerBase is the base class for Gaudi container classes.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
bool m_testAccess
Flag to test access to objects (DataObject and ContainedObject)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
std::string access(T *p)

Member Data Documentation

bool StoreExplorerAlg::m_accessForeign
private

Flag to indicate if foreign files should be opened.

Definition at line 48 of file StoreExplorerAlg.cpp.

IDataProviderSvc* StoreExplorerAlg::m_dataSvc
private

Reference to data provider service.

Definition at line 50 of file StoreExplorerAlg.cpp.

std::string StoreExplorerAlg::m_dataSvcName
private

Name of the data provider service.

Definition at line 52 of file StoreExplorerAlg.cpp.

bool StoreExplorerAlg::m_exploreRelations
private

Flag to check if relations should be followed.

Definition at line 36 of file StoreExplorerAlg.cpp.

double StoreExplorerAlg::m_frequency
private

Job option to set the printout frequency.

Definition at line 34 of file StoreExplorerAlg.cpp.

long StoreExplorerAlg::m_frqPrint
private

Internal counter to adjust printout frequency.

Definition at line 42 of file StoreExplorerAlg.cpp.

bool StoreExplorerAlg::m_load
private

Flag to load non existing items.

Definition at line 44 of file StoreExplorerAlg.cpp.

long StoreExplorerAlg::m_print
private

Job option to limit printout to first nnn events.

Definition at line 32 of file StoreExplorerAlg.cpp.

long StoreExplorerAlg::m_printMissing
private

Flag to indicate if missing entities should be printed.

Definition at line 38 of file StoreExplorerAlg.cpp.

std::string StoreExplorerAlg::m_rootName
private

Name of the root leaf (obtained at initialize)

Definition at line 54 of file StoreExplorerAlg.cpp.

bool StoreExplorerAlg::m_testAccess
private

Flag to test access to objects (DataObject and ContainedObject)

Definition at line 46 of file StoreExplorerAlg.cpp.

long StoreExplorerAlg::m_total
private

Internal counter to trigger printouts.

Definition at line 40 of file StoreExplorerAlg.cpp.


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