CMS 3D CMS Logo

List of all members | Static Public Member Functions
StripClusterizerAlgorithmFactory Class Reference

#include <StripClusterizerAlgorithmFactory.h>

Static Public Member Functions

static std::unique_ptr< StripClusterizerAlgorithmcreate (const edm::ParameterSet &)
 

Detailed Description

Definition at line 10 of file StripClusterizerAlgorithmFactory.h.

Member Function Documentation

◆ create()

std::unique_ptr< StripClusterizerAlgorithm > StripClusterizerAlgorithmFactory::create ( const edm::ParameterSet conf)
static

Definition at line 8 of file StripClusterizerAlgorithmFactory.cc.

8  {
9  std::string algorithm = conf.getParameter<std::string>("Algorithm");
10 
11  if (algorithm == "ThreeThresholdAlgorithm") {
12  return std::unique_ptr<StripClusterizerAlgorithm>(
13  new ThreeThresholdAlgorithm(conf.getParameter<double>("ChannelThreshold"),
14  conf.getParameter<double>("SeedThreshold"),
15  conf.getParameter<double>("ClusterThreshold"),
16  conf.getParameter<unsigned>("MaxSequentialHoles"),
17  conf.getParameter<unsigned>("MaxSequentialBad"),
18  conf.getParameter<unsigned>("MaxAdjacentBad"),
19  conf.getParameter<std::string>("QualityLabel"),
20  conf.getParameter<bool>("RemoveApvShots"),
21  clusterChargeCut(conf)));
22  }
23 
24  if (algorithm == "OldThreeThresholdAlgorithm") {
25  throw cms::Exception("[StripClusterizerAlgorithmFactory] obsolete") << algorithm << " Obsolete since 7_3_0";
26  }
27 
28  throw cms::Exception("[StripClusterizerAlgorithmFactory] Unregistered Algorithm")
29  << algorithm << " is not a registered StripClusterizerAlgorithm";
30 }

References qcdUeDQM_cfi::algorithm, clusterChargeCut(), Exception, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
qcdUeDQM_cfi.algorithm
algorithm
Definition: qcdUeDQM_cfi.py:32
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Exception
Definition: hltDiff.cc:246
ThreeThresholdAlgorithm
Definition: ThreeThresholdAlgorithm.h:6
clusterChargeCut
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
Definition: ClusterChargeCut.h:7