The Gaudi Framework  master (37c0b60a)
StoreExplorerAlg Class Reference
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. More...
 
void explore (IRegistry *pObj, std::vector< bool > &flg)
 
StatusCode initialize () override
 Initialize. More...
 
StatusCode finalize () override
 Finalize. More...
 
StatusCode execute () override
 Execute procedure. More...
 
- 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? More...
 
void setExecuted (bool state) const
 Set the executed flag to the specified state. More...
 
bool filterPassed () const
 Did this algorithm pass or fail its filter criterion for the last event? More...
 
void setFilterPassed (bool state) const
 Set the filter passed flag to the specified state. More...
 
- Public Member Functions inherited from Gaudi::Algorithm
 Algorithm (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 Constructor. More...
 
StatusCode sysStart () override
 Reinitialization method invoked by the framework. More...
 
StatusCode sysInitialize () override
 Initialization method invoked by the framework. More...
 
StatusCode sysReinitialize () override
 Reinitialization method invoked by the framework. More...
 
StatusCode sysRestart () override
 Restart method invoked by the framework. More...
 
StatusCode sysExecute (const EventContext &ctx) override
 The actions to be performed by the algorithm on an event. More...
 
StatusCode sysStop () override
 System stop. More...
 
StatusCode sysFinalize () override
 System finalization. More...
 
const std::stringname () const override
 The identifying name of the algorithm object. More...
 
const Gaudi::StringKeynameKey () const override
 
const std::stringtype () const override
 The type of the algorithm object. More...
 
void setType (std::string type) override
 
const std::stringversion () const override
 
unsigned int index () const override
 
StatusCode configure () override
 Dummy implementation of IStateful::configure() method. More...
 
StatusCode terminate () override
 Dummy implementation of IStateful::terminate() method. More...
 
StatusCode initialize () override
 the default (empty) implementation of IStateful::initialize() method More...
 
StatusCode start () override
 the default (empty) implementation of IStateful::start() method More...
 
StatusCode stop () override
 the default (empty) implementation of IStateful::stop() method More...
 
StatusCode finalize () override
 the default (empty) implementation of IStateful::finalize() method More...
 
StatusCode reinitialize () override
 the default (empty) implementation of IStateful::reinitialize() method More...
 
StatusCode restart () override
 the default (empty) implementation of IStateful::restart() method More...
 
Gaudi::StateMachine::State FSMState () const override
 returns the current state of the algorithm More...
 
Gaudi::StateMachine::State targetFSMState () const override
 returns the state the algorithm will be in after the ongoing transition More...
 
bool isEnabled () const override
 Is this algorithm enabled or disabled? More...
 
bool isSequence () const override
 Are we a Sequence? More...
 
unsigned int errorCount () const
 Get the number of failures of the algorithm. More...
 
template<class T >
StatusCode service (std::string_view 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 (std::string_view svcType, std::string_view svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
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") More...
 
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. More...
 
SmartIF< IChronoStatSvc > & chronoSvc () const
 The standard Chrono & Stat service, Return a pointer to the service if present. More...
 
SmartIF< IDataProviderSvc > & detSvc () const
 The standard detector data service. More...
 
SmartIF< IConversionSvc > & detCnvSvc () const
 The standard detector data persistency conversion service. More...
 
SmartIF< IDataProviderSvc > & eventSvc () const
 The standard event data service. More...
 
SmartIF< IDataProviderSvc > & evtSvc () const
 shortcut for method eventSvc More...
 
SmartIF< IConversionSvc > & eventCnvSvc () const
 The standard event data persistency conversion service. More...
 
SmartIF< IHistogramSvc > & histoSvc () const
 The standard histogram service. More...
 
SmartIF< INTupleSvc > & ntupleSvc () const
 The standard N tuple service. More...
 
SmartIF< IRndmGenSvc > & randSvc () const
 The standard RandomGen service, Return a pointer to the 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< ITimelineSvc > & timelineSvc () const
 
SmartIF< ISvcLocator > & serviceLocator () const override
 The standard service locator. More...
 
SmartIF< ISvcLocator > & svcLoc () const
 shortcut for method serviceLocator More...
 
SmartIF< IHiveWhiteBoard > & whiteboard () const
 
SmartIF< IAlgExecStateSvc > & algExecStateSvc () const
 
bool registerContext () const
 register for Algorithm Context Service? More...
 
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. 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...
 
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. More...
 
const std::vector< std::string > & neededResources () const override
 
AlgExecStateexecState (const EventContext &ctx) const override
 reference to AlgExecState of Alg More...
 
std::ostreamtoControlFlowExpression (std::ostream &os) const override
 Produce string represention of the control flow expression. More...
 
- 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 * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
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. More...
 
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. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property. More...
 
virtual StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p)=0
 Set the property from a property with a different name. More...
 
virtual StatusCode setProperty (const std::string &s)=0
 Set the property by string. More...
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals. More...
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string. More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name More...
 
StatusCode getProperty (std::string_view n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (std::string_view name) const override
 Return true if we have a property with the given name. More...
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected More...
 
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) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 

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::stringm_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. More...
 
long m_frqPrint = 0
 Internal counter to adjust printout frequency. More...
 
SmartIF< IDataProviderSvcm_dataSvc
 Reference to data provider service. More...
 
std::string m_rootName
 Name of the root leaf (obtained at initialize) More...
 

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 = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 
- 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? More...
 
bool isFinalized () const override
 Has the Algorithm already been finalized? More...
 
void setIndex (const unsigned int &idx) override
 set instantiation index of Alg More...
 
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 More...
 
- Protected Member Functions inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 
- Protected Attributes inherited from Gaudi::Algorithm
std::unique_ptr< IDataHandleVisitorm_updateDataHandles
 Hook for for derived classes to provide a custom visitor for data handles. More...
 
- 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.";
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  {
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  }

◆ 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 ) {
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  }

◆ 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();
180  m_dataSvc = service( m_dataSvcName, true );
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  }

◆ 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 */
116  break;
117  case CLID_ObjectVector >> 16: /* ObjectVector */
119  break;
120  case ( CLID_ObjectVector + 0x00030000 ) >> 16: /* Keyed Map */
122  break;
123  case ( CLID_ObjectVector + 0x00040000 ) >> 16: /* Keyed Hashmap */
125  break;
126  case ( CLID_ObjectVector + 0x00050000 ) >> 16: /* Keyed array */
128  break;
129  }
130  }
131  } catch ( ... ) { log << "Access test FAILED"; }
132  }
133  log << endmsg;
134  }

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.

◆ 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.

◆ 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.

◆ m_frequency

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

Definition at line 47 of file StoreExplorerAlg.cpp.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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:
StoreExplorerAlg::m_rootName
std::string m_rootName
Name of the root leaf (obtained at initialize)
Definition: StoreExplorerAlg.cpp:61
Containers::KeyedObjectManager
KeyedObjectManager Class to manage keyed objects.
Definition: KeyedObjectManager.h:55
std::string
STL class.
IOpaqueAddress::par
virtual const std::string * par() const =0
Retrieve String parameters.
ObjectVector
Definition: ContainedObject.h:22
Gaudi.Configuration.log
log
Definition: Configuration.py:28
IDataManagerSvc
Definition: IDataManagerSvc.h:55
Gaudi::Algorithm::eventSvc
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
Definition: Algorithm.cpp:559
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
StoreExplorerAlg::m_print
Gaudi::Property< long > m_print
Definition: StoreExplorerAlg.cpp:45
gaudirun.s
string s
Definition: gaudirun.py:346
std::vector< bool >
SmartIF::reset
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
Definition: SmartIF.h:96
std::string::length
T length(T... args)
IOpaqueAddress::svcType
virtual long svcType() const =0
Retrieve service type.
StoreExplorerAlg::m_total
long m_total
Internal counter to trigger printouts.
Definition: StoreExplorerAlg.cpp:55
gaudiComponentHelp.root
root
Definition: gaudiComponentHelp.py:42
StoreExplorerAlg::m_load
Gaudi::Property< bool > m_load
Definition: StoreExplorerAlg.cpp:44
IRegistry
Definition: IRegistry.h:32
System::typeinfoName
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:315
StoreExplorerAlg::access
std::string access(T *p)
Definition: StoreExplorerAlg.cpp:68
std::showbase
T showbase(T... args)
StoreExplorerAlg::m_accessForeign
Gaudi::Property< bool > m_accessForeign
Definition: StoreExplorerAlg.cpp:52
std::string::clear
T clear(T... args)
std::hex
T hex(T... args)
std::vector::push_back
T push_back(T... args)
IRegistry::name
virtual const name_type & name() const =0
Name of the directory (or key)
StoreExplorerAlg::m_dataSvc
SmartIF< IDataProviderSvc > m_dataSvc
Reference to data provider service.
Definition: StoreExplorerAlg.cpp:59
StatusCode
Definition: StatusCode.h:65
StoreExplorerAlg::printObj
void printObj(IRegistry *pReg, std::vector< bool > &flg)
Print datastore leaf.
Definition: StoreExplorerAlg.cpp:78
ProduceConsume.j
j
Definition: ProduceConsume.py:104
IOpaqueAddress::clID
virtual const CLID & clID() const =0
Retrieve class information from link.
std::to_string
T to_string(T... args)
KeyedContainer
template class KeyedContainer, KeyedContainer.h
Definition: KeyedContainer.h:74
std::accumulate
T accumulate(T... args)
StoreExplorerAlg::m_exploreRelations
Gaudi::Property< bool > m_exploreRelations
Definition: StoreExplorerAlg.cpp:48
SmartIF< IService >
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
KeyedObject< int >
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
ObjectList
Definition: ContainedObject.h:24
std::vector::pop_back
T pop_back(T... args)
StoreExplorerAlg::m_dataSvcName
Gaudi::Property< std::string > m_dataSvcName
Definition: StoreExplorerAlg.cpp:49
SmartIF::as
SmartIF< IFace > as() const
return a new SmartIF instance to another interface
Definition: SmartIF.h:117
std::string::substr
T substr(T... args)
IRegistry::address
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
StoreExplorerAlg::explore
void explore(IRegistry *pObj, std::vector< bool > &flg)
Definition: StoreExplorerAlg.cpp:136
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
SmartIF::get
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:86
SmartDataPtr
A small class used to access easily (and efficiently) data items residing in data stores.
Definition: SmartDataPtr.h:57
ObjectContainerBase
Definition: ObjectContainerBase.h:29
std::begin
T begin(T... args)
Gaudi::Algorithm::service
StatusCode service(std::string_view name, T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
Definition: Algorithm.h:206
IRegistry::object
virtual DataObject * object() const =0
Retrieve object behind the link.
DataObject
Definition: DataObject.h:36
StoreExplorerAlg::m_frqPrint
long m_frqPrint
Internal counter to adjust printout frequency.
Definition: StoreExplorerAlg.cpp:57
check_ParticleID.base
base
Definition: check_ParticleID.py:24
std::end
T end(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
StoreExplorerAlg::m_frequency
Gaudi::Property< double > m_frequency
Definition: StoreExplorerAlg.cpp:47
StoreExplorerAlg::m_testAccess
Gaudi::Property< bool > m_testAccess
Definition: StoreExplorerAlg.cpp:50
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:66
IRegistry::dataSvc
virtual IDataProviderSvc * dataSvc() const =0
Retrieve pointer to Transient Store.