CMS 3D CMS Logo

particleFlowSuperClusterECAL_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import os
3 
4 particleFlowSuperClusterECALBox = cms.EDProducer(
5  "PFECALSuperClusterProducer",
6  # verbosity
7  verbose = cms.untracked.bool(False),
8  #clustering type: "Box" or "Mustache"
9  ClusteringType = cms.string("Box"),
10  #energy weighting: "Raw", "CalibratedNoPS", "CalibratedTotal"
11  EnergyWeight = cms.string("Raw"),
12 
13  #this overrides both dphi cuts below if true!
14  useDynamicDPhiWindow = cms.bool(False),
15 
16  #PFClusters collection
17  PFClusters = cms.InputTag("particleFlowClusterECAL"),
18  ESAssociation = cms.InputTag("particleFlowClusterECAL"),
19  BeamSpot = cms.InputTag("offlineBeamSpot"),
20 
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"),
27 
28  #use preshower ?
29  use_preshower = cms.bool(True),
30 
31  # are the seed thresholds Et or Energy?
32  seedThresholdIsET = cms.bool(True),
33 
34  # regression setup
35  useRegression = cms.bool(False), #regressions are mustache only
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  ),
45 
46  #threshold for final SuperCluster Et
47  thresh_SCEt = cms.double(4.0),
48 
49  # threshold in ECAL
50  thresh_PFClusterSeedBarrel = cms.double(3.0),
51  thresh_PFClusterBarrel = cms.double(0.5),
52 
53  thresh_PFClusterSeedEndcap = cms.double(5.0),
54  thresh_PFClusterEndcap = cms.double(0.5),
55 
56  # window width in ECAL
57  phiwidth_SuperClusterBarrel = cms.double(0.28),
58  etawidth_SuperClusterBarrel = cms.double(0.04),
59 
60  phiwidth_SuperClusterEndcap = cms.double(0.28),
61  etawidth_SuperClusterEndcap = cms.double(0.04),
62 
63  # threshold in preshower
64  thresh_PFClusterES = cms.double(0.),
65 
66  # turn on merging of the seed cluster to its nearest neighbors
67  # that share a rechit
68  doSatelliteClusterMerge = cms.bool(False),
69  satelliteClusterSeedThreshold = cms.double(50.0),
70  satelliteMajorityFraction = cms.double(0.5),
71  dropUnseedable = cms.bool(False),
72  #thresh_PFClusterMustacheOutBarrel = cms.double(0.),
73  #thresh_PFClusterMustacheOutEndcap = cms.double(0.),
74 
75  #corrections
76  applyCrackCorrections = cms.bool(False)
77 
78 )
79 
80 particleFlowSuperClusterECALMustache = cms.EDProducer(
81  "PFECALSuperClusterProducer",
82  # verbosity
83  verbose = cms.untracked.bool(False),
84  #clustering type: "Box" or "Mustache"
85  ClusteringType = cms.string("Mustache"),
86  #energy weighting: "Raw", "CalibratedNoPS", "CalibratedTotal"
87  EnergyWeight = cms.string("Raw"),
88 
89  #this overrides both dphi cuts below if true!
90  useDynamicDPhiWindow = cms.bool(True),
91 
92  #PFClusters collection
93  PFClusters = cms.InputTag("particleFlowClusterECAL"),
94  ESAssociation = cms.InputTag("particleFlowClusterECAL"),
95  BeamSpot = cms.InputTag("offlineBeamSpot"),
96 
97  PFBasicClusterCollectionBarrel = cms.string("particleFlowBasicClusterECALBarrel"),
98  PFSuperClusterCollectionBarrel = cms.string("particleFlowSuperClusterECALBarrel"),
99  PFBasicClusterCollectionEndcap = cms.string("particleFlowBasicClusterECALEndcap"),
100  PFSuperClusterCollectionEndcap = cms.string("particleFlowSuperClusterECALEndcap"),
101  PFBasicClusterCollectionPreshower = cms.string("particleFlowBasicClusterECALPreshower"),
102  PFSuperClusterCollectionEndcapWithPreshower = cms.string("particleFlowSuperClusterECALEndcapWithPreshower"),
103 
104  #use preshower ?
105  use_preshower = cms.bool(True),
106 
107  # are the seed thresholds Et or Energy?
108  seedThresholdIsET = cms.bool(True),
109  # regression setup
110  useRegression = cms.bool(True),
111  regressionConfig = cms.PSet(
112  regressionKeyEB = cms.string('pfscecal_EBCorrection_offline_v2'),
113  uncertaintyKeyEB = cms.string('pfscecal_EBUncertainty_offline_v2'),
114  regressionKeyEE = cms.string('pfscecal_EECorrection_offline_v2'),
115  uncertaintyKeyEE = cms.string('pfscecal_EEUncertainty_offline_v2'),
116  vertexCollection = cms.InputTag("offlinePrimaryVertices"),
117  ecalRecHitsEB = cms.InputTag('ecalRecHit','EcalRecHitsEB'),
118  ecalRecHitsEE = cms.InputTag('ecalRecHit','EcalRecHitsEE')
119  ),
120 
121  #threshold for final SuperCluster Et
122  thresh_SCEt = cms.double(4.0),
123 
124  # threshold in ECAL
125  thresh_PFClusterSeedBarrel = cms.double(1.0),
126  thresh_PFClusterBarrel = cms.double(0.0),
127 
128  thresh_PFClusterSeedEndcap = cms.double(1.0),
129  thresh_PFClusterEndcap = cms.double(0.0),
130 
131  # window width in ECAL ( these don't mean anything for Mustache )
132  phiwidth_SuperClusterBarrel = cms.double(0.6),
133  etawidth_SuperClusterBarrel = cms.double(0.04),
134 
135  phiwidth_SuperClusterEndcap = cms.double(0.6),
136  etawidth_SuperClusterEndcap = cms.double(0.04),
137 
138  # threshold in preshower
139  thresh_PFClusterES = cms.double(0.),
140 
141  # turn on merging of the seed cluster to its nearest neighbors
142  # that share a rechit
143  doSatelliteClusterMerge = cms.bool(False),
144  satelliteClusterSeedThreshold = cms.double(50.0),
145  satelliteMajorityFraction = cms.double(0.5),
146  dropUnseedable = cms.bool(False),
147  #thresh_PFClusterMustacheOutBarrel = cms.double(0.),
148  #thresh_PFClusterMustacheOutEndcap = cms.double(0.),
149 
150  #corrections
151  applyCrackCorrections = cms.bool(False)
152 
153 )
154 
155 #define the default clustering type
156 particleFlowSuperClusterECAL = particleFlowSuperClusterECALMustache.clone()