![]() |
![]() |
#include <EDProductGetter.h>
Public Member Functions | |
EDProductGetter () | |
virtual EDProduct const * | getIt (ProductID const &) const =0 |
ProductID | oldToNewProductID (ProductID const &oldProductID) const |
virtual | ~EDProductGetter () |
Static Public Member Functions | |
static void | assignEDProductGetter (EDProductGetter const *&) |
static EDProductGetter const * | switchProductGetter (EDProductGetter const *) |
These can only be used internally by the framework. | |
Private Member Functions | |
virtual ProductID | oldToNewProductID_ (ProductID const &oldProductID) const |
Definition at line 32 of file EDProductGetter.h.
EDProductGetter::EDProductGetter | ( | ) |
Definition at line 31 of file EDProductGetter.cc.
{ }
EDProductGetter::~EDProductGetter | ( | ) | [virtual] |
Definition at line 40 of file EDProductGetter.cc.
{ }
void EDProductGetter::assignEDProductGetter | ( | EDProductGetter const *& | iGetter | ) | [static] |
Definition at line 94 of file EDProductGetter.cc.
References edm::s_productGetter.
{ //std::cout <<"assign "<<s_productGetter<<std::endl; iGetter = s_productGetter; }
Implemented in fwlite::internal::ProductGetter, fwlite::internal::MultiProductGetter, edm::EventPrincipal, edm::Principal, BareRootProductGetter, and edm::StreamerInputSource::ProductGetter.
Referenced by edm::Ptr< pat::MET >::getData_(), edm::PtrVectorBase::getProduct_(), edm::RefCore::getProductPtr(), and edm::RefCore::isAvailable().
Definition at line 44 of file EDProductGetter.h.
References edm::ProductID::oldID(), and oldToNewProductID_().
Referenced by edm::ProductIDStreamer::operator()().
{ if (oldProductID.oldID() == 0) return oldProductID; return oldToNewProductID_(oldProductID); }
ProductID EDProductGetter::oldToNewProductID_ | ( | ProductID const & | oldProductID | ) | const [private, virtual] |
Reimplemented in edm::EventPrincipal.
Definition at line 68 of file EDProductGetter.cc.
References Exception, and edm::errors::LogicError.
Referenced by oldToNewProductID().
{ throw edm::Exception(errors::LogicError) << "Internal error: Call of oldToNewProductID_ for non-EventPrincipal.\n" << "Please report this error to the Framework group\n"; }
EDProductGetter const * EDProductGetter::switchProductGetter | ( | EDProductGetter const * | iNew | ) | [static] |
These can only be used internally by the framework.
Definition at line 86 of file EDProductGetter.cc.
References edm::s_productGetter.
Referenced by edm::setRefCoreStreamer(), and fwlite::setRefStreamer().
{ //std::cout <<"switch from "<<s_productGetter<<" to "<<iNew<<std::endl; EDProductGetter const* old = s_productGetter; s_productGetter = iNew; return old; }