CMS 3D CMS Logo

gedGsfElectrons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 from RecoEgamma.EgammaIsolationAlgos.electronTrackIsolations_cfi import trkIsol03CfgV1,trkIsol04CfgV1,trkIsol03CfgV2,trkIsol04CfgV2
7 
8 
9 gedGsfElectronsTmp = cms.EDProducer("GEDGsfElectronProducer",
10 
11  # input collections
12  previousGsfElectronsTag = cms.InputTag(""),
13  pflowGsfElectronsTag = cms.InputTag(""),
14  gsfElectronCoresTag = cms.InputTag("gedGsfElectronCores"),
15  pfMvaTag = cms.InputTag(""),
16 
17  # steering
18  applyPreselection = cms.bool(True),
19  ecalDrivenEcalEnergyFromClassBasedParameterization = cms.bool(False),
20  ecalDrivenEcalErrorFromClassBasedParameterization = cms.bool(False),
21  applyAmbResolution = cms.bool(False),
22  useEcalRegression = cms.bool(True),
23  useCombinationRegression = cms.bool(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("gedelectron_EBCorrection_offline_v1",
53  "gedelectron_EECorrection_offline_v1",
54  "gedelectron_EBUncertainty_offline_v1",
55  "gedelectron_EEUncertainty_offline_v1"),
56  combinationRegressionWeightLabels = cms.vstring("gedelectron_p4combination_offline"),
57 
58  # Iso values
59  useIsolationValues = cms.bool(False),
60 )
61 
62 
63 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
64 pp_on_AA_2018.toModify(gedGsfElectronsTmp.preselection, minSCEtBarrel = 15.0)
65 pp_on_AA_2018.toModify(gedGsfElectronsTmp.preselection, minSCEtEndcaps = 15.0)