1 import FWCore.ParameterSet.Config
as cms
3 trackerDrivenElectronSeeds = cms.EDProducer(
"GoodSeedProducer",
4 MaxEOverP = cms.double(3.0),
5 Smoother = cms.string(
'GsfTrajectorySmoother_forPreId'),
6 UseQuality = cms.bool(
True),
7 PFPSClusterLabel = cms.InputTag(
"particleFlowClusterPS"),
8 ThresholdFile = cms.string(
'RecoParticleFlow/PFTracking/data/Threshold.dat'),
9 TMVAMethod = cms.string(
'BDT'),
10 MaxEta = cms.double(2.4),
11 EtaMap = cms.string(
'RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_eta.dat'),
12 PhiMap = cms.string(
'RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_phi.dat'),
13 PreCkfLabel = cms.string(
'SeedsForCkf'),
14 NHitsInSeed = cms.int32(3),
15 Fitter = cms.string(
'GsfTrajectoryFitter_forPreId'),
16 TTRHBuilder = cms.string(
'WithAngleAndTemplate'),
17 PreGsfLabel = cms.string(
'SeedsForGsf'),
18 MinEOverP = cms.double(0.3),
19 Weights1 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat1.xml'),
20 Weights2 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat2.xml'),
21 Weights3 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat3.xml'),
22 Weights4 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat4.xml'),
23 Weights5 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat5.xml'),
24 Weights6 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat6.xml'),
25 Weights7 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat7.xml'),
26 Weights8 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat8.xml'),
27 Weights9 = cms.string(
'RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat9.xml'),
28 PFEcalClusterLabel = cms.InputTag(
"particleFlowClusterECAL"),
29 PFHcalClusterLabel = cms.InputTag(
"particleFlowClusterHCAL"),
30 PSThresholdFile = cms.string(
'RecoParticleFlow/PFTracking/data/PSThreshold.dat'),
31 MinPt = cms.double(2.0),
32 TkColList = cms.VInputTag(cms.InputTag(
"generalTracks")),
33 UseTMVA = cms.untracked.bool(
True),
34 TrackQuality = cms.string(
'highPurity'),
35 MaxPt = cms.double(50.0),
36 ApplyIsolation = cms.bool(
False),
37 EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
38 EcalStripSumE_minClusEnergy = cms.double(0.1),
39 EcalStripSumE_deltaEta = cms.double(0.03),
40 EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
41 EOverPLead_minValue = cms.double(0.95),
42 HOverPLead_maxValue = cms.double(0.05),
43 HcalWindow=cms.double(0.184),
44 ClusterThreshold = cms.double(0.5),
45 UsePreShower =cms.bool(
False),
46 PreIdLabel = cms.string(
'preid'),
47 ProducePreId = cms.untracked.bool(
True),
48 PtThresholdSavePreId = cms.untracked.double(1.0),
49 Min_dr = cms.double(0.2)
54 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
55 phase2_tracker.toModify(trackerDrivenElectronSeeds, TTRHBuilder =
'WithTrackAngle')
57 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
58 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
59 for e
in [pp_on_XeXe_2017, pp_on_AA_2018]:
60 e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0)
66 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
67 trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = cms.VInputTag(cms.InputTag(
"generalTracksBeforeMixing")))
68 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
69 _fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
70 _fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel(
"trackerDrivenElectronSeedsTmp"),
71 _fastSim_trackerDrivenElectronSeeds.idCollection = cms.VInputTag(
"trackerDrivenElectronSeedsTmp:preid",)
72 fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)