CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
PFlow2DClusterizerWithTime.cc File Reference
#include "PFlow2DClusterizerWithTime.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include "Math/GenVector/VectorUtil.h"
#include "vdt/vdtMath.h"
#include "TMath.h"
#include <iterator>

Go to the source code of this file.

Macros

#define LOGDRESSED(x)   LogDebug(x)
 
#define LOGERR(x)   edm::LogError(x)
 
#define LOGVERB(x)   LogTrace(x)
 
#define LOGWARN(x)   edm::LogWarning(x)
 

Functions

 for (const auto &pset:thresholds)
 
 if (conf.exists("allCellsPositionCalc"))
 
 if (conf.exists("positionCalcForConvergence"))
 
 if (conf.exists("timeResolutionCalcBarrel"))
 
 if (conf.exists("timeResolutionCalcEndcap"))
 
_allCellsPosCalc reset (NULL)
 

Macro Definition Documentation

#define LOGDRESSED (   x)    LogDebug(x)
#define LOGERR (   x)    edm::LogError(x)

Definition at line 22 of file PFlow2DClusterizerWithTime.cc.

#define LOGVERB (   x)    LogTrace(x)

Definition at line 20 of file PFlow2DClusterizerWithTime.cc.

#define LOGWARN (   x)    edm::LogWarning(x)

Definition at line 21 of file PFlow2DClusterizerWithTime.cc.

Function Documentation

for ( const auto &pset:thresholds  )

Definition at line 55 of file PFlow2DClusterizerWithTime.cc.

References PFlow2DClusterizerWithTime::_layerMap, PFlow2DClusterizerWithTime::_recHitEnergyNorms, edm::hlt::Exception, and AlCaHLTBitMon_QueryRunRegistry::string.

55  : thresholds ) {
56  const std::string& det = pset.getParameter<std::string>("detector");
57  const double& rhE_norm = pset.getParameter<double>("recHitEnergyNorm");
58  auto entry = _layerMap.find(det);
59  if( entry == _layerMap.end() ) {
60  throw cms::Exception("InvalidDetectorLayer")
61  << "Detector layer : " << det << " is not in the list of recognized"
62  << " detector layers!";
63  }
64  _recHitEnergyNorms.emplace(_layerMap.find(det)->second,rhE_norm);
65  }
if ( conf.  exists"allCellsPositionCalc")

Definition at line 68 of file PFlow2DClusterizerWithTime.cc.

References PFlow2DClusterizerWithTime::_allCellsPosCalc, reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

68  {
69  const edm::ParameterSet& acConf =
70  conf.getParameterSet("allCellsPositionCalc");
71  const std::string& algoac =
72  acConf.getParameter<std::string>("algoName");
73  PosCalc* accalc =
74  PFCPositionCalculatorFactory::get()->create(algoac, acConf);
75  _allCellsPosCalc.reset(accalc);
76  }
T getParameter(std::string const &) const
tuple conf
Definition: dbtoconf.py:185
T get(const Candidate &c)
Definition: component.h:55
if ( conf.  exists"positionCalcForConvergence")

Definition at line 79 of file PFlow2DClusterizerWithTime.cc.

References PFlow2DClusterizerWithTime::_convergencePosCalc, reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

79  {
80  const edm::ParameterSet& convConf =
81  conf.getParameterSet("positionCalcForConvergence");
82  const std::string& algoconv =
83  convConf.getParameter<std::string>("algoName");
84  PosCalc* convcalc =
85  PFCPositionCalculatorFactory::get()->create(algoconv, convConf);
86  _convergencePosCalc.reset(convcalc);
87  }
T getParameter(std::string const &) const
tuple conf
Definition: dbtoconf.py:185
T get(const Candidate &c)
Definition: component.h:55
if ( conf.  exists"timeResolutionCalcBarrel")

Definition at line 89 of file PFlow2DClusterizerWithTime.cc.

References PFlow2DClusterizerWithTime::_timeResolutionCalcBarrel, and edm::ParameterSet::getParameterSet().

89  {
90  const edm::ParameterSet& timeResConf =
91  conf.getParameterSet("timeResolutionCalcBarrel");
92  _timeResolutionCalcBarrel.reset(new CaloRecHitResolutionProvider(
93  timeResConf));
94  }
tuple conf
Definition: dbtoconf.py:185
if ( conf.  exists"timeResolutionCalcEndcap")

Definition at line 96 of file PFlow2DClusterizerWithTime.cc.

References PFlow2DClusterizerWithTime::_timeResolutionCalcEndcap, and edm::ParameterSet::getParameterSet().

96  {
97  const edm::ParameterSet& timeResConf =
98  conf.getParameterSet("timeResolutionCalcEndcap");
99  _timeResolutionCalcEndcap.reset(new CaloRecHitResolutionProvider(
100  timeResConf));
101  }
tuple conf
Definition: dbtoconf.py:185
_allCellsPosCalc reset ( NULL  )