CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customise_PF Namespace Reference

Functions

def customise
 

Function Documentation

def customise_PF.customise (   process)

Definition at line 1 of file customise_PF.py.

1 def customise(process):
2 
3  # add particle flow local reconstruction
4  process.load("RecoParticleFlow.PFClusterProducer.particleFlowCluster_cff")
5  process.localReco += process.particleFlowCluster
6 
7  # avoid clustering in forward regions for dramatic timing improvement
8  process.particleFlowClusterPS.thresh_Pt_Seed_Endcap = cms.double(99999.)
9  process.particleFlowClusterHFEM.thresh_Pt_Seed_Endcap = cms.double(99999.)
10  process.particleFlowClusterHFHAD.thresh_Pt_Seed_Endcap = cms.double(99999.)
11 
12  # run tracker-driven electron seeds with heavy-ion tracks
13  process.load("TrackingTools.GsfTracking.FwdAnalyticalPropagator_cfi")
14  process.load("RecoParticleFlow.PFTracking.trackerDrivenElectronSeeds_cff")
15  process.trackerDrivenElectronSeeds.UseQuality = cms.bool(True)
16  process.trackerDrivenElectronSeeds.TrackQuality = cms.string('highPurity')
17  process.trackerDrivenElectronSeeds.TkColList = cms.VInputTag("hiSelectedTracks")
18  process.trackerDrivenElectronSeeds.ProducePreId = cms.untracked.bool(False)
19  process.trackerDrivenElectronSeeds.DisablePreId = cms.untracked.bool(True)
20 
21  # run a trimmed down PF sequence with heavy-ion vertex, no electrons, etc.
22  process.load("RecoParticleFlow.Configuration.RecoParticleFlow_cff")
23  process.particleFlowBlock.useConvBremPFRecTracks = cms.bool(False)
24  process.particleFlowBlock.usePFatHLT = cms.bool(True)
25  process.particleFlowBlock.useIterTracking = cms.bool(False)
26  process.particleFlow.vertexCollection = cms.InputTag("hiSelectedVertex")
27  process.particleFlow.usePFElectrons = cms.bool(False)
28  #process.particleFlowReco.remove(process.particleFlowTrack)
29  process.particleFlowReco.remove(process.particleFlowTrackWithDisplacedVertex)
30  process.particleFlowReco.remove(process.pfElectronTranslatorSequence)
31 
32  # define new high-level RECO sequence and add to top-level sequence
33  process.load("RecoJets.Configuration.RecoPFJets_cff")
34  process.highLevelRecoPbPb = cms.Sequence(process.trackerDrivenElectronSeeds
35  * process.particleFlowReco
36  * process.recoPFJets)
37  process.reconstructionHeavyIons *= process.highLevelRecoPbPb
38 
39  return process
40