#include <VectorInputSourceFactory.h>
Public Member Functions | |
std::auto_ptr< VectorInputSource > | makeVectorInputSource (ParameterSet const &, InputSourceDescription const &) const |
~VectorInputSourceFactory () | |
Static Public Member Functions | |
static VectorInputSourceFactory * | get () |
Private Member Functions | |
VectorInputSourceFactory () | |
Static Private Attributes | |
static VectorInputSourceFactory | singleInstance_ |
Definition at line 17 of file VectorInputSourceFactory.h.
edm::VectorInputSourceFactory::~VectorInputSourceFactory | ( | ) |
Definition at line 13 of file VectorInputSourceFactory.cc.
{ }
edm::VectorInputSourceFactory::VectorInputSourceFactory | ( | ) | [private] |
Definition at line 17 of file VectorInputSourceFactory.cc.
{ }
VectorInputSourceFactory * edm::VectorInputSourceFactory::get | ( | void | ) | [static] |
Definition at line 23 of file VectorInputSourceFactory.cc.
References singleInstance_.
{ // will not work with plugin factories //static InputSourceFactory f; //return &f; return &singleInstance_; }
std::auto_ptr< VectorInputSource > edm::VectorInputSourceFactory::makeVectorInputSource | ( | ParameterSet const & | conf, |
InputSourceDescription const & | desc | ||
) | const |
Definition at line 33 of file VectorInputSourceFactory.cc.
References edm::errors::Configuration, SurfaceDeformationFactory::create(), Exception, FDEBUG, reco::get(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string modtype = conf.getParameter<std::string>("@module_type"); FDEBUG(1) << "VectorInputSourceFactory: module_type = " << modtype << std::endl; std::auto_ptr<VectorInputSource> wm(VectorInputSourcePluginFactory::get()->create(modtype,conf,desc)); if(wm.get()==0) { throw edm::Exception(errors::Configuration,"NoSourceModule") << "VectorInputSource Factory:\n" << "Cannot find source type from ParameterSet: " << modtype << "\n" << "Perhaps your source type is misspelled or is not an EDM Plugin?\n" << "Try running EdmPluginDump to obtain a list of available Plugins."; } FDEBUG(1) << "VectorInputSourceFactory: created input source " << modtype << std::endl; return wm; }
VectorInputSourceFactory edm::VectorInputSourceFactory::singleInstance_ [static, private] |
Definition at line 29 of file VectorInputSourceFactory.h.
Referenced by get().