35 char const* principalType,
40 <<
"::put: A null auto_ptr was passed to 'put'.\n"
41 <<
"The pointer is of type "
43 <<
".\nThe specified productInstanceName was '"
44 << productInstanceName
50 char const* principalType,
56 <<
"::getByLabel: An attempt was made to read a "
58 <<
" product before end"
61 <<
"The product is of type '"
63 <<
"'.\nThe specified ModuleLabel was '"
65 <<
"'.\nThe specified productInstanceName was '"
66 << productInstanceName
72 char const* principalType,
73 TypeID const& productType) {
76 <<
"::getManyByType: An attempt was made to read a "
78 <<
" product before end"
81 <<
"The product is of type '"
88 char const* principalType,
92 <<
"::getByToken: An attempt was made to read a "
94 <<
" product before end"
97 <<
"The index of the token was "<<token.
index()<<
".\n";
107 TypeID const& productType,
116 *exception <<
"Principal::getByToken: Found zero products matching all criteria\nLooking for type: " << productType <<
"\n"
117 <<
"Looking for module label: " << labels.
module <<
"\n" <<
"Looking for productInstanceName: " << labels.
productInstance <<
"\n"
118 << (0==labels.
process[0] ?
"" :
"Looking for process: ") << labels.
process <<
"\n";
120 *exception <<
"Principal::getByToken: Found zero products matching all criteria\nLooking for a container with elements of type: " << productType <<
"\n"
121 <<
"Looking for module label: " << labels.
module <<
"\n" <<
"Looking for productInstanceName: " << labels.
productInstance <<
"\n"
122 << (0==labels.
process[0] ?
"" :
"Looking for process: ") << labels.
process <<
"\n";
134 exception <<
"Principal::getByToken: More than 1 product matches all criteria\nLooking for a container with elements of type: " << productType <<
"\n"
135 <<
"Looking for module label: " << labels.
module <<
"\n" <<
"Looking for productInstanceName: " << labels.
productInstance <<
"\n"
136 << (0==labels.
process[0] ?
"" :
"Looking for process: ") << labels.
process <<
"\n"
137 <<
"This can only occur with get function calls using a Handle<View> argument.\n"
138 <<
"Try a get not using a View or change the instance name of one of the products";
175 bool ambiguous =
false;
229 <<
"Illegal attempt to 'put' an unregistered product.\n"
230 <<
"No product is registered for\n"
233 <<
" product instance name: '" << productInstanceName <<
"'\n"
236 <<
"The ProductRegistry contains:\n"
ProcessHistory const & processHistory() const
SharedResourcesAcquirer * resourcesAcquirer_
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
ProductRegistry const & productRegistry() const
BasicHandle getMatchingSequenceByLabel_(TypeID const &typeID, InputTag const &tag, ModuleCallingContext const *mcc) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
std::string const & processName() const
static PFTauRenderPlugin instance
ProductHolderIndex index(KindOfType kindOfType, TypeID const &typeID, char const *moduleLabel, char const *instance, char const *process=0) const
PrincipalGetAdapter(Principal const &pcpl, ModuleDescription const &md)
ProductHolderIndexAndSkipBit indexFrom(EDGetToken, BranchType, TypeID const &) const
bool skipCurrentProcess() const
EDConsumerBase const * consumer_
unsigned int ProductHolderIndex
std::string const & moduleLabel() const
ProcessHistory const & processHistory() const
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
BranchType const & branchType() const
BasicHandle getByToken(KindOfType kindOfType, TypeID const &typeID, ProductHolderIndex index, bool skipCurrentProcess, bool &ambiguous, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
EDProductGetter const * prodGetter() const
BranchDescription const & branchDescription() const
ConstProductHolderPtr getProductHolderByIndex(ProductHolderIndex const &oid) const
BranchType const & branchType() const
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
BranchDescription const & getBranchDescription(TypeID const &type, std::string const &productInstanceName) const
void getManyByType_(TypeID const &tid, BasicHandleVec &results, ModuleCallingContext const *mcc) const
BasicHandle makeFailToGetException(KindOfType, TypeID const &, EDGetToken) const
Principal const & principal_
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
char const * productInstance
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleDescription const & md_
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
EDProductGetter const * prodGetter() const
ProductHolderIndex productHolderIndex() const
void throwAmbiguousException(TypeID const &productType, EDGetToken token) const
unsigned int index() const
void getManyByType(TypeID const &typeID, BasicHandleVec &results, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
void labelsForToken(EDGetToken const &iToken, ProductLabels &oLabels) const
std::vector< BasicHandle > BasicHandleVec
ProductHolderIndexHelper const & productLookup() const
std::string friendlyClassName() const