CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes

edm::VectorInputSourceFactory Class Reference

#include <VectorInputSourceFactory.h>

List of all members.

Public Member Functions

std::auto_ptr< VectorInputSourcemakeVectorInputSource (ParameterSet const &, InputSourceDescription const &) const
 ~VectorInputSourceFactory ()

Static Public Member Functions

static VectorInputSourceFactoryget ()

Private Member Functions

 VectorInputSourceFactory ()

Static Private Attributes

static VectorInputSourceFactory 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.

  {
  }
edm::VectorInputSourceFactory::VectorInputSourceFactory ( ) [private]

Definition at line 17 of file VectorInputSourceFactory.cc.

  {
  }

Member Function Documentation

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;
  }

Member Data Documentation

Definition at line 29 of file VectorInputSourceFactory.h.

Referenced by get().