The Gaudi Framework  master (37c0b60a)
HiveDataBrokerSvc Class Referencefinal
Inheritance diagram for HiveDataBrokerSvc:
Collaboration diagram for HiveDataBrokerSvc:

Classes

struct  AlgEntry
 

Public Member Functions

std::vector< Gaudi::Algorithm * > algorithmsRequiredFor (const DataObjIDColl &requested, const std::vector< std::string > &stoppers={}) const override
 
std::vector< Gaudi::Algorithm * > algorithmsRequiredFor (const Gaudi::Utils::TypeNameString &alg, const std::vector< std::string > &stoppers={}) const override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
- Public Member Functions inherited from extends< Service, IDataBroker >
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 Service
const std::stringname () const override
 Retrieve name of the service
More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service
More...
 
StatusCode sysStart () override
 Initialize Service
More...
 
StatusCode sysStop () override
 Initialize Service
More...
 
StatusCode sysFinalize () override
 Finalize Service
More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor
More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator
More...
 
template<class T >
StatusCode service (const std::string &name, const 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 &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
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...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
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)
 Declare used tool. More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
template<class T >
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, 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< IService, 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 Member Functions

std::map< std::string, AlgEntryinstantiateAndInitializeAlgorithms (const std::vector< std::string > &names) const
 
std::map< DataObjID, AlgEntry const * > mapProducers (std::map< std::string, AlgEntry > &algorithms) const
 
void visit (AlgEntry const &alg, std::vector< std::string > const &stoppers, std::vector< Gaudi::Algorithm * > &sorted, std::vector< bool > &visited, std::vector< bool > &visiting) const
 Implements DFS topological sorting. More...
 

Private Attributes

Gaudi::Property< std::stringm_dataLoader
 
Gaudi::Property< std::vector< std::string > > m_producers
 
std::map< std::string, AlgEntrym_algorithms
 
std::map< DataObjID, AlgEntry const * > m_dependencies
 

Additional Inherited Members

- Public Types inherited from extends< Service, IDataBroker >
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 Service
using Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IService, 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...
 
- Protected Member Functions inherited from Service
std::vector< IAlgTool * > & tools ()
 
 ~Service () override
 Standard Destructor
More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from CommonMessaging< implements< IService, 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 Service
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::Property< int > m_outputLevel { this, "OutputLevel", MSG::NIL, "output level" }
 flag indicating whether ToolHandle tools have been added to m_tools More...
 
Gaudi::Property< bool > m_auditInit { this, "AuditServices", false, "[[deprecated]] unused" }
 
Gaudi::Property< bool > m_auditorInitialize { this, "AuditInitialize", false, "trigger auditor on initialize()" }
 
Gaudi::Property< bool > m_auditorStart { this, "AuditStart", false, "trigger auditor on start()" }
 
Gaudi::Property< bool > m_auditorStop { this, "AuditStop", false, "trigger auditor on stop()" }
 
Gaudi::Property< bool > m_auditorFinalize { this, "AuditFinalize", false, "trigger auditor on finalize()" }
 
Gaudi::Property< bool > m_auditorReinitialize { this, "AuditReinitialize", false, "trigger auditor on reinitialize()" }
 
Gaudi::Property< bool > m_auditorRestart { this, "AuditRestart", false, "trigger auditor on restart()" }
 
Gaudi::Property< bool > m_autoRetrieveTools
 
Gaudi::Property< bool > m_checkToolDeps
 
SmartIF< IAuditorSvcm_pAuditorSvc
 Auditor Service
More...
 

Detailed Description

Definition at line 38 of file HiveDataBroker.cpp.

Member Function Documentation

◆ algorithmsRequiredFor() [1/2]

std::vector< Gaudi::Algorithm * > HiveDataBrokerSvc::algorithmsRequiredFor ( const DataObjIDColl requested,
const std::vector< std::string > &  stoppers = {} 
) const
override

Definition at line 308 of file HiveDataBroker.cpp.

309  {
311 
313  deps.reserve( requested.size() );
314 
315  // start with seeding from the initial request
316  for ( const auto& id : requested ) {
317  auto i = m_dependencies.find( id );
318  if ( i == m_dependencies.end() )
319  throw GaudiException( "unknown requested input: " + id.key(), __func__, StatusCode::FAILURE );
320  deps.push_back( i->second );
321  }
322  // producers may be responsible for multiple requested DataObjID -- make sure they are only mentioned once
323  std::sort( deps.begin(), deps.end(), []( auto const* lhs, auto const* rhs ) { return *lhs < *rhs; } );
324  deps.erase( std::unique( deps.begin(), deps.end(), []( auto const& lhs, auto const& rhs ) { return *lhs == *rhs; } ),
325  deps.end() );
326 
327  std::vector<bool> visited( m_algorithms.size() );
328  std::vector<bool> visiting( m_algorithms.size() );
329  for ( auto* alg : deps ) { visit( *alg, stoppers, result, visited, visiting ); }
330  return result;
331 }

◆ algorithmsRequiredFor() [2/2]

std::vector< Gaudi::Algorithm * > HiveDataBrokerSvc::algorithmsRequiredFor ( const Gaudi::Utils::TypeNameString alg,
const std::vector< std::string > &  stoppers = {} 
) const
override

Definition at line 334 of file HiveDataBroker.cpp.

335  {
337 
338  auto it = m_algorithms.find( requested.name() );
339  if ( it == end( m_algorithms ) ) {
340  throw GaudiException{ "No algorithm with name " + requested.name() + " in DataProducers. Type is " +
341  ( requested.haveType() ? requested.type() : "not specified" ),
342  __func__, StatusCode::FAILURE };
343  }
344  auto const& alg = it->second;
345  if ( requested.haveType() && alg.alg->type() != requested.type() ) {
346  error() << "requested " << requested << " but have matching name with different type: " << alg.alg->type()
347  << endmsg;
348  }
349  assert( alg.alg != nullptr );
350 
351  std::vector<bool> visited( m_algorithms.size() );
352  std::vector<bool> visiting( m_algorithms.size() );
353  visit( alg, stoppers, result, visited, visiting );
354 
355  if ( msgLevel( MSG::DEBUG ) ) {
356  debug() << std::endl << "requested " << requested << " returning " << std::endl << " ";
358  debug(), result, ",\n ",
359  []( auto& os, const Gaudi::Algorithm* a ) -> decltype( auto ) { return os << AlgorithmRepr{ *a }; } );
360  debug() << std::endl << endmsg;
361  }
362  return result;
363 }

◆ finalize()

StatusCode HiveDataBrokerSvc::finalize ( )
override

Definition at line 189 of file HiveDataBroker.cpp.

189  {
190  for ( auto& [name, algEntry] : m_algorithms ) {
191  algEntry.alg->sysFinalize().ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
192  }
193  m_algorithms.clear();
194  return Service::finalize();
195 }

◆ initialize()

StatusCode HiveDataBrokerSvc::initialize ( )
override

Definition at line 131 of file HiveDataBroker.cpp.

131  {
132  return Service::initialize().andThen( [&] {
133  // populate m_algorithms
135 
136  // warn about non-reentrant algorithms
137  ranges::for_each( m_algorithms | ranges::views::transform( []( const auto& entry ) { return entry.second.alg; } ) |
138  ranges::views::filter( []( const auto* alg ) { return alg->cardinality() > 0; } ),
139  [&]( const Gaudi::Algorithm* alg ) {
140  this->warning() << "non-reentrant algorithm: " << AlgorithmRepr{ *alg } << endmsg;
141  } );
142  //== Print the list of the created algorithms
143  if ( msgLevel( MSG::DEBUG ) ) {
144  MsgStream& msg = debug();
145  msg << "Available DataProducers: ";
147  msg, m_algorithms, ", ", []( auto& os, const std::pair<std::string, AlgEntry>& e ) -> decltype( auto ) {
148  return os << AlgorithmRepr{ *e.second.alg };
149  } );
150  msg << endmsg;
151  }
152 
153  // populate m_dependencies and set AlgEntry::dependsOn
155  } );
156 }

◆ instantiateAndInitializeAlgorithms()

std::map< std::string, HiveDataBrokerSvc::AlgEntry > HiveDataBrokerSvc::instantiateAndInitializeAlgorithms ( const std::vector< std::string > &  names) const
private

Definition at line 198 of file HiveDataBroker.cpp.

198  {
200 
201  //= Get the Application manager, to see if algorithm exist
202  auto appMgr = service<IAlgManager>( "ApplicationMgr" );
203  size_t index = 0;
204  for ( const std::string& item : names ) {
205  const Gaudi::Utils::TypeNameString tn( item );
206 
207  //== Check wether the specified algorithm already exists. If not, create it
208  SmartIF<IAlgorithm> myIAlg = appMgr->algorithm( item, false ); // do not create it now
209  if ( !myIAlg ) {
210  myIAlg = createAlgorithm( *appMgr, tn.type(), tn.name() );
211  } else {
212  // when the algorithm is not created, the ref count is short by one, so we
213  // have to fix it.
214  myIAlg->addRef();
215  }
216 
217  if ( !myIAlg ) {
218  throw GaudiException{ "Failed to create " + boost::lexical_cast<std::string>( item ), __func__,
220  }
221 
222  // propagate the sub-algorithm into own state.
223  StatusCode sc = myIAlg->sysInitialize();
224  if ( sc.isFailure() ) {
225  throw GaudiException{ "Failed to initialize " + boost::lexical_cast<std::string>( item ), __func__,
227  }
228 
229  algorithms.emplace( tn.name(), AlgEntry{ index++, std::move( myIAlg ) } );
230  }
231 
232  return algorithms;
233 }

◆ mapProducers()

std::map< DataObjID, HiveDataBrokerSvc::AlgEntry const * > HiveDataBrokerSvc::mapProducers ( std::map< std::string, AlgEntry > &  algorithms) const
private

Definition at line 236 of file HiveDataBroker.cpp.

236  {
237  if ( msgLevel( MSG::DEBUG ) ) {
238  debug() << "Data Dependencies for Algorithms:";
239  for ( const auto& [name, entry] : m_algorithms ) {
240  debug() << "\n " << name << " :";
241  for ( const auto* id : sorted_( entry.alg->inputDataObjs() ) ) { debug() << "\n o INPUT " << id->key(); }
242  for ( const auto* id : sorted_( entry.alg->outputDataObjs() ) ) { debug() << "\n o OUTPUT " << id->key(); }
243  }
244  debug() << endmsg;
245  }
246 
247  // figure out all outputs
249  for ( auto& [name, alg] : algorithms ) {
250  const auto& output = alg.alg->outputDataObjs();
251  if ( output.empty() ) { continue; }
252  for ( auto id : output ) {
253  auto r = producers.emplace( id, &alg );
254  if ( !r.second ) {
255  throw GaudiException( "multiple algorithms declare " + id.key() + " as output (" + name + " and " +
256  producers[id]->alg->name() + " at least). This is not allowed",
257  __func__, StatusCode::FAILURE );
258  }
259  }
260  }
261 
262  // resolve dependencies
263  for ( auto& [name, algEntry] : algorithms ) {
264  auto input = sorted_( algEntry.alg->inputDataObjs() );
265  for ( const DataObjID* idp : input ) {
266  DataObjID id = *idp;
267  auto iproducer = producers.find( id );
268  if ( iproducer != producers.end() ) {
269  algEntry.dependsOn.insert( iproducer->second );
270  } else {
271  std::ostringstream error_message;
272  error_message << "\nUnknown requested input by " << AlgorithmRepr{ *( algEntry.alg ) } << " : "
273  << std::quoted( id.key(), '\'' ) << ".\n";
274  error_message << "You can set the OutputLevel of HiveDataBrokerSvc to DEBUG to get a list of inputs and "
275  "outputs of every registered algorithm.\n";
276  throw GaudiException( error_message.str(), __func__, StatusCode::FAILURE );
277  // TODO: assign to dataloader!
278  // algEntry.dependsOn.insert(dataloader.alg);
279  // dataloader.data.emplace( id ); // TODO: we may ask to much of the
280  // dataloader this way...
281  }
282  }
283  }
284  return producers;
285 }

◆ start()

StatusCode HiveDataBrokerSvc::start ( )
override

Definition at line 158 of file HiveDataBroker.cpp.

158  {
159 
160  StatusCode ss = Service::start();
161  if ( !ss.isSuccess() ) return ss;
162 
163  // sysStart for m_algorithms
164  for ( auto& [name, algEntry] : m_algorithms ) {
165  ss = algEntry.alg->sysStart();
166  if ( ss.isFailure() ) {
167  error() << "Unable to start Algorithm: " << name << endmsg;
168  return ss;
169  }
170  }
171  return ss;
172 }

◆ stop()

StatusCode HiveDataBrokerSvc::stop ( )
override

Definition at line 174 of file HiveDataBroker.cpp.

174  {
175  StatusCode ss = Service::stop();
176  if ( !ss.isSuccess() ) return ss;
177 
178  // sysStart for m_algorithms
179  for ( auto& [name, algEntry] : m_algorithms ) {
180  ss = algEntry.alg->sysStop();
181  if ( ss.isFailure() ) {
182  error() << "Unable to stop Algorithm: " << name << endmsg;
183  return ss;
184  }
185  }
186  return ss;
187 }

◆ visit()

void HiveDataBrokerSvc::visit ( AlgEntry const &  alg,
std::vector< std::string > const &  stoppers,
std::vector< Gaudi::Algorithm * > &  sorted,
std::vector< bool > &  visited,
std::vector< bool > &  visiting 
) const
private

Implements DFS topological sorting.

Definition at line 288 of file HiveDataBroker.cpp.

290  {
291  assert( visited.size() == m_algorithms.size() );
292  assert( visiting.size() == m_algorithms.size() );
293  if ( visited[alg.index] ) { return; }
294  if ( visiting[alg.index] ) { throw GaudiException( "Cycle detected ", __func__, StatusCode::FAILURE ); }
295 
296  if ( std::none_of( std::begin( stoppers ), std::end( stoppers ),
297  [alg]( auto& stopper ) { return alg.alg->name() == stopper; } ) ) {
298  visiting[alg.index] = true;
299  for ( auto* dep : sorted_( alg.dependsOn ) ) { visit( *dep, stoppers, sorted, visited, visiting ); }
300  visiting[alg.index] = false;
301  }
302 
303  visited[alg.index] = true;
304  sorted.push_back( alg.alg );
305 }

Member Data Documentation

◆ m_algorithms

std::map<std::string, AlgEntry> HiveDataBrokerSvc::m_algorithms
private

Definition at line 81 of file HiveDataBroker.cpp.

◆ m_dataLoader

Gaudi::Property<std::string> HiveDataBrokerSvc::m_dataLoader
private
Initial value:
{ this, "DataLoader", "",
"Attribute any unmet input dependencies to this Algorithm" }

Definition at line 53 of file HiveDataBroker.cpp.

◆ m_dependencies

std::map<DataObjID, AlgEntry const*> HiveDataBrokerSvc::m_dependencies
private

Definition at line 85 of file HiveDataBroker.cpp.

◆ m_producers

Gaudi::Property<std::vector<std::string> > HiveDataBrokerSvc::m_producers
private
Initial value:
{
this, "DataProducers", {}, "List of algorithms to be used to resolve data dependencies" }

Definition at line 55 of file HiveDataBroker.cpp.


The documentation for this class was generated from the following file:
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:25
Histograms_with_global.algorithms
algorithms
Definition: Histograms_with_global.py:19
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
std::string
STL class.
HiveDataBrokerSvc::m_producers
Gaudi::Property< std::vector< std::string > > m_producers
Definition: HiveDataBroker.cpp:55
StatusCode::andThen
StatusCode andThen(F &&f, ARGS &&... args) const
Chain code blocks making the execution conditional a success result.
Definition: StatusCode.h:163
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
Service::start
StatusCode start() override
Definition: Service.cpp:187
std::pair
std::vector::reserve
T reserve(T... args)
std::vector< Gaudi::Algorithm * >
std::map::find
T find(T... args)
std::unordered_set::size
T size(T... args)
GaudiException
Definition: GaudiException.h:31
HiveDataBrokerSvc::AlgEntry::dependsOn
std::set< AlgEntry const * > dependsOn
Definition: HiveDataBroker.cpp:62
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
std::map::emplace
T emplace(T... args)
HiveDataBrokerSvc::mapProducers
std::map< DataObjID, AlgEntry const * > mapProducers(std::map< std::string, AlgEntry > &algorithms) const
Definition: HiveDataBroker.cpp:236
std::none_of
T none_of(T... args)
gaudirun.output
output
Definition: gaudirun.py:521
std::sort
T sort(T... args)
CommonMessaging< implements< IService, IProperty, IStateful > >::msgLevel
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Definition: CommonMessaging.h:148
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:222
std::vector::push_back
T push_back(T... args)
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:81
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:20
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:332
StatusCode
Definition: StatusCode.h:65
Gaudi::cxx::for_each
void for_each(ContainerOfSynced &c, Fun &&f)
Definition: SynchronizedValue.h:105
HiveDataBrokerSvc::m_algorithms
std::map< std::string, AlgEntry > m_algorithms
Definition: HiveDataBroker.cpp:81
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:90
HiveDataBrokerSvc::instantiateAndInitializeAlgorithms
std::map< std::string, AlgEntry > instantiateAndInitializeAlgorithms(const std::vector< std::string > &names) const
Definition: HiveDataBroker.cpp:198
std::vector::erase
T erase(T... args)
SmartIF< IAlgorithm >
HiveDataBrokerSvc::m_dependencies
std::map< DataObjID, AlgEntry const * > m_dependencies
Definition: HiveDataBroker.cpp:85
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
std::map
STL class.
MsgStream
Definition: MsgStream.h:33
DataObjID
Definition: DataObjID.h:47
std::ostringstream
STL class.
StatusCode::isFailure
bool isFailure() const
Definition: StatusCode.h:129
std::endl
T endl(T... args)
Service::stop
StatusCode stop() override
Definition: Service.cpp:181
std::vector::begin
T begin(T... args)
std::unique
T unique(T... args)
std::ostringstream::str
T str(T... args)
std::vector::end
T end(T... args)
IOTest.end
end
Definition: IOTest.py:125
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
HiveDataBrokerSvc::visit
void visit(AlgEntry const &alg, std::vector< std::string > const &stoppers, std::vector< Gaudi::Algorithm * > &sorted, std::vector< bool > &visited, std::vector< bool > &visiting) const
Implements DFS topological sorting.
Definition: HiveDataBroker.cpp:288
IOTest.appMgr
appMgr
Definition: IOTest.py:105
ProduceConsume.key
key
Definition: ProduceConsume.py:84
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39
GaudiUtils::details::ostream_joiner
Stream & ostream_joiner(Stream &os, Iterator first, Iterator last, Separator sep, OutputElement output=OutputElement{})
Definition: SerializeSTL.h:75