1 #ifndef Fireworks_FWGenericHandle_h 2 #define Fireworks_FWGenericHandle_h 54 "Handle<FWGenericObject> told to use uknown type '",
56 "'.\n Please check spelling or that a module uses this type in the job.");
68 : type_(
h.type_), prod_(
h.prod_),
prov_(
h.
prov_), whyFailed_(
h.whyFailed_) {}
96 bool failedToGet()
const {
return nullptr != whyFailed_.get(); }
116 void setWhyFailed(std::shared_ptr<cms::Exception>
const& iWhyFailed) { whyFailed_ = iWhyFailed; }
edm::ObjectWithDict prod_
void setWhyFailed(std::shared_ptr< cms::Exception > const &iWhyFailed)
T const * product() const
ProductID const & productID() const
bool getByLabel(InputTag const &, Handle< T > &) const
edm::ObjectWithDict const * operator->() const
Handle(edm::TypeWithDict const &iType)
Throws exception if iType is invalid.
void swap(Handle< FWGenericObject > &other)
void swap(Association< C > &lhs, Association< C > &rhs)
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Handle< FWGenericObject > & operator=(Handle< FWGenericObject > const &rhs)
Handle(edm::ObjectWithDict const &prod, Provenance const *prov, ProductID const &pid)
This class is just a 'tag' used to allow a specialization of edm::Handle.
edm::ObjectWithDict const & operator*() const
Handle(std::string const &iName)
Throws exception if iName is not a known C++ class type.
void swap(HandleBase &other)
edm::ObjectWithDict const * product() const
Handle< T > convert_handle(BasicHandle &&bh) noexcept(true)
std::shared_ptr< cms::Exception > whyFailed_
edm::TypeWithDict const & type() const
Provenance const * provenance() const
Handle(Handle< FWGenericObject > const &h)
Handle< FWGenericObject > FWGenericHandle
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.