The Gaudi Framework  v36r9p1 (5c15b2bb)
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::vector< AlgEntryinstantiateAndInitializeAlgorithms (const std::vector< std::string > &names) const
 
std::map< DataObjID, AlgEntry * > mapProducers (std::vector< AlgEntry > &algorithms) const
 

Private Attributes

Gaudi::Property< std::stringm_dataLoader
 
Gaudi::Property< std::vector< std::string > > m_producers
 
std::vector< AlgEntrym_algorithms
 
std::vector< AlgEntrym_cfnodes
 
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 270 of file HiveDataBroker.cpp.

271  {
273 
275  deps.reserve( requested.size() );
276 
277  // start with seeding from the initial request
278  for ( const auto& req : requested ) {
279  DataObjID id = req;
280  if ( id.key().find( ":" ) != std::string::npos ) {
281  warning() << req.key() << " contains alternatives which require resolution...\n";
282  auto tokens = boost::tokenizer<boost::char_separator<char>>{ id.key(), boost::char_separator<char>{ ":" } };
283  auto itok = std::find_if( tokens.begin(), tokens.end(),
284  [&]( DataObjID t ) { return m_dependencies.find( t ) != m_dependencies.end(); } );
285  if ( itok != tokens.end() ) {
286  warning() << "found matching output for " << *itok << " -- updating info\n";
287  id.updateKey( *itok );
288  warning() << "Please update input to not require alternatives, and "
289  "instead properly configure the dataloader"
290  << endmsg;
291  } else {
292  error() << "failed to find alternate in global output list"
293  << " for id: " << id << endmsg;
294  }
295  }
296  auto i = m_dependencies.find( id );
297  if ( i == m_dependencies.end() )
298  throw GaudiException( "unknown requested input: " + id.key(), __func__, StatusCode::FAILURE );
299  deps.push_back( i->second );
300  }
301  // producers may be responsible for multiple requested DataObjID -- make sure they are only mentioned once
302  std::sort( deps.begin(), deps.end() );
303  deps.erase( std::unique( deps.begin(), deps.end() ), deps.end() );
304 
305  // insert the (direct) dependencies of 'current' right after 'current', and
306  // interate until done...
307  for ( auto current = deps.begin(); current != deps.end(); ++current ) {
308  if ( std::any_of( std::begin( stoppers ), std::end( stoppers ),
309  [current]( auto& stopper ) { return ( *current )->alg->name() == stopper; } ) ) {
310  continue;
311  }
312  for ( auto* entry : ( *current )->dependsOn ) {
313  if ( std::find( std::next( current ), deps.end(), entry ) != deps.end() ) continue; // already there downstream...
314 
315  auto dup = std::find( deps.begin(), current, entry );
316  // if present upstream, move it downstream. Otherwise, insert
317  // downstream...
318  current = std::prev( dup != current ? std::rotate( dup, std::next( dup ), std::next( current ) )
319  : deps.insert( std::next( current ), entry ) );
320  }
321  }
322  auto range = ( deps | ranges::views::transform( []( auto& i ) { return i->alg; } ) | ranges::views::reverse );
323  return { begin( range ), end( range ) };
324 }

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

328  {
330 
331  auto alg = std::find_if( begin( m_cfnodes ), end( m_cfnodes ),
332  [&]( const AlgEntry& ae ) { return ae.alg->name() == requested.name(); } );
333 
334  if ( alg != end( m_cfnodes ) && alg->alg->type() != requested.type() ) {
335  error() << "requested " << requested << " but have matching name with different type: " << alg->alg->type()
336  << endmsg;
337  }
338  if ( alg == end( m_cfnodes ) ) {
339  auto av = instantiateAndInitializeAlgorithms( { requested.type() + '/' + requested.name() } );
340  assert( av.size() == 1 );
341  m_cfnodes.push_back( std::move( av.front() ) );
342  alg = std::next( m_cfnodes.rbegin() ).base();
343  }
344  assert( alg != end( m_cfnodes ) );
345  assert( alg->alg != nullptr );
346  if ( std::find_if( std::begin( stoppers ), std::end( stoppers ),
347  [&requested]( auto& stopper ) { return requested.name() == stopper; } ) == std::end( stoppers ) ) {
348  result = algorithmsRequiredFor( alg->alg->inputDataObjs(), stoppers );
349  }
350  result.push_back( alg->alg );
351  if ( msgLevel( MSG::DEBUG ) ) {
352  debug() << std::endl << "requested " << requested << " returning " << std::endl << " ";
354  debug(), result, ",\n ",
355  []( auto& os, const Gaudi::Algorithm* a ) -> decltype( auto ) { return os << AlgorithmRepr{ *a }; } );
356  debug() << std::endl << endmsg;
357  }
358  return result;
359 }

◆ finalize()

StatusCode HiveDataBrokerSvc::finalize ( )
override

Definition at line 145 of file HiveDataBroker.cpp.

145  {
146  ranges::for_each( m_algorithms | ranges::views::transform( &AlgEntry::alg ), []( Gaudi::Algorithm* alg ) {
147  alg->sysFinalize().ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
148  } );
149  m_algorithms.clear();
150  return Service::finalize();
151 }

◆ 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.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, ", ",
89  []( auto& os, const AlgEntry& e ) -> decltype( auto ) { return os << AlgorithmRepr{ *e.alg }; } );
90  msg << endmsg;
91  }
92 
93  // populate m_dependencies
95  } );
96 }

◆ instantiateAndInitializeAlgorithms()

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

Definition at line 155 of file HiveDataBroker.cpp.

155  {
157 
158  //= Get the Application manager, to see if algorithm exist
159  auto appMgr = service<IAlgManager>( "ApplicationMgr" );
160  for ( const Gaudi::Utils::TypeNameString item : names ) {
161  const std::string& theName = item.name();
162  const std::string& theType = item.type();
163 
164  //== Check wether the specified algorithm already exists. If not, create it
165  SmartIF<IAlgorithm> myIAlg = appMgr->algorithm( item, false ); // do not create it now
166  if ( !myIAlg ) {
167  myIAlg = createAlgorithm( *appMgr, theType, theName );
168  } else {
169  // when the algorithm is not created, the ref count is short by one, so we
170  // have to fix it.
171  myIAlg->addRef();
172  }
173 
174  if ( !myIAlg ) {
175  throw GaudiException{ "Failed to create " + boost::lexical_cast<std::string>( item ), __func__,
177  }
178 
179  // propagate the sub-algorithm into own state.
180  StatusCode sc = myIAlg->sysInitialize();
181  if ( sc.isFailure() ) {
182  throw GaudiException{ "Failed to initialize " + boost::lexical_cast<std::string>( item ), __func__,
184  }
185 
186  algorithms.emplace_back( std::move( myIAlg ) );
187  }
188 
189  return algorithms;
190 }

◆ mapProducers()

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

Definition at line 193 of file HiveDataBroker.cpp.

193  {
194  if ( msgLevel( MSG::DEBUG ) ) {
195  debug() << "Data Dependencies for Algorithms:";
196  for ( const auto& entry : m_algorithms ) {
197  debug() << "\n " << entry.alg->name() << " :";
198  for ( const auto* id : sortedDataObjIDColl( entry.alg->inputDataObjs() ) ) {
199  debug() << "\n o INPUT " << id->key();
200  }
201  for ( const auto* id : sortedDataObjIDColl( entry.alg->outputDataObjs() ) ) {
202  debug() << "\n o OUTPUT " << id->key();
203  }
204  }
205  debug() << endmsg;
206  }
207 
208  // figure out all outputs
210  for ( AlgEntry& alg : algorithms ) {
211  const auto& output = alg.alg->outputDataObjs();
212  if ( output.empty() ) { continue; }
213  for ( auto id : output ) {
214  if ( id.key().find( ":" ) != std::string::npos ) {
215  error() << " in Alg " << AlgorithmRepr{ *alg.alg } << " alternatives are NOT allowed for outputs! id: " << id
216  << endmsg;
217  }
218 
219  auto r = producers.emplace( id, &alg );
220  if ( !r.second ) {
221  throw GaudiException( "multiple algorithms declare " + id.key() + " as output (" + alg.alg->name() + " and " +
222  producers[id]->alg->name() + " at least). This is not allowed",
223  __func__, StatusCode::FAILURE );
224  }
225  }
226  }
227 
228  // resolve dependencies
229  for ( auto& algEntry : algorithms ) {
230  auto input = sortedDataObjIDColl( algEntry.alg->inputDataObjs() );
231  for ( const DataObjID* idp : input ) {
232  DataObjID id = *idp;
233  if ( id.key().find( ":" ) != std::string::npos ) {
234  warning() << AlgorithmRepr{ *( algEntry.alg ) } << " contains alternatives which require resolution...\n";
235  auto tokens = boost::tokenizer<boost::char_separator<char>>{ id.key(), boost::char_separator<char>{ ":" } };
236  auto itok = std::find_if( tokens.begin(), tokens.end(),
237  [&]( DataObjID t ) { return producers.find( t ) != producers.end(); } );
238  if ( itok != tokens.end() ) {
239  warning() << "found matching output for " << *itok << " -- updating info\n";
240  id.updateKey( *itok );
241  warning() << "Please update input to not require alternatives, and "
242  "instead properly configure the dataloader"
243  << endmsg;
244  } else {
245  error() << "failed to find alternate in global output list"
246  << " for id: " << id << " in Alg " << algEntry.alg << endmsg;
247  }
248  }
249  auto iproducer = producers.find( id );
250  if ( iproducer != producers.end() ) {
251  algEntry.dependsOn.insert( iproducer->second );
252  } else {
253  std::ostringstream error_message;
254  error_message << "\nUnknown requested input by " << AlgorithmRepr{ *( algEntry.alg ) } << " : "
255  << std::quoted( id.key(), '\'' ) << ".\n";
256  error_message << "You can set the OutputLevel of HiveDataBrokerSvc to DEBUG to get a list of inputs and "
257  "outputs of every registered algorithm.\n";
258  throw GaudiException( error_message.str(), __func__, StatusCode::FAILURE );
259  // TODO: assign to dataloader!
260  // algEntry.dependsOn.insert(dataloader.alg);
261  // dataloader.data.emplace( id ); // TODO: we may ask to much of the
262  // dataloader this way...
263  }
264  }
265  }
266  return producers;
267 }

◆ start()

StatusCode HiveDataBrokerSvc::start ( )
override

Definition at line 98 of file HiveDataBroker.cpp.

98  {
99 
100  StatusCode ss = Service::start();
101  if ( !ss.isSuccess() ) return ss;
102 
103  // sysStart for m_algorithms
104  for ( AlgEntry& algEntry : m_algorithms ) {
105  ss = algEntry.alg->sysStart();
106  if ( ss.isFailure() ) {
107  error() << "Unable to start Algorithm: " << algEntry.alg->name() << endmsg;
108  return ss;
109  }
110  }
111  // sysStart for m_cfnodes
112  for ( AlgEntry& algEntry : m_cfnodes ) {
113  ss = algEntry.alg->sysStart();
114  if ( ss.isFailure() ) {
115  error() << "Unable to start Algorithm: " << algEntry.alg->name() << endmsg;
116  return ss;
117  }
118  }
119  return ss;
120 }

◆ stop()

StatusCode HiveDataBrokerSvc::stop ( )
override

Definition at line 122 of file HiveDataBroker.cpp.

122  {
123  StatusCode ss = Service::stop();
124  if ( !ss.isSuccess() ) return ss;
125 
126  // sysStart for m_algorithms
127  for ( AlgEntry& algEntry : m_algorithms ) {
128  ss = algEntry.alg->sysStop();
129  if ( ss.isFailure() ) {
130  error() << "Unable to stop Algorithm: " << algEntry.alg->name() << endmsg;
131  return ss;
132  }
133  }
134  // sysStart for m_cfnodes
135  for ( AlgEntry& algEntry : m_cfnodes ) {
136  ss = algEntry.alg->sysStop();
137  if ( ss.isFailure() ) {
138  error() << "Unable to stop Algorithm: " << algEntry.alg->name() << endmsg;
139  return ss;
140  }
141  }
142  return ss;
143 }

Member Data Documentation

◆ m_algorithms

std::vector<AlgEntry> HiveDataBrokerSvc::m_algorithms
private

Definition at line 55 of file HiveDataBroker.h.

◆ m_cfnodes

std::vector<AlgEntry> HiveDataBrokerSvc::m_cfnodes
mutableprivate

Definition at line 57 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 61 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::vector::reserve
T reserve(T... args)
reverse
::details::reverse_wrapper< T > reverse(T &&iterable)
Definition: reverse.h:59
std::vector< Gaudi::Algorithm * >
std::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_algorithms
std::vector< AlgEntry > m_algorithms
Definition: HiveDataBroker.h:55
std::rotate
T rotate(T... args)
HiveDataBrokerSvc::m_dependencies
std::map< DataObjID, AlgEntry * > m_dependencies
Definition: HiveDataBroker.h:61
std::any_of
T any_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
basic.alg
alg
Definition: basic.py:15
std::vector::push_back
T push_back(T... args)
bug_34121.t
t
Definition: bug_34121.py:30
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:20
StatusCode
Definition: StatusCode.h:65
HistoDumpEx.r
r
Definition: HistoDumpEx.py:20
HiveDataBrokerSvc::instantiateAndInitializeAlgorithms
std::vector< AlgEntry > instantiateAndInitializeAlgorithms(const std::vector< std::string > &names) const
Definition: HiveDataBroker.cpp:155
Histograms_with_global.algorithms
list algorithms
Definition: Histograms_with_global.py:19
CLHEP::begin
double * begin(CLHEP::HepVector &v)
Definition: TupleAlg.cpp:45
HiveDataBrokerSvc::algorithmsRequiredFor
std::vector< Gaudi::Algorithm * > algorithmsRequiredFor(const DataObjIDColl &requested, const std::vector< std::string > &stoppers={}) const override
Definition: HiveDataBroker.cpp:270
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:90
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
IOTest.end
def end
Definition: IOTest.py:128
DataObjID
Definition: DataObjID.h:47
HiveDataBrokerSvc::mapProducers
std::map< DataObjID, AlgEntry * > mapProducers(std::vector< AlgEntry > &algorithms) const
Definition: HiveDataBroker.cpp:193
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::vector::insert
T insert(T... args)
std::unique
T unique(T... args)
DataObjID::key
const std::string & key() const
only return the last part of the key
Definition: DataObjID.h:60
std::ostringstream::str
T str(T... args)
HiveDataBrokerSvc::m_cfnodes
std::vector< AlgEntry > m_cfnodes
Definition: HiveDataBroker.h:57
std::vector::end
T end(T... args)
HiveDataBrokerSvc::AlgEntry::alg
Gaudi::Algorithm * alg
Definition: HiveDataBroker.h:39
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
std::prev
T prev(T... args)
IOTest.appMgr
appMgr
Definition: IOTest.py:108
ProduceConsume.key
key
Definition: ProduceConsume.py:81
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: FunctionalDetails.h:102
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:40
std::next
T next(T... args)