CMS 3D CMS Logo

electronRegressionEnergyProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 eleRegressionEnergy = cms.EDProducer("RegressionEnergyPatElectronProducer",
4  debug = cms.untracked.bool(False),
5  inputElectronsTag = cms.InputTag('selectedPatElectrons'),
6  #inputElectronsTag = cms.InputTag('gsfElectrons'),
7  # inputCollectionType (0: GsfElectron, 1 :PATElectron)
8  inputCollectionType = cms.uint32(1),
9  # useRecHitCollections ( should be set to true if GsfElectrons or if the RecHits have not been embedded into the PATElectron
10  useRecHitCollections = cms.bool(False),
11  # produce ValueMaps. Should be true for GsfElectrons otherwise this producer doest nothing. Keep it to false for PAT
12  produceValueMaps = cms.bool(False),
13  #regressionInputFile = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_V1.root"),
14  regressionInputFile = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
15 
17  energyRegressionType = cms.uint32(2),
18 
19  rhoCollection = cms.InputTag('kt6PFJets:rho:RECO'),
20  vertexCollection = cms.InputTag('offlinePrimaryVertices'),
21  # Not used if inputCollectionType is set to 1
22  nameEnergyReg = cms.string("eneRegForGsfEle"),
23  nameEnergyErrorReg = cms.string("eneErrorRegForGsfEle"),
24  # Used only if useRecHitCollections is set to true
25  recHitCollectionEB = cms.InputTag('reducedEcalRecHitsEB'),
26  recHitCollectionEE = cms.InputTag('reducedEcalRecHitsEE')
27  )
28 
29