1 #ifndef Fireworks_FWGenericHandle_h 2 #define Fireworks_FWGenericHandle_h 57 "Handle<FWGenericObject> told to use uknown type '",
59 "'.\n Please check spelling or that a module uses this type in the job.");
65 type_(iType), prod_(), prov_(
nullptr) {
75 whyFailed_(h.whyFailed_)
108 return prod_ &&
nullptr!= prov_;
112 return nullptr != whyFailed_.get();
115 if(this->failedToGet()) {
128 void clear() { prov_ =
nullptr; whyFailed_.reset();}
131 whyFailed_=iWhyFailed;
edm::ObjectWithDict const * product() const
edm::ObjectWithDict prod_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void setWhyFailed(std::shared_ptr< cms::Exception > const &iWhyFailed)
edm::ObjectWithDict const * operator->() const
edm::TypeWithDict const & type() 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)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Provenance const * provenance() const
This class is just a 'tag' used to allow a specialization of edm::Handle.
Handle(std::string const &iName)
Throws exception if iName is not a known C++ class type.
void convert_handle(BasicHandle &&bh, Handle< T > &result)
std::shared_ptr< cms::Exception > whyFailed_
edm::ObjectWithDict const & operator*() const
Handle(Handle< FWGenericObject > const &h)
bool getByLabel(InputTag const &, Handle< T > &) const
Handle< FWGenericObject > FWGenericHandle