forked from cms-sw/cmssw
/
trackerDrivenElectronSeeds_cfi.py
70 lines (66 loc) · 4.18 KB
/
trackerDrivenElectronSeeds_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import FWCore.ParameterSet.Config as cms
trackerDrivenElectronSeeds = cms.EDProducer("GoodSeedProducer",
MaxEOverP = cms.double(3.0),
Smoother = cms.string('GsfTrajectorySmoother_forPreId'),
UseQuality = cms.bool(True),
PFPSClusterLabel = cms.InputTag("particleFlowClusterPS"),
ThresholdFile = cms.string('RecoParticleFlow/PFTracking/data/Threshold.dat'),
TMVAMethod = cms.string('BDT'),
MaxEta = cms.double(2.4),
EtaMap = cms.string('RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_eta.dat'),
PhiMap = cms.string('RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_phi.dat'),
PreCkfLabel = cms.string('SeedsForCkf'),
NHitsInSeed = cms.int32(3),
Fitter = cms.string('GsfTrajectoryFitter_forPreId'),
TTRHBuilder = cms.string('WithAngleAndTemplate'),
PreGsfLabel = cms.string('SeedsForGsf'),
MinEOverP = cms.double(0.3),
Weights1 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat1.xml'),
Weights2 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat2.xml'),
Weights3 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat3.xml'),
Weights4 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat4.xml'),
Weights5 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat5.xml'),
Weights6 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat6.xml'),
Weights7 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat7.xml'),
Weights8 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat8.xml'),
Weights9 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat9.xml'),
PFEcalClusterLabel = cms.InputTag("particleFlowClusterECAL"),
PFHcalClusterLabel = cms.InputTag("particleFlowClusterHCAL"),
PSThresholdFile = cms.string('RecoParticleFlow/PFTracking/data/PSThreshold.dat'),
MinPt = cms.double(2.0),
TkColList = cms.VInputTag(cms.InputTag("generalTracks")),
UseTMVA = cms.untracked.bool(True),
TrackQuality = cms.string('highPurity'),
MaxPt = cms.double(50.0),
ApplyIsolation = cms.bool(False),
EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
EcalStripSumE_minClusEnergy = cms.double(0.1),
EcalStripSumE_deltaEta = cms.double(0.03),
EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
EOverPLead_minValue = cms.double(0.95),
HOverPLead_maxValue = cms.double(0.05),
HcalWindow=cms.double(0.184),
ClusterThreshold = cms.double(0.5),
UsePreShower =cms.bool(False),
PreIdLabel = cms.string('preid'),
ProducePreId = cms.untracked.bool(True),
PtThresholdSavePreId = cms.untracked.double(1.0),
Min_dr = cms.double(0.2)
)
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
for e in [pp_on_XeXe_2017, pp_on_AA_2018]:
e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0)
# tracker driven electron seeds depend on the generalTracks trajectory collection
# However, in FastSim jobs, trajectories are only available for the 'before mixing' track collections
# Therefore we let the seeds depend on the 'before mixing' generalTracks collection
# TODO: investigate whether the dependence on trajectories can be avoided
from Configuration.Eras.Modifier_fastSim_cff import fastSim
trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = cms.VInputTag(cms.InputTag("generalTracksBeforeMixing")))
import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
_fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
_fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel("trackerDrivenElectronSeedsTmp"),
_fastSim_trackerDrivenElectronSeeds.idCollection = cms.VInputTag("trackerDrivenElectronSeedsTmp:preid",)
fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)
from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
egamma_lowPt_exclusive.toModify(trackerDrivenElectronSeeds,MinPt = 1.0)