Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 particleFlowRecHitHO = cms.EDProducer("PFRecHitProducer",
0004     navigator = cms.PSet(
0005         name = cms.string("PFRecHitHCALDenseIdNavigator"),
0006         hcalEnums = cms.vint32(3)
0007     ),
0008     producers = cms.VPSet(
0009            cms.PSet(
0010              name = cms.string("PFHORecHitCreator"),
0011              src  = cms.InputTag("horeco",""),
0012              qualityTests = cms.VPSet(
0013                   cms.PSet(
0014                     name = cms.string("PFRecHitQTestHOThreshold"),
0015                     threshold_ring0 = cms.double(0.4),
0016                     threshold_ring12 = cms.double(1.0)
0017                   ),
0018 #                  cms.PSet(
0019 #                  name = cms.string("PFRecHitQTestThreshold"),
0020 #                  threshold = cms.double(0.05) # new threshold for SiPM HO
0021 #                  ),
0022                   cms.PSet(
0023                       name = cms.string("PFRecHitQTestHCALChannel"),
0024                       maxSeverities      = cms.vint32(11),
0025                       cleaningThresholds = cms.vdouble(0.0),
0026                       flags              = cms.vstring('Standard')
0027                   )
0028              )
0029            )
0030     )
0031 
0032 )
0033 
0034 #
0035 # Need to change the quality tests for Run 2
0036 #
0037 
0038 def _modifyParticleFlowRecHitHOForRun2( object ) :
0039     """
0040     Customises PFRecHitProducer for Run 2 by lowering the
0041     HO threshold for SiPM
0042     """
0043     for prod in object.producers:
0044         prod.qualityTests = cms.VPSet(
0045             cms.PSet(
0046                 name = cms.string("PFRecHitQTestThreshold"),
0047                 threshold = cms.double(0.05) # new threshold for SiPM HO
0048             ),
0049             cms.PSet(
0050                 name = cms.string("PFRecHitQTestHCALChannel"),
0051                 maxSeverities      = cms.vint32(11),
0052                 cleaningThresholds = cms.vdouble(0.0),
0053                 flags              = cms.vstring('Standard')
0054             )
0055         )
0056 
0057 from Configuration.Eras.Modifier_run2_common_cff import run2_common
0058 run2_common.toModify( particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2 )