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 _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 particleFlowClusterHCAL = cms.EDProducer('PFMultiDepthClusterProducer',
0009        clustersSource = cms.InputTag("particleFlowClusterHBHE"),
0010        pfClusterBuilder =cms.PSet(
0011            algoName = cms.string("PFMultiDepthClusterizer"),
0012            nSigmaEta = cms.double(2.),
0013            nSigmaPhi = cms.double(2.),
0014            #pf clustering parameters
0015            minFractionToKeep = cms.double(1e-7),
0016            allCellsPositionCalc = cms.PSet(
0017                algoName = cms.string("Basic2DGenericPFlowPositionCalc"),
0018                minFractionInCalc = cms.double(1e-9),    
0019                posCalcNCrystals = cms.int32(-1),
0020                logWeightDenominatorByDetector = cms.VPSet(
0021                 cms.PSet( detector = cms.string("HCAL_BARREL1"),
0022                           depths = cms.vint32(1, 2, 3, 4),
0023                           logWeightDenominator = _thresholdsHB,
0024                           ),
0025                 cms.PSet( detector = cms.string("HCAL_ENDCAP"),
0026                           depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
0027                           logWeightDenominator = _thresholdsHE,
0028                           )
0029                 ),
0030                minAllowedNormalization = cms.double(1e-9)
0031            )
0032        ),
0033        positionReCalc = cms.PSet(),
0034        energyCorrector = cms.PSet()
0035 )
0036 
0037 # offline 2018 -- uncollapsed
0038 from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
0039 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
0040 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowClusterHCAL,
0041     pfClusterBuilder = dict(
0042         allCellsPositionCalc = dict(logWeightDenominatorByDetector = {1 : dict(logWeightDenominator = _thresholdsHEphase1) } ),
0043     ),
0044 )
0045 
0046 # offline 2021
0047 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0048 run3_HB.toModify(particleFlowClusterHCAL,
0049     pfClusterBuilder = dict(
0050         allCellsPositionCalc = dict(logWeightDenominatorByDetector = {0 : dict(logWeightDenominator = _thresholdsHBphase1) } ),
0051     ),
0052 )
0053 
0054 # HCALonly WF
0055 particleFlowClusterHCALOnly = particleFlowClusterHCAL.clone(
0056     clustersSource = "particleFlowClusterHBHEOnly"
0057 )