CMS 3D CMS Logo

lowPtGsfElectrons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
4 
5 from RecoEgamma.EgammaIsolationAlgos.electronTrackIsolations_cfi import trkIsol03CfgV1,trkIsol04CfgV1
6 from RecoEgamma.EgammaIsolationAlgos.electronTrackIsolations_cfi import trkIsol03CfgV2,trkIsol04CfgV2
7 
8 lowPtGsfElectrons = cms.EDProducer(
9  "LowPtGsfElectronProducer",
10 
11  # input collections
12  previousGsfElectronsTag = cms.InputTag(""),
13  pflowGsfElectronsTag = cms.InputTag(""),
14  gsfElectronCoresTag = cms.InputTag("lowPtGsfElectronCores"),
15  pfMvaTag = cms.InputTag(""),
16 
17  # steering
18  applyPreselection = cms.bool(False), #@@ True
19  ecalDrivenEcalEnergyFromClassBasedParameterization = cms.bool(True), #@@ False
20  ecalDrivenEcalErrorFromClassBasedParameterization = cms.bool(True), #@@ False
21  applyAmbResolution = cms.bool(False),
22  useEcalRegression = cms.bool(False), #@@ True
23  useCombinationRegression = cms.bool(False), #@@ True
24 
25  # preselection parameters (ecal driven electrons)
26  preselection = cms.PSet(
27  minSCEtBarrel = cms.double(4.0),
28  minSCEtEndcaps = cms.double(4.0),
29  maxDeltaEtaBarrel = cms.double(0.02),
30  maxDeltaEtaEndcaps = cms.double(0.02),
31  maxDeltaPhiBarrel = cms.double(0.15),
32  maxDeltaPhiEndcaps = cms.double(0.15),
33  maxHOverEBarrelCone = cms.double(0.15),
34  maxHOverEEndcapsCone = cms.double(0.15),
35  maxHOverEBarrelTower = cms.double(0.15),
36  maxHOverEEndcapsTower = cms.double(0.15),
37  ),
38 
39  # Ecal rec hits configuration
40  recHitFlagsToBeExcludedBarrel = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
41  recHitFlagsToBeExcludedEndcaps = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
42  recHitSeverityToBeExcludedBarrel = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
43  recHitSeverityToBeExcludedEndcaps = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
44 
45  # Isolation algos configuration
46  trkIsol03Cfg = trkIsol03CfgV1,
47  trkIsol04Cfg = trkIsol04CfgV1,
48  trkIsolHEEP03Cfg = trkIsol03CfgV2,
49  trkIsolHEEP04Cfg = trkIsol04CfgV2,
50 
51  # regression. The labels are needed in all cases.
52  ecalRefinedRegressionWeightLabels = cms.vstring(),
53  #"gedelectron_EBCorrection_offline_v1"
54  #"gedelectron_EECorrection_offline_v1"
55  #"gedelectron_EBUncertainty_offline_v1"
56  #"gedelectron_EEUncertainty_offline_v1"
57  combinationRegressionWeightLabels = cms.vstring(),
58  #"gedelectron_p4combination_offline"
59 
60  # Iso values
61  useIsolationValues = cms.bool(False),
62 
63  )
64 
65 from Configuration.Eras.Modifier_fastSim_cff import fastSim
66 fastSim.toModify(lowPtGsfElectrons,ctfTracksTag = cms.InputTag("generalTracksBeforeMixing"))
67 
68 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
69 pp_on_AA_2018.toModify(lowPtGsfElectrons.preselection, minSCEtBarrel = 15.0)
70 pp_on_AA_2018.toModify(lowPtGsfElectrons.preselection, minSCEtEndcaps = 15.0)