CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
Basic2DGenericPFlowClusterizer.cc File Reference
#include "Basic2DGenericPFlowClusterizer.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "Math/GenVector/VectorUtil.h"
#include "vdt/vdtMath.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"))
 
_allCellsPosCalc reset (NULL)
 

Macro Definition Documentation

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

Definition at line 20 of file Basic2DGenericPFlowClusterizer.cc.

#define LOGVERB (   x)    LogTrace(x)

Definition at line 18 of file Basic2DGenericPFlowClusterizer.cc.

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

Definition at line 19 of file Basic2DGenericPFlowClusterizer.cc.

Function Documentation

for ( const auto &pset:thresholds  )

Definition at line 45 of file Basic2DGenericPFlowClusterizer.cc.

References Basic2DGenericPFlowClusterizer::_layerMap, Basic2DGenericPFlowClusterizer::_recHitEnergyNorms, mps_splice::entry, Exception, TrackValidation_cff::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

45  : thresholds ) {
46  const std::string& det = pset.getParameter<std::string>("detector");
47  const double& rhE_norm = pset.getParameter<double>("recHitEnergyNorm");
48  auto entry = _layerMap.find(det);
49  if( entry == _layerMap.end() ) {
50  throw cms::Exception("InvalidDetectorLayer")
51  << "Detector layer : " << det << " is not in the list of recognized"
52  << " detector layers!";
53  }
54  _recHitEnergyNorms.emplace(_layerMap.find(det)->second,rhE_norm);
55  }
list entry
Definition: mps_splice.py:62
if ( conf.  exists"allCellsPositionCalc")

Definition at line 58 of file Basic2DGenericPFlowClusterizer.cc.

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

58  {
59  const edm::ParameterSet& acConf =
60  conf.getParameterSet("allCellsPositionCalc");
61  const std::string& algoac =
62  acConf.getParameter<std::string>("algoName");
63  PosCalc* accalc =
64  PFCPositionCalculatorFactory::get()->create(algoac, acConf);
65  _allCellsPosCalc.reset(accalc);
66  }
T getParameter(std::string const &) const
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)
Definition: component.h:55
if ( conf.  exists"positionCalcForConvergence")

Definition at line 69 of file Basic2DGenericPFlowClusterizer.cc.

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

69  {
70  const edm::ParameterSet& convConf =
71  conf.getParameterSet("positionCalcForConvergence");
72  const std::string& algoconv =
73  convConf.getParameter<std::string>("algoName");
74  PosCalc* convcalc =
75  PFCPositionCalculatorFactory::get()->create(algoconv, convConf);
76  _convergencePosCalc.reset(convcalc);
77  }
T getParameter(std::string const &) const
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)
Definition: component.h:55
_timeResolutionCalcEndcap reset ( NULL  )