CMS 3D CMS Logo

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 &, ProducerBase &, 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  {
13  }
edm::DigiAccumulatorMixModFactory::DigiAccumulatorMixModFactory ( )
private

Definition at line 15 of file DigiAccumulatorMixModFactory.cc.

References singleInstance_.

15  {
16  }

Member Function Documentation

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

Definition at line 29 of file DigiAccumulatorMixModFactory.cc.

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

Referenced by edm::MixingModule::createDigiAccumulators(), and edm::DataMixingModule::DataMixingModule().

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

Member Data Documentation

DigiAccumulatorMixModFactory const edm::DigiAccumulatorMixModFactory::singleInstance_
staticprivate

Definition at line 26 of file DigiAccumulatorMixModFactory.h.

Referenced by DigiAccumulatorMixModFactory(), and get().