CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OpenHLT_HBHEnoise_cff.py
Go to the documentation of this file.
1 # /users/amott/2012/HCalNoise/OpenHLTTowerCleaner/V2 (CMSSW_5_2_0_pre4_HLT6)
2 
3 import FWCore.ParameterSet.Config as cms
4 
6 
7 
8 HLTConfigVersion = cms.PSet(
9  tableName = cms.string('/users/amott/2012/HCalNoise/OpenHLTTowerCleaner/V2')
10 )
11 
12 hltHcalNoiseInfoProducerUpper = cms.EDProducer( "HcalNoiseInfoProducer",
13  lMinRatio = cms.double( 0.7 ),
14  lMaxHighEHitTime = cms.double( 9999.0 ),
15  pMinHighEHitTime = cms.double( -4.0 ),
16  lMaxLowEHitTime = cms.double( 9999.0 ),
17  TS4TS5EnergyThreshold = cms.double( 50.0 ),
18  digiCollName = cms.string( "hltHcalDigis" ),
19  lMinHPDHits = cms.int32( 17 ),
20  tMinRBXHits = cms.int32( 50 ),
21  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
22  minEZeros = cms.double( 10.0 ),
23  pMinRBXHits = cms.int32( 20 ),
24  tMinHPDHits = cms.int32( 16 ),
25  pMaxHPDEMF = cms.double( 0.02 ),
26  minRecHitE = cms.double( 1.5 ),
27  hlMaxRBXEMF = cms.double( 0.01 ),
28  pMinEEMF = cms.double( 10.0 ),
29  pMaxRatio = cms.double( 0.85 ),
30  caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
31  minEEMF = cms.double( 50.0 ),
32  pMaxHighEHitTime = cms.double( 5.0 ),
33  pMaxLowEHitTime = cms.double( 6.0 ),
34  minHighHitE = cms.double( 25.0 ),
35  lMinZeros = cms.int32( 10 ),
36  lMinRBXHits = cms.int32( 999 ),
37  fillRecHits = cms.bool( True ),
38  HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
39  maxCaloTowerIEta = cms.int32( 20 ),
40  minLowHitE = cms.double( 10.0 ),
41  pMinRatio = cms.double( 0.75 ),
42  HcalAcceptSeverityLevel = cms.uint32( 9 ),
43  pMaxRBXEMF = cms.double( 0.02 ),
44  pMinE = cms.double( 40.0 ),
45  tMaxRatio = cms.double( 0.92 ),
46  maxTrackEta = cms.double( 2.0 ),
47  tMinHighEHitTime = cms.double( -7.0 ),
48  TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
49  lMaxRatio = cms.double( 0.96 ),
50  fillCaloTowers = cms.bool( True ),
51  fillDigis = cms.bool( True ),
52  lMinHighEHitTime = cms.double( -9999.0 ),
53  pMinEZeros = cms.double( 5.0 ),
54  pMinERatio = cms.double( 25.0 ),
55  fillTracks = cms.bool( False ),
56  trackCollName = cms.string( "generalTracks" ),
57  pMinZeros = cms.int32( 4 ),
58  minTrackPt = cms.double( 1.0 ),
59  tMinRatio = cms.double( 0.73 ),
60  TS4TS5UpperCut = cms.vdouble( 1.0, 0.8, 0.75, 0.72, 0.72 ),
61  pMinLowEHitTime = cms.double( -6.0 ),
62  pMinHPDHits = cms.int32( 10 ),
63  lMinLowEHitTime = cms.double( -9999.0 ),
64  recHitCollName = cms.string( "hltHbhereco" ),
65  tMinHPDNoOtherHits = cms.int32( 9 ),
66  minERatio = cms.double( 50.0 ),
67  tMinLowEHitTime = cms.double( -9999.0 ),
68  tMaxHighEHitTime = cms.double( 6.0 ),
69  tMinZeros = cms.int32( 8 ),
70  lMinHPDNoOtherHits = cms.int32( 10 ),
71  maxProblemRBXs = cms.int32( 20 ),
72  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
73  tMaxLowEHitTime = cms.double( 9999.0 ),
74  pMinHPDNoOtherHits = cms.int32( 7 ),
75  hlMaxHPDEMF = cms.double( -9999.0 )
76 )
77 hltHcalNoiseInfoProducerLower = cms.EDProducer( "HcalNoiseInfoProducer",
78  lMinRatio = cms.double( 0.7 ),
79  lMaxHighEHitTime = cms.double( 9999.0 ),
80  pMinHighEHitTime = cms.double( -4.0 ),
81  lMaxLowEHitTime = cms.double( 9999.0 ),
82  TS4TS5EnergyThreshold = cms.double( 50.0 ),
83  digiCollName = cms.string( "hltHcalDigis" ),
84  lMinHPDHits = cms.int32( 17 ),
85  tMinRBXHits = cms.int32( 50 ),
86  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
87  minEZeros = cms.double( 10.0 ),
88  pMinRBXHits = cms.int32( 20 ),
89  tMinHPDHits = cms.int32( 16 ),
90  pMaxHPDEMF = cms.double( 0.02 ),
91  minRecHitE = cms.double( 1.5 ),
92  hlMaxRBXEMF = cms.double( 0.01 ),
93  pMinEEMF = cms.double( 10.0 ),
94  pMaxRatio = cms.double( 0.85 ),
95  caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
96  minEEMF = cms.double( 50.0 ),
97  pMaxHighEHitTime = cms.double( 5.0 ),
98  pMaxLowEHitTime = cms.double( 6.0 ),
99  minHighHitE = cms.double( 25.0 ),
100  lMinZeros = cms.int32( 10 ),
101  lMinRBXHits = cms.int32( 999 ),
102  fillRecHits = cms.bool( True ),
103  HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
104  maxCaloTowerIEta = cms.int32( 20 ),
105  minLowHitE = cms.double( 10.0 ),
106  pMinRatio = cms.double( 0.75 ),
107  HcalAcceptSeverityLevel = cms.uint32( 9 ),
108  pMaxRBXEMF = cms.double( 0.02 ),
109  pMinE = cms.double( 40.0 ),
110  tMaxRatio = cms.double( 0.92 ),
111  maxTrackEta = cms.double( 2.0 ),
112  tMinHighEHitTime = cms.double( -7.0 ),
113  TS4TS5LowerCut = cms.vdouble( -1.0, -0.95, -0.9, -0.9, -0.9, -0.9, -0.9 ),
114  lMaxRatio = cms.double( 0.96 ),
115  fillCaloTowers = cms.bool( True ),
116  fillDigis = cms.bool( True ),
117  lMinHighEHitTime = cms.double( -9999.0 ),
118  pMinEZeros = cms.double( 5.0 ),
119  pMinERatio = cms.double( 25.0 ),
120  fillTracks = cms.bool( False ),
121  trackCollName = cms.string( "generalTracks" ),
122  pMinZeros = cms.int32( 4 ),
123  minTrackPt = cms.double( 1.0 ),
124  tMinRatio = cms.double( 0.73 ),
125  TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
126  pMinLowEHitTime = cms.double( -6.0 ),
127  pMinHPDHits = cms.int32( 10 ),
128  lMinLowEHitTime = cms.double( -9999.0 ),
129  recHitCollName = cms.string( "hltHbhereco" ),
130  tMinHPDNoOtherHits = cms.int32( 9 ),
131  minERatio = cms.double( 50.0 ),
132  tMinLowEHitTime = cms.double( -9999.0 ),
133  tMaxHighEHitTime = cms.double( 6.0 ),
134  tMinZeros = cms.int32( 8 ),
135  lMinHPDNoOtherHits = cms.int32( 10 ),
136  maxProblemRBXs = cms.int32( 20 ),
137  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
138  tMaxLowEHitTime = cms.double( 9999.0 ),
139  pMinHPDNoOtherHits = cms.int32( 7 ),
140  hlMaxHPDEMF = cms.double( -9999.0 )
141 )
142 hltHcalNoiseInfoProducerNoR45 = cms.EDProducer( "HcalNoiseInfoProducer",
143  lMinRatio = cms.double( 0.7 ),
144  lMaxHighEHitTime = cms.double( 9999.0 ),
145  pMinHighEHitTime = cms.double( -4.0 ),
146  lMaxLowEHitTime = cms.double( 9999.0 ),
147  TS4TS5EnergyThreshold = cms.double( 50.0 ),
148  digiCollName = cms.string( "hltHcalDigis" ),
149  lMinHPDHits = cms.int32( 17 ),
150  tMinRBXHits = cms.int32( 50 ),
151  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
152  minEZeros = cms.double( 10.0 ),
153  pMinRBXHits = cms.int32( 20 ),
154  tMinHPDHits = cms.int32( 16 ),
155  pMaxHPDEMF = cms.double( 0.02 ),
156  minRecHitE = cms.double( 1.5 ),
157  hlMaxRBXEMF = cms.double( 0.01 ),
158  pMinEEMF = cms.double( 10.0 ),
159  pMaxRatio = cms.double( 0.85 ),
160  caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
161  minEEMF = cms.double( 50.0 ),
162  pMaxHighEHitTime = cms.double( 5.0 ),
163  pMaxLowEHitTime = cms.double( 6.0 ),
164  minHighHitE = cms.double( 25.0 ),
165  lMinZeros = cms.int32( 10 ),
166  lMinRBXHits = cms.int32( 999 ),
167  fillRecHits = cms.bool( True ),
168  HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
169  maxCaloTowerIEta = cms.int32( 20 ),
170  minLowHitE = cms.double( 10.0 ),
171  pMinRatio = cms.double( 0.75 ),
172  HcalAcceptSeverityLevel = cms.uint32( 9 ),
173  pMaxRBXEMF = cms.double( 0.02 ),
174  pMinE = cms.double( 40.0 ),
175  tMaxRatio = cms.double( 0.92 ),
176  maxTrackEta = cms.double( 2.0 ),
177  tMinHighEHitTime = cms.double( -7.0 ),
178  TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
179  lMaxRatio = cms.double( 0.96 ),
180  fillCaloTowers = cms.bool( True ),
181  fillDigis = cms.bool( True ),
182  lMinHighEHitTime = cms.double( -9999.0 ),
183  pMinEZeros = cms.double( 5.0 ),
184  pMinERatio = cms.double( 25.0 ),
185  fillTracks = cms.bool( False ),
186  trackCollName = cms.string( "generalTracks" ),
187  pMinZeros = cms.int32( 4 ),
188  minTrackPt = cms.double( 1.0 ),
189  tMinRatio = cms.double( 0.73 ),
190  TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
191  pMinLowEHitTime = cms.double( -6.0 ),
192  pMinHPDHits = cms.int32( 10 ),
193  lMinLowEHitTime = cms.double( -9999.0 ),
194  recHitCollName = cms.string( "hltHbhereco" ),
195  tMinHPDNoOtherHits = cms.int32( 9 ),
196  minERatio = cms.double( 50.0 ),
197  tMinLowEHitTime = cms.double( -9999.0 ),
198  tMaxHighEHitTime = cms.double( 6.0 ),
199  tMinZeros = cms.int32( 8 ),
200  lMinHPDNoOtherHits = cms.int32( 10 ),
201  maxProblemRBXs = cms.int32( 20 ),
202  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
203  tMaxLowEHitTime = cms.double( 9999.0 ),
204  pMinHPDNoOtherHits = cms.int32( 7 ),
205  hlMaxHPDEMF = cms.double( -9999.0 )
206 )
207 hltHcalTowerNoiseCleanerUpper = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
208  TS4TS5EnergyThreshold = cms.double( 50.0 ),
209  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
210  HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerUpper" ),
211  minHPDNoOtherHits = cms.int32( 10 ),
212  minRBXEnergy = cms.double( 50.0 ),
213  CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
214  minRecHitE = cms.double( 1.5 ),
215  severity = cms.int32( 1 ),
216  minHighHitE = cms.double( 25.0 ),
217  numRBXsToConsider = cms.int32( 2 ),
218  minRatio = cms.double( -999.0 ),
219  maxHighEHitTime = cms.double( 9999.0 ),
220  maxRBXEMF = cms.double( 0.02 ),
221  minHPDHits = cms.int32( 17 ),
222  needEMFCoincidence = cms.bool( True ),
223  minZeros = cms.int32( 10 ),
224  minLowHitE = cms.double( 10.0 ),
225  TS4TS5UpperCut = cms.vdouble( 1.0, 0.8, 0.75, 0.72, 0.72 ),
226  minHighEHitTime = cms.double( -9999.0 ),
227  maxRatio = cms.double( 999.0 ),
228  TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
229  maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
230  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
231  minRBXHits = cms.int32( 999 ),
232  maxNumRBXs = cms.int32( 2 )
233 )
234 hltHcalTowerNoiseCleanerLower = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
235  TS4TS5EnergyThreshold = cms.double( 50.0 ),
236  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
237  HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerLower" ),
238  minHPDNoOtherHits = cms.int32( 10 ),
239  minRBXEnergy = cms.double( 50.0 ),
240  CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
241  minRecHitE = cms.double( 1.5 ),
242  severity = cms.int32( 1 ),
243  minHighHitE = cms.double( 25.0 ),
244  numRBXsToConsider = cms.int32( 2 ),
245  minRatio = cms.double( -999.0 ),
246  maxHighEHitTime = cms.double( 9999.0 ),
247  maxRBXEMF = cms.double( 0.02 ),
248  minHPDHits = cms.int32( 17 ),
249  needEMFCoincidence = cms.bool( True ),
250  minZeros = cms.int32( 10 ),
251  minLowHitE = cms.double( 10.0 ),
252  TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
253  minHighEHitTime = cms.double( -9999.0 ),
254  maxRatio = cms.double( 999.0 ),
255  TS4TS5LowerCut = cms.vdouble( -1.0, -0.95, -0.9, -0.9, -0.9, -0.9, -0.9 ),
256  maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
257  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
258  minRBXHits = cms.int32( 999 ),
259  maxNumRBXs = cms.int32( 2 )
260 )
261 hltHcalTowerNoiseCleanerNoR45 = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
262  TS4TS5EnergyThreshold = cms.double( 50.0 ),
263  TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
264  HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerNoR45" ),
265  minHPDNoOtherHits = cms.int32( 10 ),
266  minRBXEnergy = cms.double( 50.0 ),
267  CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
268  minRecHitE = cms.double( 1.5 ),
269  severity = cms.int32( 1 ),
270  minHighHitE = cms.double( 25.0 ),
271  numRBXsToConsider = cms.int32( 2 ),
272  minRatio = cms.double( -999.0 ),
273  maxHighEHitTime = cms.double( 9999.0 ),
274  maxRBXEMF = cms.double( 0.02 ),
275  minHPDHits = cms.int32( 17 ),
276  needEMFCoincidence = cms.bool( True ),
277  minZeros = cms.int32( 10 ),
278  minLowHitE = cms.double( 10.0 ),
279  TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
280  minHighEHitTime = cms.double( -9999.0 ),
281  maxRatio = cms.double( 999.0 ),
282  TS4TS5LowerCut = cms.vdouble( -999.0, -999.0, -999.0, -999.0, -999.0, -999.0, -999.0 ),
283  maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
284  TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
285  minRBXHits = cms.int32( 999 ),
286  maxNumRBXs = cms.int32( 2 )
287 )
288 
289 HLTDoLocalHcalSequence = cms.Sequence( hltHcalDigis + hltHbhereco + hltHfreco + hltHoreco )
290 HLTDoCaloSequence = cms.Sequence( hltEcalRawToRecHitFacility + hltEcalRegionalRestFEDs + hltEcalRecHitAll + HLTDoLocalHcalSequence + hltTowerMakerForAll )
291 OpenHLTHCalNoiseTowerCleanerSequence = cms.Sequence( HLTDoCaloSequence )
292 OpenHLTHCalNoiseTowerCleanerSequence = cms.Sequence( HLTDoCaloSequence + hltHcalNoiseInfoProducerUpper + hltHcalNoiseInfoProducerLower + hltHcalNoiseInfoProducerNoR45 + hltHcalTowerNoiseCleanerUpper + hltHcalTowerNoiseCleanerLower + hltHcalTowerNoiseCleanerNoR45 )
293 
294 
295 # En-able HF Noise filters in GRun menu
296 if 'hltHfreco' in locals():
297  hltHfreco.setNoiseFlags = cms.bool( True )
298 
299 # CMSSW version specific customizations
300 import os
301 cmsswVersion = os.environ['CMSSW_VERSION']
302 
303 # dummyfy hltGetConditions in cff's
304 if 'hltGetConditions' in locals() and 'HLTriggerFirstPath' in locals() :
305  hltDummyConditions = cms.EDFilter( "HLTBool",
306  result = cms.bool( True )
307  )
308  HLTriggerFirstPath.replace(hltGetConditions,hltDummyConditions)
309