CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def customise_PF.customise (   process)

Definition at line 3 of file customise_PF.py.

3 
4 def customise(process):
5 
6  # Customize process to run PF *without* electrons
7 
8  # add particle flow local reconstruction
9  process.load("RecoParticleFlow.PFClusterProducer.particleFlowCluster_cff")
10  process.localReco += process.particleFlowCluster
11 
12  process.load("RecoParticleFlow.PFTracking.pfTrack_cfi")
13  process.pfTrack.UseQuality = cms.bool(True)
14  process.pfTrack.TrackQuality = cms.string('highPurity')
15  process.pfTrack.TkColList = cms.VInputTag("hiGeneralTracks")
16  process.pfTrack.PrimaryVertexLabel = cms.InputTag("hiSelectedVertex")
17  process.pfTrack.MuColl = cms.InputTag("hiMuons1stStep")
18  process.pfTrack.GsfTracksInEvents = cms.bool(False)
19 
20  # run a trimmed down PF sequence with heavy-ion vertex, no conversions, nucl int, etc.
21  process.load("RecoParticleFlow.Configuration.RecoParticleFlow_cff")
22 
23  process.particleFlowBlock.useConvBremPFRecTracks = cms.bool(False)
24  process.particleFlowBlock.useIterTracking = cms.bool(False)
25  process.particleFlowBlock.useNuclear = cms.bool(False)
26  process.particleFlowBlock.useConversions = cms.bool(False)
27 
28  process.particleFlowTmp.vertexCollection = cms.InputTag("hiSelectedVertex")
29  process.particleFlowTmp.muons = cms.InputTag("hiMuons1stStep")
30  process.particleFlowTmp.usePFConversions = cms.bool(False)
31 
32  process.electronsCiCLoose.verticesCollection = cms.InputTag("hiSelectedVertex")
33 
34  # define new high-level RECO sequence and add to top-level sequence
35  process.highLevelRecoPbPb = cms.Sequence(process.pfTrack
36  * process.pfGsfElectronCiCSelectionSequence
37  * process.particleFlowBlock
38  * process.particleFlowTmp
39  )
40 
41  process.reconstructionHeavyIons *= process.highLevelRecoPbPb
42 
43  return process