1 #ifndef DataFormats_Provenance_ProductResolverIndexHelper_h 2 #define DataFormats_Provenance_ProductResolverIndexHelper_h 64 #include <unordered_map> 70 namespace productholderindexhelper {
119 char const* moduleLabel,
121 char const*
process = 0)
const;
129 unsigned int startInIndexAndNames,
130 unsigned int numberOfMatches);
134 bool isFullyResolved(
unsigned int i)
const;
135 char const* moduleLabel(
unsigned int i)
const;
150 char const* moduleLabel,
151 char const* instance)
const;
156 TypeID const& typeID)
const;
182 char const* moduleLabel,
183 char const* instance,
185 TypeID const& containedTypeID,
186 std::vector<TypeWithDict>* baseTypesOfContainedType);
190 char const* moduleLabel,
191 char const* instance,
199 std::vector<std::string>
const& lookupProcessNames()
const;
204 unsigned int begin()
const {
return begin_; }
214 index_(index), startInBigNamesContainer_(start), startInProcessNames_(startProcess) { }
226 std::vector<Range>
const&
ranges()
const {
return ranges_; }
227 std::vector<IndexAndNames>
const&
indexAndNames()
const {
return indexAndNames_; }
228 std::vector<char>
const&
processNames()
const {
return processNames_; }
233 unsigned int indexToIndexAndNames(
KindOfType kindOfType,
235 char const* moduleLabel,
236 char const* instance,
241 unsigned int indexToType(
KindOfType kindOfType,
TypeID const& typeID)
const;
245 unsigned int processIndex(
char const* process)
const;
250 void sanityCheck()
const;
255 void print(std::ostream& os)
const;
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
std::string const & process() const
TypeID getContainedType(TypeID const &typeID)
ProductResolverIndex nextIndexValue() const
void setIndex(ProductResolverIndex v)
std::vector< TypeID > sortedTypeIDs_
unsigned int startInBigNamesContainer_
std::unordered_multimap< std::string, ProductResolverIndex > ModulesToIndiciesMap
unsigned int ProductResolverIndex
std::vector< TypeID > const & sortedTypeIDs() const
ProductResolverIndex index_
TypeID getContainedTypeFromWrapper(TypeID const &wrappedtypeID, std::string const &className)
std::vector< l1t::Jet >::iterator end_
static PFTauRenderPlugin instance
std::vector< char > processNames_
ProductResolverIndex index_
std::vector< Range > const & ranges() const
unsigned int startInProcessNames() const
unsigned int startInBigNamesContainer() const
S & print(S &os, JobReport::InputFile const &f)
unsigned int startInIndexAndNames_
KindOfType kindOfType() const
TypeID const & typeID() const
Range(unsigned int begin, unsigned int end)
edm::propagate_const< std::unique_ptr< std::set< std::string > > > processItems_
ProductResolverIndex index() const
unsigned int startInProcessNames_
std::string const & moduleLabel() const
std::vector< IndexAndNames > const & indexAndNames() const
unsigned int numberOfMatches() const
std::vector< Range > ranges_
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
ProductResolverIndex index() const
ProductResolverIndex nextIndexValue_
std::vector< IndexAndNames > indexAndNames_
std::vector< std::string > lookupProcessNames_
unsigned int numberOfMatches_
ProductResolverIndexHelper const * productResolverIndexHelper_
unsigned int begin() const
std::vector< char > const & processNames() const
unsigned int beginElements_
IndexAndNames(ProductResolverIndex index, unsigned int start, unsigned int startProcess)
std::string const & instance() const
edm::propagate_const< std::unique_ptr< std::set< Item > > > items_
std::string className(const T &t)
unsigned int beginElements() const
std::vector< char > bigNamesContainer_