CMS 3D CMS Logo

lowPtGsfElectronSeeds_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def thresholds( wp ) :
4  return cms.vdouble([{"VL": 0.19,"L":1.20,"M":2.02,"T":3.05}.get(wp,1.e6), # unbiased
5  {"VL":-1.99,"L":0.01,"M":1.29,"T":2.42}.get(wp,1.e6)]) # ptbiased
6 
7 lowPtGsfElectronSeeds = cms.EDProducer(
8  "LowPtGsfElectronSeedProducer",
9  tracks = cms.InputTag("generalTracks"),
10  pfTracks = cms.InputTag("lowPtGsfElePfTracks"),
11  ecalClusters = cms.InputTag("particleFlowClusterECAL"),
12  hcalClusters = cms.InputTag("particleFlowClusterHCAL"),
13  EBRecHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
14  EERecHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
15  rho = cms.InputTag('fixedGridRhoFastjetAllTmp'),
16  BeamSpot = cms.InputTag("offlineBeamSpot"),
17  Fitter = cms.ESInputTag("", 'GsfTrajectoryFitter_forPreId'),
18  Smoother = cms.ESInputTag("", 'GsfTrajectorySmoother_forPreId'),
19  TTRHBuilder = cms.ESInputTag("", 'WithAngleAndTemplate'),
20  ModelNames = cms.vstring([
21  'unbiased',
22  'ptbiased',
23  ]),
24  ModelWeights = cms.vstring([
25  'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_unbiased.xml.gz',
26  'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_displaced_pt_eta_biased.xml.gz',
27  ]),
28  ModelThresholds = thresholds("T"),
29  PassThrough = cms.bool(False),
30  UsePfTracks = cms.bool(True),
31  MinPtThreshold = cms.double(1.0),
32  MaxPtThreshold = cms.double(15.),
33  )
34 
35 # Modifiers for FastSim
36 from Configuration.Eras.Modifier_fastSim_cff import fastSim
37 lowPtGsfElectronSeedsTmp = lowPtGsfElectronSeeds.clone(tracks = "generalTracksBeforeMixing")
38 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
39 _fastSim_lowPtGsfElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone(
40  seedCollection = "lowPtGsfElectronSeedsTmp:",
41  idCollection = ["lowPtGsfElectronSeedsTmp","lowPtGsfElectronSeedsTmp:HCAL"],
42  PreIdLabel = ["","HCAL"],
43  PreGsfLabel = ""
44 )
45 fastSim.toReplaceWith(lowPtGsfElectronSeeds,_fastSim_lowPtGsfElectronSeeds)
46 
47 # Modifiers for BParking
48 from Configuration.Eras.Modifier_bParking_cff import bParking
49 bParking.toModify(lowPtGsfElectronSeeds, ModelThresholds = thresholds("VL") )
50 bParking.toModify(lowPtGsfElectronSeeds, MinPtThreshold = 0.5)
lowPtGsfElectronSeeds_cfi.thresholds
def thresholds(wp)
Definition: lowPtGsfElectronSeeds_cfi.py:3