Go to the documentation of this file. 1 #ifndef DataFormats_Provenance_ProductRegistry_h
2 #define DataFormats_Provenance_ProductRegistry_h
26 #include <string_view>
33 class ProductResolverIndexHelper;
60 void setFrozen(
bool initializeLookupInfo =
true);
62 void setFrozen(std::set<TypeID>
const& productTypesConsumed,
63 std::set<TypeID>
const& elementTypesConsumed,
104 itEntry != itEntryEnd;
106 iFunc(itEntry->second);
111 void print(std::ostream& os)
const;
134 std::string_view productInstanceName)
const;
171 std::set<TypeID>
const* elementTypesConsumed,
174 std::map<TypeID, TypeID>
const& containedTypeMap,
175 std::map<
TypeID, std::vector<TypeWithDict>>
const& containedTypeToBaseTypesMap);
178 std::set<TypeID>
const* elementTypesConsumed,
179 std::map<TypeID, TypeID>
const& containedTypeMap,
180 std::map<
TypeID, std::vector<TypeWithDict>>& containedTypeToBaseTypesMap);
195 return a.productList() ==
b.productList();
void callForEachBranch(T const &iFunc)
std::array< bool, NumBranchTypes > productProduced_
void checkDictionariesOfConsumedTypes(std::set< TypeID > const *productTypesConsumed, std::set< TypeID > const *elementTypesConsumed, std::map< TypeID, TypeID > const &containedTypeMap, std::map< TypeID, std::vector< TypeWithDict >> &containedTypeToBaseTypesMap)
unsigned int ProductResolverIndex
ProductResolverIndex indexFrom(BranchID const &iID) const
std::vector< std::string > allBranchNames() const
void setFrozen(bool initializeLookupInfo=true)
std::array< edm::propagate_const< std::shared_ptr< ProductResolverIndexHelper > >, NumBranchTypes > productLookups_
ProductList::size_type size() const
void checkForDuplicateProcessName(BranchDescription const &desc, std::string const *processName) const
virtual ~ProductRegistry()
void updateFromInput(ProductList const &other)
std::shared_ptr< ProductResolverIndexHelper const > productLookup(BranchType branchType) const
std::array< ProductResolverIndex, NumBranchTypes > nextIndexValues_
ProductResolverIndex const & getNextIndexValue(BranchType branchType) const
void print(std::ostream &os) const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
AliasToOriginalVector aliasToOriginal_
bool anyProducts(BranchType const brType) const
ProductList & productListUpdator()
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
void throwIfFrozen() const
void addProduct(BranchDescription const &productdesc, bool iFromListener=false)
void throwIfNotFrozen() const
void copyProduct(BranchDescription const &productdesc)
std::map< BranchID, ProductResolverIndex > branchIDToIndex_
std::map< BranchKey, BranchDescription > ProductList
std::map< BranchKey, BranchDescription const > ConstProductList
std::vector< std::tuple< KindOfType, TypeID, std::string, std::string, std::string > > AliasToOriginalVector
std::vector< BranchDescription const * > allBranchDescriptions() const
void addLabelAlias(BranchDescription const &productdesc, std::string const &labelAlias, std::string const &instanceAlias)
void initializeTransients()
void setProductProduced(BranchType branchType)
void initializeLookupTables(std::set< TypeID > const *productTypesConsumed, std::set< TypeID > const *elementTypesConsumed, std::string const *processName)
ProductList const & productList() const
virtual void addCalled(BranchDescription const &, bool iFromListener)
bool productProduced(BranchType branchType) const
std::vector< std::string > aliasToModules(KindOfType kindOfType, TypeID const &type, std::string_view moduleLabel, std::string_view productInstanceName) const
ProductResolverIndex & nextIndexValue(BranchType branchType)
std::string merge(ProductRegistry const &other, std::string const &fileName, BranchDescription::MatchMode branchesMustMatch=BranchDescription::Permissive)
void addElementTypesForAliases(std::set< TypeID > const *elementTypesConsumed, std::map< TypeID, TypeID > const &containedTypeMap, std::map< TypeID, std::vector< TypeWithDict >> const &containedTypeToBaseTypesMap)
bool anyProductProduced() const
void freezeIt(bool frozen=true)
void setUnscheduledProducts(std::set< std::string > const &unscheduledLabels)