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  #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  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Winter22_122X/exteta1/modelDNN.pb",
31  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Winter22_122X/exteta2/modelDNN.pb"
32  ],
33  scalersFiles = [
34  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/lowpT/lowpT_scaler.txt",
35  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EB_highpT/barrel_highpT_scaler.txt",
36  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Summer21_120X/EE_highpT/endcap_highpT_scaler.txt",
37  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Winter22_122X/exteta1/scaler.txt",
38  "RecoEgamma/ElectronIdentification/data/Ele_PFID_dnn/Run3Winter22_122X/exteta2/scaler.txt"
39  ],
40  outputDim = [5,5,5,5,3]
41  )
42 )
43 
44 
45 
46 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
47 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtBarrel = 15.0)
48 pp_on_AA.toModify(gedGsfElectronsTmp.preselection, minSCEtEndcaps = 15.0)
49 
50 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
51 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp.preselection,
52  minSCEtBarrel = 1.0,
53  minSCEtEndcaps = 1.0)
54 egamma_lowPt_exclusive.toModify(gedGsfElectronsTmp, applyPreselection = False)
55 
56 
57 # Activate the Egamma PFID dnn only for Run3
58 from Configuration.Eras.Modifier_run3_common_cff import run3_common
59 run3_common.toModify(gedGsfElectronsTmp.EleDNNPFid,
60  enabled = True
61 )