CMS 3D CMS Logo

calibratedEgammas_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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)
9  )
10 calibratedEgammaPatSettings = calibratedEgammaSettings.clone(
11  recHitCollectionEB = cms.InputTag('reducedEgamma','reducedEBRecHits'),
12  recHitCollectionEE = cms.InputTag('reducedEgamma','reducedEERecHits')
13  )
14 
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')
25  ),
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')
35  ),
36  maxEcalEnergyForComb=cms.double(200.),
37  minEOverPForComb=cms.double(0.025),
38  maxEPDiffInSigmaForComb=cms.double(15.),
39  maxRelTrkMomErrForComb=cms.double(10.),
40 
41 )
42 
43 calibratedElectrons = cms.EDProducer("CalibratedElectronProducer",
44  calibratedEgammaSettings,
45  epCombConfig = ecalTrkCombinationRegression,
46  src = cms.InputTag('gedGsfElectrons'),
47  )
48 
49 calibratedPatElectrons = cms.EDProducer("CalibratedPatElectronProducer",
50  calibratedEgammaPatSettings,
51  epCombConfig = ecalTrkCombinationRegression,
52  src = cms.InputTag('slimmedElectrons'),
53  )
54 
55 calibratedPhotons = cms.EDProducer("CalibratedPhotonProducer",
56  calibratedEgammaSettings,
57  src = cms.InputTag('gedPhotons'),
58  )
59 calibratedPatPhotons = cms.EDProducer("CalibratedPatPhotonProducer",
60  calibratedEgammaPatSettings,
61  src = cms.InputTag('slimmedPhotons'),
62  )
63 
64 def prefixName(prefix,name):
65  return prefix+name[0].upper()+name[1:]
def prefixName(prefix, name)