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 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.usePFElectrons = cms.bool(False)
30  process.particleFlowTmp.muons = cms.InputTag("hiMuons1stStep")
31  process.particleFlowTmp.usePFConversions = cms.bool(False)
32 
33  process.electronsCiCLoose.verticesCollection = cms.InputTag("hiSelectedVertex")
34 
35  # define new high-level RECO sequence and add to top-level sequence
36  process.highLevelRecoPbPb = cms.Sequence(process.pfTrack
37  * process.pfGsfElectronCiCSelectionSequence
38  * process.particleFlowBlock
39  * process.particleFlowTmp
40  )
41 
42  process.reconstructionHeavyIons *= process.highLevelRecoPbPb
43 
44  return process