Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 trackerDrivenElectronSeeds = cms.EDProducer("GoodSeedProducer",
0004     MaxEOverP = cms.double(3.0),
0005     Smoother = cms.string('GsfTrajectorySmoother_forPreId'),
0006     UseQuality = cms.bool(True),
0007     PFPSClusterLabel = cms.InputTag("particleFlowClusterPS"),
0008     ThresholdFile = cms.string('RecoParticleFlow/PFTracking/data/Threshold.dat'),
0009     TMVAMethod = cms.string('BDT'),
0010     MaxEta = cms.double(2.4),
0011     EtaMap = cms.string('RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_eta.dat'),
0012     PhiMap = cms.string('RecoParticleFlow/PFBlockProducer/data/resmap_ECAL_phi.dat'),
0013     PreCkfLabel = cms.string('SeedsForCkf'),
0014     NHitsInSeed = cms.int32(3),
0015     Fitter = cms.string('GsfTrajectoryFitter_forPreId'),
0016     TTRHBuilder = cms.string('WithAngleAndTemplate'),
0017     PreGsfLabel = cms.string('SeedsForGsf'),
0018     MinEOverP = cms.double(0.3),
0019     Weights1 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat1.xml'),
0020     Weights2 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat2.xml'),
0021     Weights3 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat3.xml'),
0022     Weights4 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat4.xml'),
0023     Weights5 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat5.xml'),
0024     Weights6 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat6.xml'),
0025     Weights7 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat7.xml'),
0026     Weights8 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat8.xml'),
0027     Weights9 = cms.string('RecoParticleFlow/PFTracking/data/MVA_BDTTrackDrivenSeed_cat9.xml'),                                        
0028     PFEcalClusterLabel = cms.InputTag("particleFlowClusterECAL"),
0029     PFHcalClusterLabel = cms.InputTag("particleFlowClusterHCAL"),
0030     PSThresholdFile = cms.string('RecoParticleFlow/PFTracking/data/PSThreshold.dat'),
0031     MinPt = cms.double(2.0),
0032     TkColList = cms.VInputTag(cms.InputTag("generalTracks")),
0033     UseTMVA = cms.untracked.bool(True),
0034     TrackQuality = cms.string('highPurity'),
0035     MaxPt = cms.double(50.0),
0036     ApplyIsolation = cms.bool(False),
0037     EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
0038     EcalStripSumE_minClusEnergy = cms.double(0.1),
0039     EcalStripSumE_deltaEta = cms.double(0.03),
0040     EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
0041     EOverPLead_minValue = cms.double(0.95),
0042     HOverPLead_maxValue = cms.double(0.05),
0043     HcalWindow=cms.double(0.184),                       
0044     ClusterThreshold = cms.double(0.5),
0045     UsePreShower =cms.bool(False),
0046     PreIdLabel = cms.string('preid'),
0047     ProducePreId = cms.untracked.bool(True),
0048     PtThresholdSavePreId = cms.untracked.double(1.0),
0049     Min_dr = cms.double(0.2)
0050 )
0051 
0052 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0053 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0054 for e in [pp_on_XeXe_2017, pp_on_AA]:
0055     e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0) 
0056 
0057 # tracker driven electron seeds depend on the generalTracks trajectory collection
0058 # However, in FastSim jobs, trajectories are only available for the 'before mixing' track collections
0059 # Therefore we let the seeds depend on the 'before mixing' generalTracks collection
0060 # TODO: investigate whether the dependence on trajectories can be avoided
0061 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0062 trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = ["generalTracksBeforeMixing"])
0063 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
0064 _fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
0065 _fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel("trackerDrivenElectronSeedsTmp")
0066 _fastSim_trackerDrivenElectronSeeds.idCollection = ["trackerDrivenElectronSeedsTmp:preid",]
0067 fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)
0068 
0069 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
0070 egamma_lowPt_exclusive.toModify(trackerDrivenElectronSeeds,MinPt = 1.0)
0071