1 import FWCore.ParameterSet.Config
as cms
4 particleFlowSuperClusterECALBox = cms.EDProducer(
5 "PFECALSuperClusterProducer",
7 verbose = cms.untracked.bool(
False),
9 ClusteringType = cms.string(
"Box"),
11 EnergyWeight = cms.string(
"Raw"),
14 useDynamicDPhiWindow = cms.bool(
False),
17 PFClusters = cms.InputTag(
"particleFlowClusterECAL"),
18 ESAssociation = cms.InputTag(
"particleFlowClusterECAL"),
19 BeamSpot = cms.InputTag(
"offlineBeamSpot"),
21 PFBasicClusterCollectionBarrel = cms.string(
"particleFlowBasicClusterECALBarrel"),
22 PFSuperClusterCollectionBarrel = cms.string(
"particleFlowSuperClusterECALBarrel"),
23 PFBasicClusterCollectionEndcap = cms.string(
"particleFlowBasicClusterECALEndcap"),
24 PFSuperClusterCollectionEndcap = cms.string(
"particleFlowSuperClusterECALEndcap"),
25 PFBasicClusterCollectionPreshower = cms.string(
"particleFlowBasicClusterECALPreshower"),
26 PFSuperClusterCollectionEndcapWithPreshower = cms.string(
"particleFlowSuperClusterECALEndcapWithPreshower"),
29 use_preshower = cms.bool(
True),
32 seedThresholdIsET = cms.bool(
True),
35 useRegression = cms.bool(
False),
36 regressionConfig = cms.PSet(
37 regressionKeyEB = cms.string(
'pfscecal_EBCorrection_offline_v2'),
38 uncertaintyKeyEB = cms.string(
'pfscecal_EBUncertainty_offline_v2'),
39 regressionKeyEE = cms.string(
'pfscecal_EECorrection_offline_v2'),
40 uncertaintyKeyEE = cms.string(
'pfscecal_EEUncertainty_offline_v2'),
41 vertexCollection = cms.InputTag(
"offlinePrimaryVertices"),
42 ecalRecHitsEB = cms.InputTag(
'ecalRecHit',
'EcalRecHitsEB'),
43 ecalRecHitsEE = cms.InputTag(
'ecalRecHit',
'EcalRecHitsEE'),
44 applySigmaIetaIphiBug = cms.bool(
False)
48 thresh_SCEt = cms.double(4.0),
51 thresh_PFClusterSeedBarrel = cms.double(3.0),
52 thresh_PFClusterBarrel = cms.double(0.5),
54 thresh_PFClusterSeedEndcap = cms.double(5.0),
55 thresh_PFClusterEndcap = cms.double(0.5),
58 phiwidth_SuperClusterBarrel = cms.double(0.28),
59 etawidth_SuperClusterBarrel = cms.double(0.04),
61 phiwidth_SuperClusterEndcap = cms.double(0.28),
62 etawidth_SuperClusterEndcap = cms.double(0.04),
66 doSatelliteClusterMerge = cms.bool(
False),
67 satelliteClusterSeedThreshold = cms.double(50.0),
68 satelliteMajorityFraction = cms.double(0.5),
69 dropUnseedable = cms.bool(
False),
74 applyCrackCorrections = cms.bool(
False)
78 particleFlowSuperClusterECALMustache = cms.EDProducer(
79 "PFECALSuperClusterProducer",
81 verbose = cms.untracked.bool(
False),
83 ClusteringType = cms.string(
"Mustache"),
85 EnergyWeight = cms.string(
"Raw"),
88 useDynamicDPhiWindow = cms.bool(
True),
91 PFClusters = cms.InputTag(
"particleFlowClusterECAL"),
92 ESAssociation = cms.InputTag(
"particleFlowClusterECAL"),
93 BeamSpot = cms.InputTag(
"offlineBeamSpot"),
95 PFBasicClusterCollectionBarrel = cms.string(
"particleFlowBasicClusterECALBarrel"),
96 PFSuperClusterCollectionBarrel = cms.string(
"particleFlowSuperClusterECALBarrel"),
97 PFBasicClusterCollectionEndcap = cms.string(
"particleFlowBasicClusterECALEndcap"),
98 PFSuperClusterCollectionEndcap = cms.string(
"particleFlowSuperClusterECALEndcap"),
99 PFBasicClusterCollectionPreshower = cms.string(
"particleFlowBasicClusterECALPreshower"),
100 PFSuperClusterCollectionEndcapWithPreshower = cms.string(
"particleFlowSuperClusterECALEndcapWithPreshower"),
103 seedThresholdIsET = cms.bool(
True),
105 useRegression = cms.bool(
True),
106 regressionConfig = cms.PSet(
107 regressionKeyEB = cms.string(
'pfscecal_EBCorrection_offline_v2'),
108 uncertaintyKeyEB = cms.string(
'pfscecal_EBUncertainty_offline_v2'),
109 regressionKeyEE = cms.string(
'pfscecal_EECorrection_offline_v2'),
110 uncertaintyKeyEE = cms.string(
'pfscecal_EEUncertainty_offline_v2'),
111 vertexCollection = cms.InputTag(
"offlinePrimaryVertices"),
112 ecalRecHitsEB = cms.InputTag(
'ecalRecHit',
'EcalRecHitsEB'),
113 ecalRecHitsEE = cms.InputTag(
'ecalRecHit',
'EcalRecHitsEE'),
114 applySigmaIetaIphiBug = cms.bool(
False)
118 thresh_SCEt = cms.double(4.0),
121 thresh_PFClusterSeedBarrel = cms.double(1.0),
122 thresh_PFClusterBarrel = cms.double(0.0),
124 thresh_PFClusterSeedEndcap = cms.double(1.0),
125 thresh_PFClusterEndcap = cms.double(0.0),
128 phiwidth_SuperClusterBarrel = cms.double(0.6),
129 etawidth_SuperClusterBarrel = cms.double(0.04),
131 phiwidth_SuperClusterEndcap = cms.double(0.6),
132 etawidth_SuperClusterEndcap = cms.double(0.04),
135 thresh_PFClusterES = cms.double(0.),
139 doSatelliteClusterMerge = cms.bool(
False),
140 satelliteClusterSeedThreshold = cms.double(50.0),
141 satelliteMajorityFraction = cms.double(0.5),
142 dropUnseedable = cms.bool(
False),
147 applyCrackCorrections = cms.bool(
False)
152 particleFlowSuperClusterECAL = particleFlowSuperClusterECALMustache.clone()
154 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
155 pp_on_AA_2018.toModify(particleFlowSuperClusterECAL, useDynamicDPhiWindow =
False)
156 pp_on_AA_2018.toModify(particleFlowSuperClusterECAL, phiwidth_SuperClusterBarrel = 0.20)
157 pp_on_AA_2018.toModify(particleFlowSuperClusterECAL, phiwidth_SuperClusterEndcap = 0.20)