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