1 #ifndef DataFormats_Provenance_ProductRegistry_h
2 #define DataFormats_Provenance_ProductRegistry_h
19 #include "boost/array.hpp"
29 class ProductHolderIndexHelper;
53 void setFrozen(
bool initializeLookupInfo =
true);
90 for(ProductRegistry::ProductList::const_iterator itEntry =
productList_.begin(),
92 itEntry != itEntryEnd; ++itEntry) {
93 iFunc(itEntry->second);
98 void print(std::ostream& os)
const;
void initializeTransients()
void setProductProduced(BranchType branchType)
ProductHolderIndex & nextIndexValue(BranchType branchType)
std::vector< TypeID > & missingDictionariesForUpdate()
void throwIfNotFrozen() const
std::shared_ptr< ProductHolderIndexHelper const > runProductLookup() const
std::vector< std::string > allBranchNames() const
std::shared_ptr< ProductHolderIndexHelper > & runProductLookup()
std::map< BranchKey, BranchDescription const > ConstProductList
edm::propagate_const< std::shared_ptr< ProductHolderIndexHelper > > lumiProductLookup_
std::vector< TypeID > missingDictionaries_
edm::propagate_const< std::shared_ptr< ProductHolderIndexHelper > > runProductLookup_
std::map< BranchKey, BranchDescription > ProductList
ProductHolderIndex indexFrom(BranchID const &iID) const
bool anyProducts(BranchType const brType) const
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
ProductHolderIndex eventNextIndexValue_
std::shared_ptr< ProductHolderIndexHelper const > productLookup(BranchType branchType) const
void initializeLookupTables()
unsigned int ProductHolderIndex
ProductList::size_type size() const
ProductHolderIndex const & getNextIndexValue(BranchType branchType) const
void addLabelAlias(BranchDescription const &productdesc, std::string const &labelAlias, std::string const &instanceAlias)
virtual void addCalled(BranchDescription const &, bool iFromListener)
std::shared_ptr< ProductHolderIndexHelper > & lumiProductLookup()
std::vector< TypeID > const & missingDictionaries() const
ProductList const & productList() const
std::shared_ptr< ProductHolderIndexHelper const > lumiProductLookup() const
ProductHolderIndex lumiNextIndexValue_
std::shared_ptr< ProductHolderIndexHelper const > eventProductLookup() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
virtual ~ProductRegistry()
std::vector< BranchDescription const * > allBranchDescriptions() const
std::string merge(ProductRegistry const &other, std::string const &fileName, BranchDescription::MatchMode branchesMustMatch=BranchDescription::Permissive)
boost::array< bool, NumBranchTypes > productProduced_
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
void setFrozen(bool initializeLookupInfo=true)
void freezeIt(bool frozen=true)
void callForEachBranch(T const &iFunc)
void print(std::ostream &os) const
bool productProduced(BranchType branchType) const
ProductHolderIndex runNextIndexValue_
std::vector< std::pair< std::string, std::string > > const & aliasToOriginal() const
ProductList & productListUpdator()
std::vector< std::pair< std::string, std::string > > aliasToOriginal_
bool anyProductProduced() const
edm::propagate_const< std::shared_ptr< ProductHolderIndexHelper > > eventProductLookup_
void throwIfFrozen() const
void updateFromInput(ProductList const &other)
std::map< BranchID, ProductHolderIndex > branchIDToIndex_
std::shared_ptr< ProductHolderIndexHelper > & eventProductLookup()
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
void addProduct(BranchDescription const &productdesc, bool iFromListener=false)
void copyProduct(BranchDescription const &productdesc)