CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/Common/src/HandleBase.cc

Go to the documentation of this file.
00001 #include "DataFormats/Common/interface/HandleBase.h"
00002 #include "DataFormats/Provenance/interface/Provenance.h"
00003 #include "FWCore/Utilities/interface/Exception.h"
00004 
00005 namespace edm {
00006   void const*
00007   HandleBase::productStorage() const {
00008     if (whyFailed_) {
00009       throw *whyFailed_;
00010     }
00011     return product_;
00012   }
00013 
00014   ProductID
00015   HandleBase::id() const {
00016     if (whyFailed_) {
00017       throw *whyFailed_;
00018     }
00019     return prov_->productID();
00020   }
00021 }