CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  #Egamma PFID DNN model configuration
24  EleDNNPFid= dict(
25  outputTensorName = "sequential_1/FinalLayer/Softmax",
26  modelsFiles = [
27  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/lowpT/lowpT_modelDNN.pb",
28  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EB_highpT/barrel_highpT_modelDNN.pb",
29  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EE_highpT/endcap_highpT_modelDNN.pb"
30  ],
31  scalersFiles = [
32  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/lowpT/lowpT_scaler.txt",
33  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EB_highpT/barrel_highpT_scaler.txt",
34  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EE_highpT/endcap_highpT_scaler.txt"
35  ]
36  )
37 )
38 
39 
40 
41 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
42 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtBarrel = 15.0)
43 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtEndcaps = 15.0)
44 
45 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
46 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp.preselection,
47  minSCEtBarrel = 1.0,
48  minSCEtEndcaps = 1.0)
49 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp, applyPreselection = False)
50 
51 
52 # Activate the Egamma PFID dnn only for Run3
53 from Configuration.Eras.Modifier_run3_common_cff import run3_common
54 run3_common.toModify(gedGsfElectronsTmp.EleDNNPFid,
55  enabled = True
56 )