CMS 3D CMS Logo

particleFlowClusterHCAL_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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)
7 
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.),
14  #pf clustering parameters
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,
24  ),
25  cms.PSet( detector = cms.string("HCAL_ENDCAP"),
26  depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
27  logWeightDenominator = _thresholdsHE,
28  )
29  ),
30  minAllowedNormalization = cms.double(1e-9)
31  )
32  ),
33  positionReCalc = cms.PSet(),
34  energyCorrector = cms.PSet()
35 )
36 
37 # offline 2018 -- uncollapsed
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) } ),
43  ),
44 )
45 
46 # offline 2021
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) } ),
51  ),
52 )