CMS 3D CMS Logo

gedGsfElectrons_cfi.py
Go to the documentation of this file.
1 from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import ecalDrivenGsfElectrons
2 
3 gedGsfElectronsTmp = ecalDrivenGsfElectrons.clone(
4 
5  # input collections
6  gsfElectronCoresTag = "gedGsfElectronCores",
7 
8  # steering
9  resetMvaValuesUsingPFCandidates = True,
10  applyPreselection = True,
11  ecalDrivenEcalEnergyFromClassBasedParameterization = False,
12  ecalDrivenEcalErrorFromClassBasedParameterization = False,
13  useEcalRegression = True,
14  useCombinationRegression = True,
15 
16  # regression. The labels are needed in all cases.
17  ecalRefinedRegressionWeightLabels = ["gedelectron_EBCorrection_offline_v1",
18  "gedelectron_EECorrection_offline_v1",
19  "gedelectron_EBUncertainty_offline_v1",
20  "gedelectron_EEUncertainty_offline_v1"],
21  combinationRegressionWeightLabels = ["gedelectron_p4combination_offline"],
22 )
23 
24 
25 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
26 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtBarrel = 15.0)
27 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtEndcaps = 15.0)
28 
29 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
30 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp.preselection,
31  minSCEtBarrel = 1.0,
32  minSCEtEndcaps = 1.0)
33 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp, applyPreselection = False)
gsfElectrons_cfi