Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 eleRegressionEnergy = cms.EDProducer("RegressionEnergyPatElectronProducer",
0004                                    debug = cms.untracked.bool(False),
0005                                    inputElectronsTag = cms.InputTag('selectedPatElectrons'),
0006                                    #inputElectronsTag = cms.InputTag('gsfElectrons'),
0007                                      # inputCollectionType (0: GsfElectron, 1 :PATElectron)
0008                                    inputCollectionType = cms.uint32(1),
0009                                      # useRecHitCollections ( should be set to true if GsfElectrons or if the RecHits have not been embedded into the PATElectron
0010                                    useRecHitCollections = cms.bool(False),
0011                                      # produce ValueMaps. Should be true for GsfElectrons otherwise this producer doest nothing. Keep it to false for PAT
0012                                    produceValueMaps = cms.bool(False),
0013                                    #regressionInputFile = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_V1.root"),
0014                                    regressionInputFile = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
0015                                      ## Regression type (1: ECAL regression w/o subclusters 2: ECAL regression w/ subclusters)
0016                                    #energyRegressionType = cms.uint32(1),
0017                                    energyRegressionType = cms.uint32(2),
0018 
0019                                    rhoCollection = cms.InputTag('kt6PFJets:rho:RECO'),
0020                                    vertexCollection = cms.InputTag('offlinePrimaryVertices'),
0021                                      # Not used if inputCollectionType is set to 1
0022                                    nameEnergyReg = cms.string("eneRegForGsfEle"),
0023                                    nameEnergyErrorReg = cms.string("eneErrorRegForGsfEle"),
0024                                      # Used only if useRecHitCollections is set to true
0025                                    recHitCollectionEB = cms.InputTag('reducedEcalRecHitsEB'),
0026                                    recHitCollectionEE = cms.InputTag('reducedEcalRecHitsEE')
0027                                    )
0028 
0029