CMS 3D CMS Logo

particleFlowClusterHGC_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 #### PF CLUSTER HGCal ####
4 
5 #cleaning (none for now)
6 
7 #seeding
8 _passThruSeeds_HGCal = cms.PSet(
9  algoName = cms.string("PassThruSeedFinder"),
10  thresholdsByDetector = cms.VPSet(
11  ),
12  nNeighbours = cms.int32(8)
13 )
14 
15 # initial step clusterizer
16 _simClusterMapper_HGCal = cms.PSet(
17  algoName = cms.string("RealisticSimClusterMapper"),
18  exclusiveFraction = cms.double(0.6),
19  invisibleFraction = cms.double(0.6),
20  maxDistanceFilter = cms.bool(True),
21  #filtering out hits outside a cylinder of 10cm radius, built around the center of gravity per each layer
22  maxDistance = cms.double(10.0),
23  useMCFractionsForExclEnergy = cms.bool(False),
24  thresholdsByDetector = cms.VPSet(
25  ),
26  hadronCalib = hadronCorrections,
27  egammaCalib = egammaCorrections,
28  calibMinEta = minEtaCorrection,
29  calibMaxEta = maxEtaCorrection,
30  simClusterSrc = cms.InputTag("mix:MergedCaloTruth")
31 )
32 
33 
34 #position calculations
35 _positionCalcPCA_HGCal = cms.PSet(
36  algoName = cms.string("Cluster3DPCACalculator"),
37  minFractionInCalc = cms.double(1e-9)
38 )
39 
40 _hgcalMultiClusterMapper_HGCal = cms.PSet(
41  algoName = cms.string("PFClusterFromHGCalMultiCluster"),
42  thresholdsByDetector = cms.VPSet(
43  ),
44  clusterSrc = cms.InputTag("hgcalLayerClusters")
45 )
46 
47 particleFlowClusterHGCal = cms.EDProducer(
48  "PFClusterProducer",
49  recHitsSource = cms.InputTag("particleFlowRecHitHGC"),
50  recHitCleaners = cms.VPSet(),
51  seedFinder = _passThruSeeds_HGCal,
52  initialClusteringStep = _simClusterMapper_HGCal,
53  pfClusterBuilder = cms.PSet(),
54  positionReCalc = _positionCalcPCA_HGCal,
55  energyCorrector = cms.PSet()
56  )
57 
58 particleFlowClusterHGCalFromMultiCl = particleFlowClusterHGCal.clone(
59  initialClusteringStep = _hgcalMultiClusterMapper_HGCal
60 )