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 const VectorInputSourceFactory singleInstance_
 

Detailed Description

Definition at line 17 of file VectorInputSourceFactory.h.

Constructor & Destructor Documentation

◆ ~VectorInputSourceFactory()

edm::VectorInputSourceFactory::~VectorInputSourceFactory ( )

Definition at line 14 of file VectorInputSourceFactory.cc.

14 {}

◆ VectorInputSourceFactory()

edm::VectorInputSourceFactory::VectorInputSourceFactory ( )
private

Definition at line 16 of file VectorInputSourceFactory.cc.

16 {}

Member Function Documentation

◆ get()

VectorInputSourceFactory const * edm::VectorInputSourceFactory::get ( )
static

◆ makeVectorInputSource()

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

Definition at line 28 of file VectorInputSourceFactory.cc.

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  }

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

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

Member Data Documentation

◆ singleInstance_

const VectorInputSourceFactory edm::VectorInputSourceFactory::singleInstance_
staticprivate

Definition at line 28 of file VectorInputSourceFactory.h.

Referenced by get().

edm::VectorInputSourceFactory::singleInstance_
static const VectorInputSourceFactory singleInstance_
Definition: VectorInputSourceFactory.h:28
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FDEBUG
#define FDEBUG(lev)
Definition: DebugMacros.h:19
get
#define get
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Exception
Definition: hltDiff.cc:246
edm::errors::Configuration
Definition: EDMException.h:36