CMS 3D CMS Logo

pfClusteringCustoms.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 
5 
6 def usePFWithMethodOne(process):
7  print '-------------PF with method I -------------'
8  print 'Assumes that HCAL reco is tuned to method I '
9  process.particleFlowRecHitHBHE.navigator = cms.PSet(
10  name = cms.string("PFRecHitHCALNavigator")
11  )
12  process.pfClusteringHBHEHF.remove(process.particleFlowClusterHBHETimeSelected)
13  process.particleFlowClusterHCAL.clustersSource = cms.InputTag("particleFlowClusterHBHE")
14 
15 
17  print '-------------PF with method I.5-------------'
18  print 'Independent of which HCAL reco was used since it reads the time samples from the rechit '
19 
20 
21  from RecoParticleFlow.PFClusterProducer.particleFlowClusterHBHEMaxSampleTimeSelected_cfi import particleFlowClusterHBHETimeSelected as timeSelector
22  process.particleFlowClusterHBHETimeSelected.cuts = timeSelector.cuts
23 
24  from RecoParticleFlow.PFClusterProducer.particleFlowCaloResolution_cfi import _timeResolutionHCALMaxSample
25  process.particleFlowRecHitHBHE.navigator = cms.PSet(
26  name = cms.string("PFRecHitHCALNavigatorWithTime"),
27  sigmaCut = cms.double(4.0),
28  timeResolutionCalc = _timeResolutionHCALMaxSample
29  )
30 
31  for p in process.particleFlowRecHitHBHE.producers:
32  p.name = cms.string("PFHBHERecHitCreatorMaxSample")
33  process.particleFlowClusterHBHE.pfClusterBuilder.algoName = cms.string("PFlow2DClusterizerWithTime")
34 
35 
36 
37 
38 
39 
def usePFWithMethodOne(process)
def usePFWithMethodOnePointFive(process)