CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
edm::VectorInputSourceFactory Class Reference

#include <VectorInputSourceFactory.h>

Public Member Functions

std::unique_ptr< VectorInputSourcemakeVectorInputSource (ParameterSet const &, VectorInputSourceDescription const &) const
 
 ~VectorInputSourceFactory ()
 

Static Public Member Functions

static VectorInputSourceFactory const * get ()
 

Private Member Functions

 VectorInputSourceFactory ()
 

Static Private Attributes

static VectorInputSourceFactory const singleInstance_
 

Detailed Description

Definition at line 17 of file VectorInputSourceFactory.h.

Constructor & Destructor Documentation

edm::VectorInputSourceFactory::~VectorInputSourceFactory ( )

Definition at line 14 of file VectorInputSourceFactory.cc.

14 {}
edm::VectorInputSourceFactory::VectorInputSourceFactory ( )
private

Definition at line 16 of file VectorInputSourceFactory.cc.

References singleInstance_.

16 {}

Member Function Documentation

VectorInputSourceFactory const * edm::VectorInputSourceFactory::get ( )
static
std::unique_ptr< VectorInputSource > edm::VectorInputSourceFactory::makeVectorInputSource ( ParameterSet const &  conf,
VectorInputSourceDescription const &  desc 
) const

Definition at line 28 of file VectorInputSourceFactory.cc.

References edm::errors::Configuration, beamerCreator::create(), Exception, FDEBUG, reco::get(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by sistrip::SpyEventMatcher::constructSource().

29  {
30  std::string modtype = conf.getParameter<std::string>("@module_type");
31  FDEBUG(1) << "VectorInputSourceFactory: module_type = " << modtype << std::endl;
32  std::unique_ptr<VectorInputSource> wm(VectorInputSourcePluginFactory::get()->create(modtype, conf, desc));
33 
34  if (wm.get() == nullptr) {
35  throw edm::Exception(errors::Configuration, "NoSourceModule")
36  << "VectorInputSource Factory:\n"
37  << "Cannot find source type from ParameterSet: " << modtype << "\n"
38  << "Perhaps your source type is misspelled or is not an EDM Plugin?\n"
39  << "Try running EdmPluginDump to obtain a list of available Plugins.";
40  }
41 
42  FDEBUG(1) << "VectorInputSourceFactory: created input source " << modtype << std::endl;
43 
44  return wm;
45  }
def create(alignables, pedeDump, additionalData, outputFile, config)
#define FDEBUG(lev)
Definition: DebugMacros.h:19
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

VectorInputSourceFactory const edm::VectorInputSourceFactory::singleInstance_
staticprivate

Definition at line 28 of file VectorInputSourceFactory.h.

Referenced by get(), and VectorInputSourceFactory().