CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 from Configuration.StandardSequences.Eras import eras
36 
38  """
39  Customises PFRecHitProducer for Run 2 by lowering the
40  HO threshold for SiPM
41  """
42  for prod in object.producers:
43  prod.qualityTests = cms.VPSet(
44  cms.PSet(
45  name = cms.string("PFRecHitQTestThreshold"),
46  threshold = cms.double(0.05) # new threshold for SiPM HO
47  ),
48  cms.PSet(
49  name = cms.string("PFRecHitQTestHCALChannel"),
50  maxSeverities = cms.vint32(11),
51  cleaningThresholds = cms.vdouble(0.0),
52  flags = cms.vstring('Standard')
53  )
54  )
55 
56 eras.run2_common.toModify( particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2 )