CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
ElectronSeedProducer.cc File Reference
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronSeedGenerator.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronHcalHelper.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronUtilities.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/Utilities/interface/transform.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "RecoLocalCalo/HGCalRecAlgos/interface/ClusterTools.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalTools.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  ElectronSeedProducer
 

Functions

 if (applyHOverECut_)
 
 produces< ElectronSeedCollection > ()
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< ElectronSeedProducer > > 
s_filler__LINE__ ("ElectronSeedProducer")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< ElectronSeedProducer > > 
s_maker__LINE__ ("ElectronSeedProducer")
 

Variables

 applyHOverECut_ = conf.getParameter<bool>("applyHOverECut")
 
 beamSpotTag_ = consumes(conf.getParameter<edm::InputTag>("beamSpot"))
 
ElectronSeedGenerator::Tokens esg_tokens
 
 matcher_ = std::make_unique<ElectronSeedGenerator>(conf, esg_tokens, consumesCollector())
 
 superClusters_ [0] = consumes(conf.getParameter<edm::InputTag>("barrelSuperClusters"))
 
auto theconsumes = consumesCollector()
 
esg_tokens token_bs = beamSpotTag_
 
esg_tokens token_vtx = mayConsume<reco::VertexCollection>(conf.getParameter<edm::InputTag>("vertices"))
 

Function Documentation

if ( applyHOverECut_  )

Definition at line 79 of file ElectronSeedProducer.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), ElectronHcalHelper::Configuration::hOverEConeSize, and theconsumes.

79  {
81  hcalCfg.hOverEConeSize = conf.getParameter<double>("hOverEConeSize");
82  if (hcalCfg.hOverEConeSize > 0) {
83  hcalCfg.onlyBehindCluster = false;
84  hcalCfg.checkHcalStatus = false;
85 
86  hcalCfg.hbheRecHits = consumes<HBHERecHitCollection>(conf.getParameter<edm::InputTag>("hbheRecHits"));
87 
88  hcalCfg.eThresHB = conf.getParameter<EgammaHcalIsolation::arrayHB>("recHitEThresholdHB");
89  hcalCfg.maxSeverityHB = conf.getParameter<int>("maxHcalRecHitSeverity");
90  hcalCfg.eThresHE = conf.getParameter<EgammaHcalIsolation::arrayHE>("recHitEThresholdHE");
91  hcalCfg.maxSeverityHE = hcalCfg.maxSeverityHB;
92  }
93  hcalHelper_ = std::make_unique<ElectronHcalHelper>(hcalCfg, consumesCollector());
94 
95  allowHGCal_ = conf.getParameter<bool>("allowHGCal");
96  if (allowHGCal_) {
97  const edm::ParameterSet& hgcCfg = conf.getParameterSet("HGCalConfig");
98  hgcClusterTools_ = std::make_unique<hgcal::ClusterTools>(hgcCfg, theconsumes);
99  }
100 
101  maxHOverEBarrel_ = conf.getParameter<double>("maxHOverEBarrel");
102  maxHOverEEndcaps_ = conf.getParameter<double>("maxHOverEEndcaps");
103  }
auto theconsumes
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::array< double, 4 > arrayHB
std::array< double, 7 > arrayHE
produces< ElectronSeedCollection > ( )
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ElectronSeedProducer > > s_filler__LINE__ ( "ElectronSeedProducer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ElectronSeedProducer > > s_maker__LINE__ ( "ElectronSeedProducer"  )
static

Variable Documentation

applyHOverECut_ = conf.getParameter<bool>("applyHOverECut")

Definition at line 78 of file ElectronSeedProducer.cc.

beamSpotTag_ = consumes(conf.getParameter<edm::InputTag>("beamSpot"))

Definition at line 105 of file ElectronSeedProducer.cc.

matcher_ = std::make_unique<ElectronSeedGenerator>(conf, esg_tokens, consumesCollector())
superClusters_[1] = consumes(conf.getParameter<edm::InputTag>("barrelSuperClusters"))

Definition at line 111 of file ElectronSeedProducer.cc.

Referenced by PFPhotonTranslator::produce().

auto theconsumes = consumesCollector()

Definition at line 72 of file ElectronSeedProducer.cc.

Referenced by if().

Definition at line 106 of file ElectronSeedProducer.cc.

esg_tokens token_vtx = mayConsume<reco::VertexCollection>(conf.getParameter<edm::InputTag>("vertices"))

Definition at line 107 of file ElectronSeedProducer.cc.