CMS 3D CMS Logo

particleFlowRecHitHO_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 particleFlowRecHitHO = cms.EDProducer("PFRecHitProducer",
4  navigator = cms.PSet(
5  name = cms.string("PFRecHitHCALDenseIdNavigator"),
6  hcalEnums = cms.vint32(3)
7  ),
8  producers = cms.VPSet(
9  cms.PSet(
10  name = cms.string("PFHORecHitCreator"),
11  src = cms.InputTag("horeco",""),
12  qualityTests = cms.VPSet(
13  cms.PSet(
14  name = cms.string("PFRecHitQTestHOThreshold"),
15  threshold_ring0 = cms.double(0.4),
16  threshold_ring12 = cms.double(1.0)
17  ),
18 # cms.PSet(
19 # name = cms.string("PFRecHitQTestThreshold"),
20 # threshold = cms.double(0.05) # new threshold for SiPM HO
21 # ),
22  cms.PSet(
23  name = cms.string("PFRecHitQTestHCALChannel"),
24  maxSeverities = cms.vint32(11),
25  cleaningThresholds = cms.vdouble(0.0),
26  flags = cms.vstring('Standard')
27  )
28  )
29  )
30  )
31 
32 )
33 
34 #
35 # Need to change the quality tests for Run 2
36 #
37 
39  """
40  Customises PFRecHitProducer for Run 2 by lowering the
41  HO threshold for SiPM
42  """
43  for prod in object.producers:
44  prod.qualityTests = cms.VPSet(
45  cms.PSet(
46  name = cms.string("PFRecHitQTestThreshold"),
47  threshold = cms.double(0.05) # new threshold for SiPM HO
48  ),
49  cms.PSet(
50  name = cms.string("PFRecHitQTestHCALChannel"),
51  maxSeverities = cms.vint32(11),
52  cleaningThresholds = cms.vdouble(0.0),
53  flags = cms.vstring('Standard')
54  )
55  )
56 
57 from Configuration.Eras.Modifier_run2_common_cff import run2_common
58 run2_common.toModify( particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2 )
particleFlowRecHitHO_cfi._modifyParticleFlowRecHitHOForRun2
def _modifyParticleFlowRecHitHOForRun2(object)
Definition: particleFlowRecHitHO_cfi.py:38