CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
particleFlowClusterHFHAD_cfi.py
Go to the documentation of this file.
2 
3 #### PF CLSUTER HFHAD ####
4 
5 #cleaning
6 _spikeAndDoubleSpikeCleaner_HFHAD = cms.PSet(
7  algoName = cms.string("SpikeAndDoubleSpikeCleaner"),
8  cleaningByDetector = cms.VPSet(
9  cms.PSet( detector = cms.string("HF_HAD"),
10  #single spike
11  singleSpikeThresh = cms.double(120.0),
12  minS4S1_a = cms.double(0.045), #constant term
13  minS4S1_b = cms.double(-0.080), #log pt scaling
14  #double spike
15  doubleSpikeThresh = cms.double(1e9),
16  doubleSpikeS6S2 = cms.double(-1.0),
17  energyThresholdModifier = cms.double(1.0), ## aka "tighterE"
18  fractionThresholdModifier = cms.double(1.0) ## aka "tighterF"
19  )
20  )
21 )
22 
23 #seeding
24 _localMaxSeeds_HFHAD = cms.PSet(
25  algoName = cms.string("LocalMaximumSeedFinder"),
26  thresholdsByDetector = cms.VPSet(
27  cms.PSet( detector = cms.string("HF_HAD"),
28  seedingThreshold = cms.double(1.4),
29  seedingThresholdPt = cms.double(0.0)
30  )
31  ),
32  nNeighbours = cms.int32(0)
33 )
34 
35 #topo clusters
36 _topoClusterizer_HFHAD = cms.PSet(
37  algoName = cms.string("Basic2DGenericTopoClusterizer"),
38  thresholdsByDetector = cms.VPSet(
39  cms.PSet( detector = cms.string("HF_HAD"),
40  gatheringThreshold = cms.double(0.8),
41  gatheringThresholdPt = cms.double(0.0)
42  )
43  ),
44  useCornerCells = cms.bool(False)
45 )
46 
47 #position calc
48 _positionCalcHFHAD_cross_nodepth = cms.PSet(
49  algoName = cms.string("Basic2DGenericPFlowPositionCalc"),
50  ##
51  minFractionInCalc = cms.double(1e-9),
52  posCalcNCrystals = cms.int32(5),
53  logWeightDenominator = cms.double(0.8), # same as gathering threshold
54  minAllowedNormalization = cms.double(1e-9)
55 )
56 
57 _positionCalcHFHAD_all_nodepth = _positionCalcHFHAD_cross_nodepth.clone(
58  posCalcNCrystals = cms.int32(-1)
59 )
60 
61 #pf clusters
62 _pfClusterizer_HFHAD = cms.PSet(
63  algoName = cms.string("Basic2DGenericPFlowClusterizer"),
64  #pf clustering parameters
65  minFractionToKeep = cms.double(1e-7),
66  positionCalc = _positionCalcHFHAD_cross_nodepth,
67  allCellsPositionCalc = _positionCalcHFHAD_all_nodepth,
68  showerSigma = cms.double(10.0),
69  stoppingTolerance = cms.double(1e-8),
70  maxIterations = cms.uint32(50),
71  excludeOtherSeeds = cms.bool(True),
72  minFracTot = cms.double(1e-20), ## numerical stabilization
73  recHitEnergyNorms = cms.VPSet(
74  cms.PSet( detector = cms.string("HF_HAD"),
75  recHitEnergyNorm = cms.double(0.8)
76  )
77  )
78  )
79 
80 particleFlowClusterHFHAD = cms.EDProducer(
81  "PFClusterProducer",
82  recHitsSource = cms.InputTag("particleFlowRecHitHCAL:HFHAD"),
83  recHitCleaners = cms.VPSet(_spikeAndDoubleSpikeCleaner_HFHAD),
84  seedFinder = _localMaxSeeds_HFHAD,
85  initialClusteringStep = _topoClusterizer_HFHAD,
86  pfClusterBuilder = _pfClusterizer_HFHAD,
87  positionReCalc = cms.PSet(),
88  energyCorrector = cms.PSet()
89 )
90