CMS 3D CMS Logo

Functions

customise_PF Namespace Reference

Functions

def customise

Function Documentation

def customise_PF::customise (   process)

Definition at line 3 of file customise_PF.py.

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