1 import FWCore.ParameterSet.Config
as cms
3 _thresholdsHB = cms.vdouble(0.8, 0.8, 0.8, 0.8)
4 _thresholdsHE = cms.vdouble(0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8)
5 _thresholdsHBphase1 = cms.vdouble(0.1, 0.2, 0.3, 0.3)
6 _thresholdsHEphase1 = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
8 particleFlowClusterHCAL = cms.EDProducer(
'PFMultiDepthClusterProducer',
9 clustersSource = cms.InputTag(
"particleFlowClusterHBHE"),
10 pfClusterBuilder =cms.PSet(
11 algoName = cms.string(
"PFMultiDepthClusterizer"),
12 nSigmaEta = cms.double(2.),
13 nSigmaPhi = cms.double(2.),
15 minFractionToKeep = cms.double(1e-7),
16 allCellsPositionCalc = cms.PSet(
17 algoName = cms.string(
"Basic2DGenericPFlowPositionCalc"),
18 minFractionInCalc = cms.double(1e-9),
19 posCalcNCrystals = cms.int32(-1),
20 logWeightDenominatorByDetector = cms.VPSet(
21 cms.PSet( detector = cms.string(
"HCAL_BARREL1"),
22 depths = cms.vint32(1, 2, 3, 4),
23 logWeightDenominator = _thresholdsHB,
25 cms.PSet( detector = cms.string(
"HCAL_ENDCAP"),
26 depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
27 logWeightDenominator = _thresholdsHE,
30 minAllowedNormalization = cms.double(1e-9)
33 positionReCalc = cms.PSet(),
34 energyCorrector = cms.PSet()
38 from Configuration.Eras.Modifier_run2_HE_2018_cff
import run2_HE_2018
39 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff
import run2_HECollapse_2018
40 (run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowClusterHCAL,
41 pfClusterBuilder = dict(
42 allCellsPositionCalc = dict(logWeightDenominatorByDetector = {1 : dict(logWeightDenominator = _thresholdsHEphase1) } ),
47 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
48 run3_HB.toModify(particleFlowClusterHCAL,
49 pfClusterBuilder = dict(
50 allCellsPositionCalc = dict(logWeightDenominatorByDetector = {0 : dict(logWeightDenominator = _thresholdsHBphase1) } ),
55 particleFlowClusterHCALOnly = particleFlowClusterHCAL.clone(
56 clustersSource =
"particleFlowClusterHBHEOnly"