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 &, InputSourceDescription 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 13 of file VectorInputSourceFactory.cc.

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

Definition at line 16 of file VectorInputSourceFactory.cc.

16  {
17  }

Member Function Documentation

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

Definition at line 30 of file VectorInputSourceFactory.cc.

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

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