CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
LocalMaximumSeedFinder.cc File Reference
#include "LocalMaximumSeedFinder.h"

Go to the source code of this file.

Functions

 for (const auto &pset:thresholds)
 

Function Documentation

for ( const auto &pset:thresholds  )

Definition at line 30 of file LocalMaximumSeedFinder.cc.

References LocalMaximumSeedFinder::_layerMap, LocalMaximumSeedFinder::_thresholds, Exception, and AlCaHLTBitMon_QueryRunRegistry::string.

30  : thresholds ) {
31  const std::string& det = pset.getParameter<std::string>("detector");
32  const double& thresh_E = pset.getParameter<double>("seedingThreshold");
33  const double& thresh_pT = pset.getParameter<double>("seedingThresholdPt");
34  const double thresh_pT2 = thresh_pT*thresh_pT;
35  auto entry = _layerMap.find(det);
36  if( entry == _layerMap.end() ) {
37  throw cms::Exception("InvalidDetectorLayer")
38  << "Detector layer : " << det << " is not in the list of recognized"
39  << " detector layers!";
40  }
41  _thresholds.emplace(_layerMap.find(det)->second,
42  std::make_pair(thresh_E,thresh_pT2));
43  }