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::DigiAccumulatorMixModFactory Class Reference

#include <DigiAccumulatorMixModFactory.h>

Public Member Functions

std::unique_ptr
< DigiAccumulatorMixMod
makeDigiAccumulator (ParameterSet const &, stream::EDProducerBase &, 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 18 of file DigiAccumulatorMixModFactory.h.

Constructor & Destructor Documentation

edm::DigiAccumulatorMixModFactory::~DigiAccumulatorMixModFactory ( )

Definition at line 16 of file DigiAccumulatorMixModFactory.cc.

16  {
17  }
edm::DigiAccumulatorMixModFactory::DigiAccumulatorMixModFactory ( )
private

Definition at line 19 of file DigiAccumulatorMixModFactory.cc.

19  {
20  }

Member Function Documentation

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

Definition at line 33 of file DigiAccumulatorMixModFactory.cc.

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

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

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

Member Data Documentation

DigiAccumulatorMixModFactory const edm::DigiAccumulatorMixModFactory::singleInstance_
staticprivate

Definition at line 29 of file DigiAccumulatorMixModFactory.h.

Referenced by get().