test
CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

 for (const auto &pset:thresholds)
 

Function Documentation

for ( const auto &pset:thresholds  )

Definition at line 78 of file SpikeAndDoubleSpikeCleaner.cc.

References SpikeAndDoubleSpikeCleaner::_layerMap, SpikeAndDoubleSpikeCleaner::_thresholds, mps_splice::entry, Exception, info(), TrackValidation_cff::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

78  : thresholds ) {
79  spike_cleaning info;
80  const std::string& det = pset.getParameter<std::string>("detector");
81  info._minS4S1_a = pset.getParameter<double>("minS4S1_a");
82  info._minS4S1_b = pset.getParameter<double>("minS4S1_b");
83  info._doubleSpikeS6S2 = pset.getParameter<double>("doubleSpikeS6S2");
84  info._eneThreshMod = pset.getParameter<double>("energyThresholdModifier");
85  info._fracThreshMod =
86  pset.getParameter<double>("fractionThresholdModifier");
87  info._doubleSpikeThresh = pset.getParameter<double>("doubleSpikeThresh");
88  info._singleSpikeThresh = pset.getParameter<double>("singleSpikeThresh");
89  auto entry = _layerMap.find(det);
90  if( entry == _layerMap.end() ) {
91  throw cms::Exception("InvalidDetectorLayer")
92  << "Detector layer : " << det << " is not in the list of recognized"
93  << " detector layers!";
94  }
95  _thresholds.emplace(_layerMap.find(det)->second,info);
96  }
static const TGPicture * info(bool iBackgroundIsBlack)
list entry
Definition: mps_splice.py:62