1 import FWCore.ParameterSet.Config
as cms
3 calibratedEgammaSettings = cms.PSet(minEtToCalibrate = cms.double(5.0),
4 semiDeterministic = cms.bool(
True),
5 correctionFile = cms.string(
"EgammaAnalysis/ElectronTools/data/ScalesSmearings/Run2017_17Nov2017_v1_ele_unc"),
6 recHitCollectionEB = cms.InputTag(
'reducedEcalRecHitsEB'),
7 recHitCollectionEE = cms.InputTag(
'reducedEcalRecHitsEE'),
8 produceCalibratedObjs = cms.bool(
True)
10 calibratedEgammaPatSettings = calibratedEgammaSettings.clone(
11 recHitCollectionEB = cms.InputTag(
'reducedEgamma',
'reducedEBRecHits'),
12 recHitCollectionEE = cms.InputTag(
'reducedEgamma',
'reducedEERecHits')
15 ecalTrkCombinationRegression = cms.PSet(
16 ecalTrkRegressionConfig = cms.PSet(
17 rangeMin = cms.double(-1.),
18 rangeMax = cms.double(3.0),
19 lowEtHighEtBoundary = cms.double(50.),
20 forceHighEnergyTrainingIfSaturated = cms.bool(
False),
21 ebLowEtForestName = cms.string(
'electron_eb_ECALTRK_lowpt'),
22 ebHighEtForestName = cms.string(
'electron_eb_ECALTRK'),
23 eeLowEtForestName = cms.string(
'electron_ee_ECALTRK_lowpt'),
24 eeHighEtForestName = cms.string(
'electron_ee_ECALTRK')
26 ecalTrkRegressionUncertConfig = cms.PSet(
27 rangeMin = cms.double(0.0002),
28 rangeMax = cms.double(0.5),
29 lowEtHighEtBoundary = cms.double(50.),
30 forceHighEnergyTrainingIfSaturated = cms.bool(
False),
31 ebLowEtForestName = cms.string(
'electron_eb_ECALTRK_lowpt_var'),
32 ebHighEtForestName = cms.string(
'electron_eb_ECALTRK_var'),
33 eeLowEtForestName = cms.string(
'electron_ee_ECALTRK_lowpt_var'),
34 eeHighEtForestName = cms.string(
'electron_ee_ECALTRK_var')
36 maxEcalEnergyForComb=cms.double(200.),
37 minEOverPForComb=cms.double(0.025),
38 maxEPDiffInSigmaForComb=cms.double(15.),
39 maxRelTrkMomErrForComb=cms.double(10.),
43 calibratedElectrons = cms.EDProducer(
"CalibratedElectronProducer",
44 calibratedEgammaSettings,
45 epCombConfig = ecalTrkCombinationRegression,
46 src = cms.InputTag(
'gedGsfElectrons'),
49 calibratedPatElectrons = cms.EDProducer(
"CalibratedPatElectronProducer",
50 calibratedEgammaPatSettings,
51 epCombConfig = ecalTrkCombinationRegression,
52 src = cms.InputTag(
'slimmedElectrons'),
55 calibratedPhotons = cms.EDProducer(
"CalibratedPhotonProducer",
56 calibratedEgammaSettings,
57 src = cms.InputTag(
'gedPhotons'),
59 calibratedPatPhotons = cms.EDProducer(
"CalibratedPatPhotonProducer",
60 calibratedEgammaPatSettings,
61 src = cms.InputTag(
'slimmedPhotons'),
65 return prefix+name[0].
upper()+name[1:]
def prefixName(prefix, name)