CMS 3D CMS Logo

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