CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
StripClusterizerAlgorithmFactory Class Reference

#include <StripClusterizerAlgorithmFactory.h>

Static Public Member Functions

static std::auto_ptr
< StripClusterizerAlgorithm
create (const edm::ParameterSet &)
 

Detailed Description

Definition at line 8 of file StripClusterizerAlgorithmFactory.h.

Member Function Documentation

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

Definition at line 9 of file StripClusterizerAlgorithmFactory.cc.

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

Referenced by SiStripClusterInfo::reclusterize().

9  {
10  std::string algorithm = conf.getParameter<std::string>("Algorithm");
11 
12  if(algorithm == "ThreeThresholdAlgorithm") {
13  return std::auto_ptr<StripClusterizerAlgorithm>(
15  conf.getParameter<double>("ChannelThreshold"),
16  conf.getParameter<double>("SeedThreshold"),
17  conf.getParameter<double>("ClusterThreshold"),
18  conf.getParameter<unsigned>("MaxSequentialHoles"),
19  conf.getParameter<unsigned>("MaxSequentialBad"),
20  conf.getParameter<unsigned>("MaxAdjacentBad"),
21  conf.getParameter<std::string>("QualityLabel"),
22  conf.getParameter<bool>("RemoveApvShots"),
23  clusterChargeCut(conf)
24  ));
25  }
26 
27  if(algorithm == "OldThreeThresholdAlgorithm") {
28  throw cms::Exception("[StripClusterizerAlgorithmFactory] obsolete")
29  << algorithm << " Obsolete since 7_3_0";
30 
31  }
32 
33  throw cms::Exception("[StripClusterizerAlgorithmFactory] Unregistered Algorithm")
34  << algorithm << " is not a registered StripClusterizerAlgorithm";
35 }
T getParameter(std::string const &) const
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")