1 #ifndef GAUDIHIVE_DATAFLOWMANAGER_H
2 #define GAUDIHIVE_DATAFLOWMANAGER_H
5 #include "GaudiKernel/IAlgorithm.h"
6 #include <GaudiKernel/SmartIF.h>
9 #include "boost/dynamic_bitset.hpp"
15 #include <unordered_map>
51 std::vector<std::string>
content()
const;
66 inline long int productName2index(
const std::string& productName){
return m_productName_index_map.count(productName)>0 ? m_productName_index_map[productName]: -1 ;};
boost::dynamic_bitset dependency_bitset
Type holding the dependencies for one single algorithm.
The DataFlowManager takes care of keeping track of the dependencies of the algorithms in terms of dat...
std::vector< std::vector< std::string > > algosDependenciesCollection
std::vector< std::string > content() const
Get the content of the catalog.
std::vector< std::string > dataDependencies(unsigned int iAlgo) const
Get the dependencies of a single algo;.
long int productName2index(const std::string &productName)
Simple helper method to convert the product name into an index.
static std::vector< dependency_bitset > m_algosRequirements
Requirements of algos. Static since the same for all events.
void updateDataObjectsCatalog(const std::vector< std::string > &newProducts)
Update the catalog of available products in the slot.
static std::unordered_map< std::string, long int > m_productName_index_map
Track the products, assigning an index to them. Static since the same for all events.
static std::vector< std::string > m_productName_vec
Track the products, assigning an index to them. Static since the same for all events.
void reset()
Reset to default values.
dependency_bitset m_dataObjectsCatalog
Catalog of the products in the whiteboard.
DataFlowManager(const std::list< IAlgorithm * > &)
Constructor.
bool canAlgorithmRun(unsigned int iAlgo)
Needed data products are available.
std::string & index2productName(const unsigned int i)
Simple helper method to convert an index to a product name.