CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
EGPhotonImporter.cc File Reference
#include "RecoParticleFlow/PFProducer/interface/BlockElementImporterBase.h"
#include "RecoParticleFlow/PFProducer/interface/PhotonSelectorAlgo.h"
#include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlockElementSuperCluster.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "RecoParticleFlow/PFProducer/interface/PFBlockElementSCEqual.h"
#include <memory>
#include <unordered_map>

Go to the source code of this file.

Classes

class  EGPhotonImporter
 

Functions

 _superClustersArePF (conf.getParameter< bool >("superClustersArePF"))
 
static const
BlockElementImporterFactory::PMaker
< EGPhotonImporter
s_maker__LINE__ ("EGPhotonImporter")
 

Function Documentation

_superClustersArePF ( conf.getParameter< bool >  "superClustersArePF")

Definition at line 36 of file EGPhotonImporter.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), photons_cff::hoe, and AlCaHLTBitMon_QueryRunRegistry::string.

36  {
37  const std::string& selChoice = conf.getParameter<std::string>("SelectionChoice");
38  _selectionChoice = _selectionTypes.at(selChoice);
39  const edm::ParameterSet& selDef = conf.getParameterSet("SelectionDefinition");
40  const float minEt = selDef.getParameter<double>("minEt");
41  const float trackIso_const = selDef.getParameter<double>("trackIsoConstTerm");
42  const float trackIso_slope = selDef.getParameter<double>("trackIsoSlopeTerm");
43  const float ecalIso_const = selDef.getParameter<double>("ecalIsoConstTerm");
44  const float ecalIso_slope = selDef.getParameter<double>("ecalIsoSlopeTerm");
45  const float hcalIso_const = selDef.getParameter<double>("hcalIsoConstTerm");
46  const float hcalIso_slope = selDef.getParameter<double>("hcalIsoSlopeTerm");
47  const float hoe = selDef.getParameter<double>("HoverE");
48  const float loose_hoe = selDef.getParameter<double>("LooseHoverE");
49  const float combIso = selDef.getParameter<double>("combIsoConstTerm");
50  _selector = std::make_unique<PhotonSelectorAlgo>((float)_selectionChoice,
51  minEt,
52  trackIso_const,
53  trackIso_slope,
54  ecalIso_const,
55  ecalIso_slope,
56  hcalIso_const,
57  hcalIso_slope,
58  hoe,
59  combIso,
60  loose_hoe);
61 }
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
static const BlockElementImporterFactory ::PMaker< EGPhotonImporter > s_maker__LINE__ ( "EGPhotonImporter"  )
static