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