CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  vertexCollection = cms.InputTag("offlinePrimaryVertices"),
21  #rechit collections for lazytools
22  ecalRecHitsEB = cms.InputTag('ecalRecHit','EcalRecHitsEB'),
23  ecalRecHitsEE = cms.InputTag('ecalRecHit','EcalRecHitsEE'),
24 
25  PFBasicClusterCollectionBarrel = cms.string("particleFlowBasicClusterECALBarrel"),
26  PFSuperClusterCollectionBarrel = cms.string("particleFlowSuperClusterECALBarrel"),
27  PFBasicClusterCollectionEndcap = cms.string("particleFlowBasicClusterECALEndcap"),
28  PFSuperClusterCollectionEndcap = cms.string("particleFlowSuperClusterECALEndcap"),
29  PFBasicClusterCollectionPreshower = cms.string("particleFlowBasicClusterECALPreshower"),
30  PFSuperClusterCollectionEndcapWithPreshower = cms.string("particleFlowSuperClusterECALEndcapWithPreshower"),
31 
32  #use preshower ?
33  use_preshower = cms.bool(True),
34 
35  # are the seed thresholds Et or Energy?
36  seedThresholdIsET = cms.bool(True),
37 
38  # regression setup
39  useRegression = cms.bool(False), #regressions are mustache only
40  regressionKeyEB = cms.string('pfecalsc_EBCorrection'),
41  regressionKeyEE = cms.string('pfecalsc_EECorrection'),
42 
43  #threshold for final SuperCluster Et
44  thresh_SCEt = cms.double(4.0),
45 
46  # threshold in ECAL
47  thresh_PFClusterSeedBarrel = cms.double(3.0),
48  thresh_PFClusterBarrel = cms.double(0.5),
49 
50  thresh_PFClusterSeedEndcap = cms.double(5.0),
51  thresh_PFClusterEndcap = cms.double(0.5),
52 
53  # window width in ECAL
54  phiwidth_SuperClusterBarrel = cms.double(0.28),
55  etawidth_SuperClusterBarrel = cms.double(0.04),
56 
57  phiwidth_SuperClusterEndcap = cms.double(0.28),
58  etawidth_SuperClusterEndcap = cms.double(0.04),
59 
60  # threshold in preshower
61  thresh_PFClusterES = cms.double(0.),
62 
63  # turn on merging of the seed cluster to its nearest neighbors
64  # that share a rechit
65  doSatelliteClusterMerge = cms.bool(False),
66  satelliteClusterSeedThreshold = cms.double(50.0),
67  satelliteMajorityFraction = cms.double(0.5),
68  #thresh_PFClusterMustacheOutBarrel = cms.double(0.),
69  #thresh_PFClusterMustacheOutEndcap = cms.double(0.),
70 
71  #corrections
72  applyCrackCorrections = cms.bool(False)
73 
74 )
75 
76 particleFlowSuperClusterECALMustache = cms.EDProducer(
77  "PFECALSuperClusterProducer",
78  # verbosity
79  verbose = cms.untracked.bool(False),
80  #clustering type: "Box" or "Mustache"
81  ClusteringType = cms.string("Mustache"),
82  #energy weighting: "Raw", "CalibratedNoPS", "CalibratedTotal"
83  EnergyWeight = cms.string("Raw"),
84 
85  #this overrides both dphi cuts below if true!
86  useDynamicDPhiWindow = cms.bool(True),
87 
88  #PFClusters collection
89  PFClusters = cms.InputTag("particleFlowClusterECAL"),
90  ESAssociation = cms.InputTag("particleFlowClusterECAL"),
91  BeamSpot = cms.InputTag("offlineBeamSpot"),
92 
93  PFBasicClusterCollectionBarrel = cms.string("particleFlowBasicClusterECALBarrel"),
94  PFSuperClusterCollectionBarrel = cms.string("particleFlowSuperClusterECALBarrel"),
95  PFBasicClusterCollectionEndcap = cms.string("particleFlowBasicClusterECALEndcap"),
96  PFSuperClusterCollectionEndcap = cms.string("particleFlowSuperClusterECALEndcap"),
97  PFBasicClusterCollectionPreshower = cms.string("particleFlowBasicClusterECALPreshower"),
98  PFSuperClusterCollectionEndcapWithPreshower = cms.string("particleFlowSuperClusterECALEndcapWithPreshower"),
99 
100  #use preshower ?
101  use_preshower = cms.bool(True),
102 
103  # are the seed thresholds Et or Energy?
104  seedThresholdIsET = cms.bool(True),
105  # regression setup
106  useRegression = cms.bool(True),
107  regressionConfig = cms.PSet(
108  regressionKeyEB = cms.string('pfscecal_EBCorrection_offline_v1'),
109  regressionKeyEE = cms.string('pfscecal_EECorrection_offline_v1'),
110  vertexCollection = cms.InputTag("offlinePrimaryVertices"),
111  ecalRecHitsEB = cms.InputTag('ecalRecHit','EcalRecHitsEB'),
112  ecalRecHitsEE = cms.InputTag('ecalRecHit','EcalRecHitsEE')
113  ),
114 
115  #threshold for final SuperCluster Et
116  thresh_SCEt = cms.double(4.0),
117 
118  # threshold in ECAL
119  thresh_PFClusterSeedBarrel = cms.double(1.0),
120  thresh_PFClusterBarrel = cms.double(0.0),
121 
122  thresh_PFClusterSeedEndcap = cms.double(1.0),
123  thresh_PFClusterEndcap = cms.double(0.0),
124 
125  # window width in ECAL ( these don't mean anything for Mustache )
126  phiwidth_SuperClusterBarrel = cms.double(0.6),
127  etawidth_SuperClusterBarrel = cms.double(0.04),
128 
129  phiwidth_SuperClusterEndcap = cms.double(0.6),
130  etawidth_SuperClusterEndcap = cms.double(0.04),
131 
132  # threshold in preshower
133  thresh_PFClusterES = cms.double(0.),
134 
135  # turn on merging of the seed cluster to its nearest neighbors
136  # that share a rechit
137  doSatelliteClusterMerge = cms.bool(False),
138  satelliteClusterSeedThreshold = cms.double(50.0),
139  satelliteMajorityFraction = cms.double(0.5),
140  #thresh_PFClusterMustacheOutBarrel = cms.double(0.),
141  #thresh_PFClusterMustacheOutEndcap = cms.double(0.),
142 
143  #corrections
144  applyCrackCorrections = cms.bool(False)
145 
146 )
147 
148 #define the default clustering type
149 particleFlowSuperClusterECAL = particleFlowSuperClusterECALMustache.clone()