CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/RecoHI/Configuration/python/customise_PF.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 def customise(process):
00004 
00005     # Customize process to run PF *without* electrons
00006 
00007     # add particle flow local reconstruction
00008     process.load("RecoParticleFlow.PFClusterProducer.particleFlowCluster_cff")
00009     process.localReco += process.particleFlowCluster
00010 
00011     process.load("RecoParticleFlow.PFTracking.pfTrack_cfi")
00012     process.pfTrack.UseQuality = cms.bool(True)   
00013     process.pfTrack.TrackQuality = cms.string('highPurity')   
00014     process.pfTrack.TkColList = cms.VInputTag("hiSelectedTracks")  
00015     process.pfTrack.PrimaryVertexLabel = cms.InputTag("hiSelectedVertex")
00016     process.pfTrack.MuColl = cms.InputTag("muons")
00017     process.pfTrack.GsfTracksInEvents = cms.bool(False)
00018     
00019     # run a trimmed down PF sequence with heavy-ion vertex, no conversions, nucl int, etc.
00020     process.load("RecoParticleFlow.Configuration.RecoParticleFlow_cff")
00021 
00022     process.particleFlowBlock.useConvBremPFRecTracks = cms.bool(False)
00023     process.particleFlowBlock.useIterTracking = cms.bool(False)
00024     process.particleFlowBlock.useNuclear = cms.bool(False)
00025     process.particleFlowBlock.useConversions = cms.bool(False)
00026 
00027     process.particleFlowTmp.vertexCollection = cms.InputTag("hiSelectedVertex")
00028     process.particleFlowTmp.usePFElectrons = cms.bool(False)
00029     process.particleFlowTmp.muons = cms.InputTag("muons")
00030     process.particleFlowTmp.usePFConversions = cms.bool(False)
00031 
00032     process.electronsCiCLoose.verticesCollection = cms.InputTag("hiSelectedVertex")
00033 
00034     # define new high-level RECO sequence and add to top-level sequence
00035     process.highLevelRecoPbPb = cms.Sequence(process.pfTrack
00036                                              * process.pfGsfElectronCiCSelectionSequence
00037                                              * process.particleFlowBlock
00038                                              * process.particleFlowTmp
00039                                              )
00040     
00041     process.reconstructionHeavyIons *= process.highLevelRecoPbPb
00042     
00043     return process