test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< VectorInputSource
makeVectorInputSource (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  {
15  }
edm::VectorInputSourceFactory::VectorInputSourceFactory ( )
private

Definition at line 17 of file VectorInputSourceFactory.cc.

17  {
18  }

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 31 of file VectorInputSourceFactory.cc.

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

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

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

Member Data Documentation

VectorInputSourceFactory const edm::VectorInputSourceFactory::singleInstance_
staticprivate

Definition at line 29 of file VectorInputSourceFactory.h.

Referenced by get().