CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  PFlow2DClusterizerWithTime
 

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"))
 
static const
PFClusterBuilderFactory::PMaker
< PFlow2DClusterizerWithTime
s_maker__LINE__ ("PFlow2DClusterizerWithTime")
 

Macro Definition Documentation

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

Definition at line 86 of file PFlow2DClusterizerWithTime.cc.

#define LOGVERB (   x)    LogTrace(x)

Definition at line 84 of file PFlow2DClusterizerWithTime.cc.

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

Definition at line 85 of file PFlow2DClusterizerWithTime.cc.

Function Documentation

for ( const auto &pset:thresholds  )

Definition at line 115 of file PFlow2DClusterizerWithTime.cc.

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

115  : thresholds) {
116  const std::string& det = pset.getParameter<std::string>("detector");
117  const double& rhE_norm = pset.getParameter<double>("recHitEnergyNorm");
118  auto entry = _layerMap.find(det);
119  if (entry == _layerMap.end()) {
120  throw cms::Exception("InvalidDetectorLayer") << "Detector layer : " << det << " is not in the list of recognized"
121  << " detector layers!";
122  }
123  _recHitEnergyNorms.emplace(_layerMap.find(det)->second, rhE_norm);
124  }
list entry
Definition: mps_splice.py:68
if ( conf.  exists"allCellsPositionCalc")

Definition at line 126 of file PFlow2DClusterizerWithTime.cc.

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

126  {
127  const edm::ParameterSet& acConf = conf.getParameterSet("allCellsPositionCalc");
128  const std::string& algoac = acConf.getParameter<std::string>("algoName");
129  _allCellsPosCalc = PFCPositionCalculatorFactory::get()->create(algoac, acConf, cc);
130  }
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define get
if ( conf.  exists"positionCalcForConvergence")

Definition at line 132 of file PFlow2DClusterizerWithTime.cc.

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

132  {
133  const edm::ParameterSet& convConf = conf.getParameterSet("positionCalcForConvergence");
134  const std::string& algoconv = convConf.getParameter<std::string>("algoName");
135  _convergencePosCalc = PFCPositionCalculatorFactory::get()->create(algoconv, convConf, cc);
136  }
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define get
if ( conf.  exists"timeResolutionCalcBarrel")

Definition at line 137 of file PFlow2DClusterizerWithTime.cc.

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

137  {
138  const edm::ParameterSet& timeResConf = conf.getParameterSet("timeResolutionCalcBarrel");
139  _timeResolutionCalcBarrel = std::make_unique<CaloRecHitResolutionProvider>(timeResConf);
140  }
ParameterSet const & getParameterSet(std::string const &) const
if ( conf.  exists"timeResolutionCalcEndcap")

Definition at line 141 of file PFlow2DClusterizerWithTime.cc.

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

141  {
142  const edm::ParameterSet& timeResConf = conf.getParameterSet("timeResolutionCalcEndcap");
143  _timeResolutionCalcEndcap = std::make_unique<CaloRecHitResolutionProvider>(timeResConf);
144  }
ParameterSet const & getParameterSet(std::string const &) const
static const PFClusterBuilderFactory ::PMaker< PFlow2DClusterizerWithTime > s_maker__LINE__ ( "PFlow2DClusterizerWithTime"  )
static