Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 02:41:31

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 _thresholdsHB = cms.vdouble(0.8, 0.8, 0.8, 0.8)
0004 _thresholdsHE = cms.vdouble(0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8)
0005 _thresholdsHBphase1 = cms.vdouble(0.1, 0.2, 0.3, 0.3)
0006 _thresholdsHEphase1 = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
0007 
0008 particleFlowRecHitHBHE = cms.EDProducer("PFRecHitProducer",
0009     navigator = cms.PSet(
0010             name = cms.string("PFRecHitHCALDenseIdNavigator"),
0011             hcalEnums = cms.vint32(1,2)
0012     ),
0013     producers = cms.VPSet(
0014            cms.PSet(
0015              name = cms.string("PFHBHERecHitCreator"),
0016              src  = cms.InputTag("hbhereco",""),
0017              qualityTests = cms.VPSet(
0018                   cms.PSet(
0019                   name = cms.string("PFRecHitQTestHCALThresholdVsDepth"),
0020                   cuts = cms.VPSet(
0021                         cms.PSet(
0022                             depth=cms.vint32(1, 2, 3, 4),
0023                             threshold = _thresholdsHB,
0024                             detectorEnum = cms.int32(1)
0025                             ),
0026                         cms.PSet(
0027                             depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
0028                             threshold = _thresholdsHE,
0029                             detectorEnum = cms.int32(2)
0030                             )
0031                         )
0032                   ),
0033                   cms.PSet(
0034                       name = cms.string("PFRecHitQTestHCALChannel"),
0035                       maxSeverities      = cms.vint32(11),
0036                       cleaningThresholds = cms.vdouble(0.0),
0037                       flags              = cms.vstring('Standard')
0038                   )
0039              )
0040            ),
0041     )
0042 )
0043 
0044 # offline 2018 -- uncollapsed
0045 from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
0046 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
0047 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
0048     producers = {0 : dict(qualityTests = {0 : dict(cuts = {1 : dict(threshold = _thresholdsHEphase1) } ) } ) },
0049 )
0050 
0051 # offline 2021
0052 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0053 run3_HB.toModify(particleFlowRecHitHBHE,
0054     producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1) } ) } ) },
0055 )
0056 
0057 # HCALonly WF
0058 particleFlowRecHitHBHEOnly = particleFlowRecHitHBHE.clone(
0059     producers = { 0: dict(src = "hbheprereco") }
0060 )
0061 run3_HB.toModify(particleFlowRecHitHBHEOnly,
0062     producers = { 0: dict(src = "hbhereco") }
0063 )