CMS 3D CMS Logo

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