Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def thresholds( wp ) :
0004     return cms.vdouble([{"VL": 0.19,"L":1.20,"M":2.02,"T":3.05}.get(wp,1.e6),  # unbiased
0005                         {"VL":-1.99,"L":0.01,"M":1.29,"T":2.42}.get(wp,1.e6)]) # ptbiased
0006 
0007 lowPtGsfElectronSeeds = cms.EDProducer(
0008     "LowPtGsfElectronSeedProducer",
0009     tracks = cms.InputTag("generalTracks"),
0010     pfTracks = cms.InputTag("lowPtGsfElePfTracks"),
0011     ecalClusters = cms.InputTag("particleFlowClusterECAL"),
0012     hcalClusters = cms.InputTag("particleFlowClusterHCAL"),
0013     EBRecHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
0014     EERecHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
0015     rho = cms.InputTag('fixedGridRhoFastjetAllTmp'),
0016     BeamSpot = cms.InputTag("offlineBeamSpot"),
0017     Fitter = cms.ESInputTag("", 'GsfTrajectoryFitter_forPreId'),
0018     Smoother = cms.ESInputTag("", 'GsfTrajectorySmoother_forPreId'),
0019     TTRHBuilder = cms.ESInputTag("", 'WithAngleAndTemplate'),
0020     ModelNames = cms.vstring([
0021             'unbiased',
0022             'ptbiased',
0023             ]),
0024     ModelWeights = cms.vstring([
0025             'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_unbiased.root',
0026             'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_displaced_pt_eta_biased.root',
0027             ]),
0028     ModelThresholds = thresholds("T"),
0029     PassThrough = cms.bool(False),
0030     UsePfTracks = cms.bool(True),
0031     MinPtThreshold = cms.double(1.0),
0032     MaxPtThreshold = cms.double(15.),
0033     )
0034 
0035 # Modifiers for FastSim
0036 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0037 lowPtGsfElectronSeedsTmp = lowPtGsfElectronSeeds.clone(tracks = "generalTracksBeforeMixing")
0038 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
0039 _fastSim_lowPtGsfElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone(
0040     seedCollection = "lowPtGsfElectronSeedsTmp:",
0041     idCollection   = ["lowPtGsfElectronSeedsTmp","lowPtGsfElectronSeedsTmp:HCAL"],
0042     PreIdLabel     = ["","HCAL"],
0043     PreGsfLabel    = ""
0044 )
0045 fastSim.toReplaceWith(lowPtGsfElectronSeeds,_fastSim_lowPtGsfElectronSeeds)
0046 
0047 # Modifiers for BParking
0048 from Configuration.Eras.Modifier_bParking_cff import bParking
0049 bParking.toModify(lowPtGsfElectronSeeds, 
0050     ModelThresholds = thresholds("VL"), 
0051 )
0052 
0053 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0054 pp_on_AA.toModify(lowPtGsfElectronSeeds,MinPtThreshold = 5.0)
0055 
0056 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
0057 egamma_lowPt_exclusive.toModify(lowPtGsfElectronSeeds, ModelThresholds = thresholds("VL"), MinPtThreshold = 0.05)