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"
#include <algorithm>
#include <queue>
#include <cfloat>
#include "CommonTools/Utils/interface/DynArray.h"
#include "FWCore/MessageLogger/interface/MessageLogger.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 31 of file LocalMaximumSeedFinder.cc.

References LocalMaximumSeedFinder::_layerMap, LocalMaximumSeedFinder::_thresholds, mps_splice::entry, Exception, LocalMaximumSeedFinder::layerOffset, TrackValidation_cff::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

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