CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
edm::DigiAccumulatorMixModFactory Class Reference

#include <DigiAccumulatorMixModFactory.h>

Public Member Functions

std::unique_ptr
< DigiAccumulatorMixMod
makeDigiAccumulator (ParameterSet const &, ProducesCollector, ConsumesCollector &) const
 
 ~DigiAccumulatorMixModFactory ()
 

Static Public Member Functions

static
DigiAccumulatorMixModFactory
const * 
get ()
 

Private Member Functions

 DigiAccumulatorMixModFactory ()
 

Static Private Attributes

static
DigiAccumulatorMixModFactory
const 
singleInstance_
 

Detailed Description

Definition at line 15 of file DigiAccumulatorMixModFactory.h.

Constructor & Destructor Documentation

edm::DigiAccumulatorMixModFactory::~DigiAccumulatorMixModFactory ( )

Definition at line 12 of file DigiAccumulatorMixModFactory.cc.

12 {}
edm::DigiAccumulatorMixModFactory::DigiAccumulatorMixModFactory ( )
private

Definition at line 14 of file DigiAccumulatorMixModFactory.cc.

14 {}

Member Function Documentation

DigiAccumulatorMixModFactory const * edm::DigiAccumulatorMixModFactory::get ( )
static
std::unique_ptr< DigiAccumulatorMixMod > edm::DigiAccumulatorMixModFactory::makeDigiAccumulator ( ParameterSet const &  conf,
ProducesCollector  producesCollector,
ConsumesCollector iC 
) const

Definition at line 26 of file DigiAccumulatorMixModFactory.cc.

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

Referenced by edm::MixingModule::createDigiAccumulators().

27  {
28  std::string accumulatorType = conf.getParameter<std::string>("accumulatorType");
29  FDEBUG(1) << "DigiAccumulatorMixModFactory: digi_accumulator_type = " << accumulatorType << std::endl;
30  auto wm = DigiAccumulatorMixModPluginFactory::get()->create(accumulatorType, conf, producesCollector, iC);
31 
32  if (wm.get() == nullptr) {
33  throw edm::Exception(errors::Configuration, "NoSourceModule")
34  << "DigiAccumulator Factory:\n"
35  << "Cannot find dig type from ParameterSet: " << accumulatorType << "\n"
36  << "Perhaps your source type is misspelled or is not an EDM Plugin?\n"
37  << "Try running EdmPluginDump to obtain a list of available Plugins.";
38  }
39 
40  FDEBUG(1) << "DigiAccumulatorMixModFactory: created a Digi Accumulator " << accumulatorType << std::endl;
41 
42  return wm;
43  }
#define FDEBUG(lev)
Definition: DebugMacros.h:19
#define get

Member Data Documentation

DigiAccumulatorMixModFactory const edm::DigiAccumulatorMixModFactory::singleInstance_
staticprivate

Definition at line 27 of file DigiAccumulatorMixModFactory.h.

Referenced by get().