CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NoDelayedReader.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 ----------------------------------------------------------------------*/
3 
10 
11 namespace edm {
13 
14  std::auto_ptr<EDProduct>
16  EventPrincipal const* epr = dynamic_cast<EventPrincipal const*>(ep);
17  if (epr) {
18  throw edm::Exception(errors::LogicError,"NoDelayedReader")
19  << "getProduct() called for branchkey: " << k << " EventID: " << epr->id() << "\n";
20  }
21  RunPrincipal const* rpr = dynamic_cast<RunPrincipal const*>(ep);
22  if (rpr) {
23  throw edm::Exception(errors::LogicError,"NoDelayedReader")
24  << "getProduct() called for branchkey: " << k << " RunID: " << epr->id() << "\n";
25  }
26  LuminosityBlockPrincipal const* lpr = dynamic_cast<LuminosityBlockPrincipal const*>(ep);
27  if (lpr) {
28  throw edm::Exception(errors::LogicError,"NoDelayedReader")
29  << "getProduct() called for branchkey: " << k << " LuminosityBlockNumber_t: " << lpr->id() << "\n";
30  }
31  throw edm::Exception(errors::LogicError,"NoDelayedReader")
32  << "getProduct() called for branchkey: " << k << "\n";
33  }
34 }
EventID const & id() const
virtual std::auto_ptr< EDProduct > getProduct_(BranchKey const &k, EDProductGetter const *ep) const
int k[5][pyjets_maxn]
string const
Definition: compareJSON.py:14