35 char const* principalType,
40 <<
"::put: A null unique_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;
228 std::ostringstream
str;
231 str << *branchDescription<<
"-----\n";
235 <<
"Illegal attempt to 'put' an unregistered product.\n" 236 <<
"No product is registered for\n" 239 <<
" product instance name: '" << productInstanceName <<
"'\n" 242 <<
"The following data products are registered for production by "<<
md_.
moduleLabel()<<
":\n" 245 <<
"To correct the problem:\n" 246 " 1) make sure the proper 'produce' call is being made in the module's constructor,\n" 247 " 2) if 'produce' exists and uses a product instance name make sure that same name is used during the 'put' call.";
250 assert(phb !=
nullptr);
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
unsigned int ProductResolverIndex
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
PrincipalGetAdapter(Principal const &pcpl, ModuleDescription const &md)
EDConsumerBase const * consumer_
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
bool skipCurrentProcess() const
EDProductGetter const * prodGetter() const
ProductResolverIndexAndSkipBit indexFrom(EDGetToken, BranchType, TypeID const &) const
BranchType const & branchType() const
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
std::vector< BranchDescription const * > allBranchDescriptions() const
BranchDescription const & getBranchDescription(TypeID const &type, std::string const &productInstanceName) const
ProductResolverIndex productResolverIndex() const
ProductResolverIndexHelper const & productLookup() 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
ProductResolverIndex index(KindOfType kindOfType, TypeID const &typeID, char const *moduleLabel, char const *instance, char const *process=0) const
BranchDescription const & branchDescription() const
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleDescription const & md_
BasicHandle getByToken(KindOfType kindOfType, TypeID const &typeID, ProductResolverIndex index, bool skipCurrentProcess, bool &ambiguous, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
EDProductGetter const * prodGetter() 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
std::string friendlyClassName() const