CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LuminosityBlockBase.cc
Go to the documentation of this file.
1 // a))*- C++ -*-
2 //
3 // Package: DataFormats/FWLite
4 // Class : LuminosityBlockBase
5 //
14 //
15 // Original Author: Eric Vaandering
16 // Created: Wed Jan 13 15:01:20 EDT 2007
17 //
18 
19 // system include files
20 #include <iostream>
21 
22 // user include files
27 
28 static const edm::ProductID s_id;
30 static const edm::Provenance s_prov(boost::shared_ptr<edm::ConstBranchDescription>(&s_branch, edm::do_nothing_deleter()), s_id);
31 
32 namespace fwlite
33 {
35  {
36  }
37 
39  {
40  }
41 
43  LuminosityBlockBase::getByLabelImpl(std::type_info const& iWrapperInfo, std::type_info const& /*iProductInfo*/, const edm::InputTag& iTag) const {
45  getByLabel(iWrapperInfo,
46  iTag.label().c_str(),
47  iTag.instance().empty()?static_cast<char const*>(0):iTag.instance().c_str(),
48  iTag.process().empty()?static_cast<char const*> (0):iTag.process().c_str(),
49  edp);
50  if(!edp.isValid() || !edp.isPresent()) {
51  edm::TypeID productType(iWrapperInfo);
52  boost::shared_ptr<cms::Exception> whyFailed(new edm::Exception(edm::errors::ProductNotFound));
53  *whyFailed
54  << "getByLabel: Found zero products matching all criteria\n"
55  << "Looking for type: " << productType << "\n"
56  << "Looking for module label: " << iTag.label() << "\n"
57  << "Looking for productInstanceName: " << iTag.instance() << "\n"
58  << (iTag.process().empty() ? "" : "Looking for process: ") << iTag.process() << "\n";
59 
60  edm::BasicHandle failed(whyFailed);
61  return failed;
62  }
64  return value;
65  }
66 }
static const edm::Provenance s_prov(boost::shared_ptr< edm::ConstBranchDescription >(&s_branch, edm::do_nothing_deleter()), s_id)
static edm::ConstBranchDescription s_branch
virtual edm::BasicHandle getByLabelImpl(std::type_info const &, std::type_info const &, const edm::InputTag &) const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
string const
Definition: compareJSON.py:14
std::string const & label() const
Definition: InputTag.h:25
std::string const & process() const
Definition: InputTag.h:29
bool isValid() const
Definition: WrapperHolder.h:27
bool isPresent() const
Definition: WrapperHolder.h:64
std::string const & instance() const
Definition: InputTag.h:26
static const edm::ProductID s_id