The Gaudi Framework  master (594c33fa)
HiveDataBrokerSvc Class Referencefinal

#include </builds/gaudi/Gaudi/GaudiHive/src/HiveDataBroker.h>

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, 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 * > 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 * > 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 17 of file HiveDataBroker.h.

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 254 of file HiveDataBroker.cpp.

255  {
257 
259  deps.reserve( requested.size() );
260 
261  // start with seeding from the initial request
262  for ( const auto& req : requested ) {
263  DataObjID id = req;
264  auto i = m_dependencies.find( id );
265  if ( i == m_dependencies.end() )
266  throw GaudiException( "unknown requested input: " + id.key(), __func__, StatusCode::FAILURE );
267  deps.push_back( i->second );
268  }
269  // producers may be responsible for multiple requested DataObjID -- make sure they are only mentioned once
270  std::sort( deps.begin(), deps.end() );
271  deps.erase( std::unique( deps.begin(), deps.end() ), deps.end() );
272 
273  std::vector<bool> visited( m_algorithms.size() );
274  std::vector<bool> visiting( m_algorithms.size() );
275  for ( auto* alg : deps ) { visit( *alg, stoppers, result, visited, visiting ); }
276  return result;
277 }

◆ 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 280 of file HiveDataBroker.cpp.

281  {
283 
284  auto it = m_algorithms.find( requested.name() );
285  if ( it == end( m_algorithms ) ) {
286  throw GaudiException{ "No algorithm with name " + requested.name() + " in DataProducers. Type is " +
287  ( requested.haveType() ? requested.type() : "not specified" ),
288  __func__, StatusCode::FAILURE };
289  }
290  auto const& alg = it->second;
291  if ( requested.haveType() && alg.alg->type() != requested.type() ) {
292  error() << "requested " << requested << " but have matching name with different type: " << alg.alg->type()
293  << endmsg;
294  }
295  assert( alg.alg != nullptr );
296 
297  std::vector<bool> visited( m_algorithms.size() );
298  std::vector<bool> visiting( m_algorithms.size() );
299  visit( alg, stoppers, result, visited, visiting );
300 
301  if ( msgLevel( MSG::DEBUG ) ) {
302  debug() << std::endl << "requested " << requested << " returning " << std::endl << " ";
304  debug(), result, ",\n ",
305  []( auto& os, const Gaudi::Algorithm* a ) -> decltype( auto ) { return os << AlgorithmRepr{ *a }; } );
306  debug() << std::endl << endmsg;
307  }
308  return result;
309 }

◆ finalize()

StatusCode HiveDataBrokerSvc::finalize ( )
override

Definition at line 130 of file HiveDataBroker.cpp.

130  {
131  for ( auto& [name, algEntry] : m_algorithms ) {
132  algEntry.alg->sysFinalize().ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
133  }
134  m_algorithms.clear();
135  return Service::finalize();
136 }

◆ initialize()

StatusCode HiveDataBrokerSvc::initialize ( )
override

Definition at line 72 of file HiveDataBroker.cpp.

72  {
73  return Service::initialize().andThen( [&] {
74  // populate m_algorithms
76 
77  // warn about non-reentrant algorithms
78  ranges::for_each( m_algorithms | ranges::views::transform( []( const auto& entry ) { return entry.second.alg; } ) |
79  ranges::views::filter( []( const auto* alg ) { return alg->cardinality() > 0; } ),
80  [&]( const Gaudi::Algorithm* alg ) {
81  this->warning() << "non-reentrant algorithm: " << AlgorithmRepr{ *alg } << endmsg;
82  } );
83  //== Print the list of the created algorithms
84  if ( msgLevel( MSG::DEBUG ) ) {
85  MsgStream& msg = debug();
86  msg << "Available DataProducers: ";
88  msg, m_algorithms, ", ", []( auto& os, const std::pair<std::string, AlgEntry>& e ) -> decltype( auto ) {
89  return os << AlgorithmRepr{ *e.second.alg };
90  } );
91  msg << endmsg;
92  }
93 
94  // populate m_dependencies and set AlgEntry::dependsOn
96  } );
97 }

◆ instantiateAndInitializeAlgorithms()

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

Definition at line 139 of file HiveDataBroker.cpp.

139  {
141 
142  //= Get the Application manager, to see if algorithm exist
143  auto appMgr = service<IAlgManager>( "ApplicationMgr" );
144  size_t index = 0;
145  for ( const Gaudi::Utils::TypeNameString item : names ) {
146  const std::string& theName = item.name();
147  const std::string& theType = item.type();
148 
149  //== Check wether the specified algorithm already exists. If not, create it
150  SmartIF<IAlgorithm> myIAlg = appMgr->algorithm( item, false ); // do not create it now
151  if ( !myIAlg ) {
152  myIAlg = createAlgorithm( *appMgr, theType, theName );
153  } else {
154  // when the algorithm is not created, the ref count is short by one, so we
155  // have to fix it.
156  myIAlg->addRef();
157  }
158 
159  if ( !myIAlg ) {
160  throw GaudiException{ "Failed to create " + boost::lexical_cast<std::string>( item ), __func__,
162  }
163 
164  // propagate the sub-algorithm into own state.
165  StatusCode sc = myIAlg->sysInitialize();
166  if ( sc.isFailure() ) {
167  throw GaudiException{ "Failed to initialize " + boost::lexical_cast<std::string>( item ), __func__,
169  }
170 
171  algorithms.emplace( theName, AlgEntry{ index++, std::move( myIAlg ) } );
172  }
173 
174  return algorithms;
175 }

◆ mapProducers()

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

Definition at line 178 of file HiveDataBroker.cpp.

178  {
179  if ( msgLevel( MSG::DEBUG ) ) {
180  debug() << "Data Dependencies for Algorithms:";
181  for ( const auto& [name, entry] : m_algorithms ) {
182  debug() << "\n " << name << " :";
183  for ( const auto* id : sortedDataObjIDColl( entry.alg->inputDataObjs() ) ) {
184  debug() << "\n o INPUT " << id->key();
185  }
186  for ( const auto* id : sortedDataObjIDColl( entry.alg->outputDataObjs() ) ) {
187  debug() << "\n o OUTPUT " << id->key();
188  }
189  }
190  debug() << endmsg;
191  }
192 
193  // figure out all outputs
195  for ( auto& [name, alg] : algorithms ) {
196  const auto& output = alg.alg->outputDataObjs();
197  if ( output.empty() ) { continue; }
198  for ( auto id : output ) {
199  auto r = producers.emplace( id, &alg );
200  if ( !r.second ) {
201  throw GaudiException( "multiple algorithms declare " + id.key() + " as output (" + name + " and " +
202  producers[id]->alg->name() + " at least). This is not allowed",
203  __func__, StatusCode::FAILURE );
204  }
205  }
206  }
207 
208  // resolve dependencies
209  for ( auto& [name, algEntry] : algorithms ) {
210  auto input = sortedDataObjIDColl( algEntry.alg->inputDataObjs() );
211  for ( const DataObjID* idp : input ) {
212  DataObjID id = *idp;
213  auto iproducer = producers.find( id );
214  if ( iproducer != producers.end() ) {
215  algEntry.dependsOn.insert( iproducer->second );
216  } else {
217  std::ostringstream error_message;
218  error_message << "\nUnknown requested input by " << AlgorithmRepr{ *( algEntry.alg ) } << " : "
219  << std::quoted( id.key(), '\'' ) << ".\n";
220  error_message << "You can set the OutputLevel of HiveDataBrokerSvc to DEBUG to get a list of inputs and "
221  "outputs of every registered algorithm.\n";
222  throw GaudiException( error_message.str(), __func__, StatusCode::FAILURE );
223  // TODO: assign to dataloader!
224  // algEntry.dependsOn.insert(dataloader.alg);
225  // dataloader.data.emplace( id ); // TODO: we may ask to much of the
226  // dataloader this way...
227  }
228  }
229  }
230  return producers;
231 }

◆ start()

StatusCode HiveDataBrokerSvc::start ( )
override

Definition at line 99 of file HiveDataBroker.cpp.

99  {
100 
101  StatusCode ss = Service::start();
102  if ( !ss.isSuccess() ) return ss;
103 
104  // sysStart for m_algorithms
105  for ( auto& [name, algEntry] : m_algorithms ) {
106  ss = algEntry.alg->sysStart();
107  if ( ss.isFailure() ) {
108  error() << "Unable to start Algorithm: " << name << endmsg;
109  return ss;
110  }
111  }
112  return ss;
113 }

◆ stop()

StatusCode HiveDataBrokerSvc::stop ( )
override

Definition at line 115 of file HiveDataBroker.cpp.

115  {
116  StatusCode ss = Service::stop();
117  if ( !ss.isSuccess() ) return ss;
118 
119  // sysStart for m_algorithms
120  for ( auto& [name, algEntry] : m_algorithms ) {
121  ss = algEntry.alg->sysStop();
122  if ( ss.isFailure() ) {
123  error() << "Unable to stop Algorithm: " << name << endmsg;
124  return ss;
125  }
126  }
127  return ss;
128 }

◆ 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 234 of file HiveDataBroker.cpp.

236  {
237  assert( visited.size() == m_algorithms.size() );
238  assert( visiting.size() == m_algorithms.size() );
239  if ( visited[alg.index] ) { return; }
240  if ( visiting[alg.index] ) { throw GaudiException( "Cycle detected ", __func__, StatusCode::FAILURE ); }
241 
242  if ( std::none_of( std::begin( stoppers ), std::end( stoppers ),
243  [alg]( auto& stopper ) { return alg.alg->name() == stopper; } ) ) {
244  visiting[alg.index] = true;
245  for ( auto* dep : alg.dependsOn ) { visit( *dep, stoppers, sorted, visited, visiting ); }
246  visiting[alg.index] = false;
247  }
248 
249  visited[alg.index] = true;
250  sorted.push_back( alg.alg );
251 }

Member Data Documentation

◆ m_algorithms

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

Definition at line 56 of file HiveDataBroker.h.

◆ 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 32 of file HiveDataBroker.h.

◆ m_dependencies

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

Definition at line 60 of file HiveDataBroker.h.

◆ 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 34 of file HiveDataBroker.h.


The documentation for this class was generated from the following files:
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:25
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.h:34
StatusCode::andThen
StatusCode andThen(F &&f, ARGS &&... args) const
Chain code blocks making the execution conditional a success result.
Definition: StatusCode.h:163
std::move
T move(T... args)
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
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
std::map::emplace
T emplace(T... args)
HiveDataBrokerSvc::m_dependencies
std::map< DataObjID, AlgEntry * > m_dependencies
Definition: HiveDataBroker.h:60
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
HiveDataBrokerSvc::mapProducers
std::map< DataObjID, AlgEntry * > mapProducers(std::map< std::string, AlgEntry > &algorithms) const
Definition: HiveDataBroker.cpp:178
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.h:56
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:139
std::vector::erase
T erase(T... args)
SmartIF< IAlgorithm >
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
std::map
STL class.
MsgStream
Definition: MsgStream.h:34
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
event_timeout_check.algorithms
algorithms
Definition: event_timeout_check.py:40
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:234
IOTest.appMgr
appMgr
Definition: IOTest.py:105
ProduceConsume.key
key
Definition: ProduceConsume.py:81
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:73
HiveDataBrokerSvc::AlgEntry::dependsOn
std::set< AlgEntry * > dependsOn
Definition: HiveDataBroker.h:41