85 if (!(*it)->singleProduct())
continue;
87 BranchID branchID = (*it)->branchDescription().branchID();
91 throw cms::Exception(
"BranchIDMissMatch") <<
"While processing " <<
id <<
" request for BranchID " << branchID <<
" returned BranchID " << oh.
desc()->
branchID() <<
"\n";
94 TypeID const& tid((*it)->branchDescription().unwrappedTypeID());
96 (*it)->branchDescription().moduleLabel(),
97 (*it)->branchDescription().productInstanceName(),
98 (*it)->branchDescription().processName());
105 if(0 != bh.provenance() && bh.provenance()->branchDescription().branchID() != branchID) {
106 throw cms::Exception(
"BranchIDMissMatch") <<
"While processing " <<
id <<
" getByLabel request for " << (*it)->branchDescription().moduleLabel()
107 <<
" '" << (*it)->branchDescription().productInstanceName() <<
"' " << (*it)->branchDescription().processName()
108 <<
"\n should have returned BranchID " << branchID <<
" but returned BranchID " << bh.provenance()->branchDescription().branchID() <<
"\n";
114 std::ostringstream str;
119 std::ostringstream str;
124 std::ostringstream str;
141 descriptions.
add(
"productChecker", desc);
const_iterator end() const
#define DEFINE_FWK_MODULE(type)
ConstBranchDescription const * desc() const
EventID const & id() const
virtual ~GetProductCheckerOutputModule()
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &)
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag) const
BranchID const & branchID() const
virtual void write(EventPrincipal const &e)
OutputHandle getForOutput(BranchID const &bid, bool getProd) const
static void check(Principal const &p, std::string const &id)
const_iterator begin() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
static void fillDescription(ParameterSetDescription &desc)
boost::filter_iterator< FilledProductPtr, ProductHolderCollection::const_iterator > const_iterator
GetProductCheckerOutputModule(ParameterSet const &pset)
LuminosityBlockID id() const
virtual void writeRun(RunPrincipal const &)