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 algorithm(), edm::hlt::Exception, and edm::ParameterSet::getParameter().

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  }
23 
24  if(algorithm == "OldThreeThresholdAlgorithm") {
25  return std::auto_ptr<StripClusterizerAlgorithm>(
27  conf.getParameter<double>("ChannelThreshold"),
28  conf.getParameter<double>("SeedThreshold"),
29  conf.getParameter<double>("ClusterThreshold"),
30  conf.getParameter<unsigned>("MaxSequentialHoles"),
31  conf.getParameter<std::string>("QualityLabel") ));
32  }
33 
34  throw cms::Exception("[StripClusterizerAlgorithmFactory] Unregistered Algorithm")
35  << algorithm << " is not a registered StripClusterizerAlgorithm";
36 }
T getParameter(std::string const &) const
< trclass="colgroup">< tdclass="colgroup"colspan=5 > Ecal cluster collections</td ></tr >< tr >< td >< ahref="classreco_1_1BasicCluster.html"> reco::BasicCluster</a ></td >< td >< ahref="DataFormats_EgammaReco.html"> reco::BasicClusterCollection</a ></td >< td >< ahref="#"> hybridSuperClusters</a ></td >< tdclass="description"> Basic clusters reconstructed with hybrid algorithm(barrel only)</td >< td >S.Rahatlou</td ></tr >< tr >< td >< a href