CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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< DigiAccumulatorMixModmakeDigiAccumulator (ParameterSet const &, ProducesCollector, ConsumesCollector &) const
 
 ~DigiAccumulatorMixModFactory ()
 

Static Public Member Functions

static DigiAccumulatorMixModFactory const * get ()
 

Private Member Functions

 DigiAccumulatorMixModFactory ()
 

Static Private Attributes

static const DigiAccumulatorMixModFactory singleInstance_
 

Detailed Description

Definition at line 15 of file DigiAccumulatorMixModFactory.h.

Constructor & Destructor Documentation

◆ ~DigiAccumulatorMixModFactory()

edm::DigiAccumulatorMixModFactory::~DigiAccumulatorMixModFactory ( )

Definition at line 12 of file DigiAccumulatorMixModFactory.cc.

12 {}

◆ DigiAccumulatorMixModFactory()

edm::DigiAccumulatorMixModFactory::DigiAccumulatorMixModFactory ( )
private

Definition at line 14 of file DigiAccumulatorMixModFactory.cc.

14 {}

Member Function Documentation

◆ get()

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

◆ makeDigiAccumulator()

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

Definition at line 26 of file DigiAccumulatorMixModFactory.cc.

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  }

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

Member Data Documentation

◆ singleInstance_

const DigiAccumulatorMixModFactory edm::DigiAccumulatorMixModFactory::singleInstance_
staticprivate

Definition at line 27 of file DigiAccumulatorMixModFactory.h.

Referenced by get().

edm::DigiAccumulatorMixModFactory::singleInstance_
static const DigiAccumulatorMixModFactory singleInstance_
Definition: DigiAccumulatorMixModFactory.h:27
recoTrackAccumulator_cfi.accumulatorType
accumulatorType
Definition: recoTrackAccumulator_cfi.py:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FDEBUG
#define FDEBUG(lev)
Definition: DebugMacros.h:19
get
#define get
Exception
Definition: hltDiff.cc:246
edm::errors::Configuration
Definition: EDMException.h:36