CMS 3D CMS Logo

trackerDrivenElectronSeeds_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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)
50 )
51 
52 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
53 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
54 for e in [pp_on_XeXe_2017, pp_on_AA]:
55  e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0)
56 
57 # tracker driven electron seeds depend on the generalTracks trajectory collection
58 # However, in FastSim jobs, trajectories are only available for the 'before mixing' track collections
59 # Therefore we let the seeds depend on the 'before mixing' generalTracks collection
60 # TODO: investigate whether the dependence on trajectories can be avoided
61 from Configuration.Eras.Modifier_fastSim_cff import fastSim
62 trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = ["generalTracksBeforeMixing"])
63 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
64 _fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
65 _fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel("trackerDrivenElectronSeedsTmp")
66 _fastSim_trackerDrivenElectronSeeds.idCollection = ["trackerDrivenElectronSeedsTmp:preid",]
67 fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)
68 
69 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
70 egamma_lowPt_exclusive.toModify(trackerDrivenElectronSeeds,MinPt = 1.0)
71