CMS 3D CMS Logo

HcalNoiseSummary.cc
Go to the documentation of this file.
1 //
2 // HcalNoiseSummary.cc
3 //
4 // description: implementation of container class of HCAL noise summary
5 //
6 // author: J.P. Chou, Brown
7 //
8 
9 
11 
12 // default constructor
14  : filterstatus_(0), noisetype_(0), emenergy_(0.0), hadenergy_(0.0), trackenergy_(0.0),
15  min10_(999999.), max10_(-999999.), rms10_(0.0),
16  min25_(999999.), max25_(-999999.), rms25_(0.0),
17  cnthit10_(0), cnthit25_(0),
18  mine2ts_(0.), mine10ts_(0.),
19  maxe2ts_(0.), maxe10ts_(0.),
20  maxzeros_(0),
21  maxhpdhits_(0), maxhpdhitsnoother_(0), maxrbxhits_(0),
22  minhpdemf_(999999.), minrbxemf_(999999.),
23  nproblemRBXs_(0),
24  nisolnoise_(0), isolnoisee_(0), isolnoiseet_(0),
25  nflatnoise_(0), flatnoisee_(0), flatnoiseet_(0),
26  nspikenoise_(0), spikenoisee_(0), spikenoiseet_(0),
27  ntrianglenoise_(0), trianglenoisee_(0), trianglenoiseet_(0),
28  nts4ts5noise_(0), ts4ts5noisee_(0), ts4ts5noiseet_(0),
29  nnegativenoise_(0), negativenoisee_(0), negativenoiseet_(0),
30  rechitCount_(0), rechitCount15_(0), rechitEnergy_(0), rechitEnergy15_(0), calibCharge_(0),
31  lasmonCharge_(0),
32  hasBadRBXTS4TS5_(false),
33  hasBadRBXRechitR45Loose_(false),
34  hasBadRBXRechitR45Tight_(false),
35  goodJetFoundInLowBVRegion_(false),
36  calibCountTS45_(0),
37  calibCountgt15TS45_(0),
38  calibChargeTS45_(0.),
39  calibChargegt15TS45_(0.),
40  calibCountHF_(0),
41  calibChargeHF_(0.),
42  hitsInLaserRegion_(0),
43  hitsInNonLaserRegion_(0),
44  energyInLaserRegion_(0.),
45  energyInNonLaserRegion_(0.)
46 {
47 }
48 
49 // destructor
51 {
52 }
53 
54 // accessors
56 {
57  return (filterstatus_ & 0xFF)==0;
58 }
59 
61 {
62  return (filterstatus_ & 0xFF00)==0;
63 }
64 
66 {
67  return (filterstatus_ & 0xFF0000)==0;
68 }
69 
71 {
72  if(maxRBXHits()>18) return 3;
73  else if(maxRBXHits()>8) return 2;
74  return 1;
75 }
76 
78 {
79  return filterstatus_;
80 }
81 
83 {
84  return emenergy_;
85 }
86 
88 {
89  return hadenergy_;
90 }
91 
93 {
94  return trackenergy_;
95 }
96 
98 {
99  if(hadenergy_+emenergy_==0.0) return -999.;
100  else return emenergy_/(hadenergy_+emenergy_);
101 }
102 
104 {
105  if(hadenergy_+emenergy_==0.0) return -999.;
106  else return trackenergy_/(hadenergy_+emenergy_);
107 }
108 
110 {
111  return min10_;
112 }
113 
115 {
116  return max10_;
117 }
118 
120 {
121  return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
122 }
123 
125 {
126  return min25_;
127 }
128 
130 {
131  return max25_;
132 }
133 
135 {
136  return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
137 }
138 
140 {
141  return cnthit10_;
142 }
143 
145 {
146  return cnthit25_;
147 }
148 
149 float HcalNoiseSummary::minE2TS(void) const
150 {
151  return mine2ts_;
152 }
153 
154 float HcalNoiseSummary::minE10TS(void) const
155 {
156  return mine10ts_;
157 }
158 
160 {
161  return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
162 }
163 
164 float HcalNoiseSummary::maxE2TS(void) const
165 {
166  return maxe2ts_;
167 }
168 
169 float HcalNoiseSummary::maxE10TS(void) const
170 {
171  return maxe10ts_;
172 }
173 
175 {
176  return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
177 }
178 
180 {
181  return maxzeros_;
182 }
183 
185 {
186  return maxhpdhits_;
187 }
188 
190 {
191  return maxhpdhitsnoother_;
192 }
193 
195 {
196  return maxrbxhits_;
197 }
198 
200 {
201  return minhpdemf_;
202 }
203 
205 {
206  return minrbxemf_;
207 }
208 
210 {
211  return nproblemRBXs_;
212 }
213 
215 {
216  return nisolnoise_;
217 }
218 
220 {
221  return isolnoisee_;
222 }
223 
225 {
226  return isolnoiseet_;
227 }
228 
230 {
231  return nflatnoise_;
232 }
233 
235 {
236  return flatnoisee_;
237 }
238 
240 {
241  return flatnoiseet_;
242 }
243 
245 {
246  return nspikenoise_;
247 }
248 
250 {
251  return spikenoisee_;
252 }
253 
255 {
256  return spikenoiseet_;
257 }
258 
260 {
261  return ntrianglenoise_;
262 }
263 
265 {
266  return trianglenoisee_;
267 }
268 
270 {
271  return trianglenoiseet_;
272 }
273 
275 {
276  return nts4ts5noise_;
277 }
278 
280 {
281  return ts4ts5noisee_;
282 }
283 
285 {
286  return ts4ts5noiseet_;
287 }
288 
290 {
291  return nnegativenoise_;
292 }
293 
295 {
296  return negativenoisee_;
297 }
298 
300 {
301  return negativenoiseet_;
302 }
303 
305 {
306  return rechitCount_;
307 }
308 
310 {
311  return rechitCount15_;
312 }
313 
315 {
316  return rechitEnergy_;
317 }
318 
320 {
321  return rechitEnergy15_;
322 }
323 
325 {
326  return calibCharge_;
327 }
328 
330 {
331  return lasmonCharge_;
332 }
333 
335 {
336  return hasBadRBXTS4TS5_;
337 }
338 
340 {
342 }
343 
345 {
347 }
348 
350 {
352 }
353 
355 {
356  return calibCountTS45_;
357 }
358 
360 {
361  return calibCountgt15TS45_;
362 }
363 
365 {
366  return calibChargeTS45_;
367 }
368 
370 {
371  return calibChargegt15TS45_;
372 }
373 
375 {
376  // calibCountHF_ is the number of HF calibration digis in the event (no charge threshold required when counting these digis)
377  return calibCountHF_;
378 }
379 
381 {
382  // calibChargeHF_ is the total charge (over all 10 time slices) for all HF calibration digis in the event
383  return calibChargeHF_;
384 }
385 
387 {
388  return hitsInNonLaserRegion_;
389 }
390 
392 {
394 }
395 
397 {
398  return hitsInLaserRegion_;
399 }
400 
402 {
403  return energyInLaserRegion_;
404 }
405 
407 {
408  return problemjets_;
409 }
410 
412 {
413  return loosenoisetwrs_;
414 }
415 
417 {
418  return tightnoisetwrs_;
419 }
420 
422 {
423  return hlnoisetwrs_;
424 }
float NegativeNoiseSumEt(void) const
int numSpikeNoiseChannels(void) const
edm::RefVector< CaloTowerCollection > hlnoisetwrs_
bool passTightNoiseFilter(void) const
float eventTrackEnergy(void) const
int GetCalibCountTS45(void) const
float eventEMFraction(void) const
float maxE10TS(void) const
int numIsolatedNoiseChannels(void) const
float TS4TS5NoiseSumEt(void) const
float spikeNoiseSumE(void) const
float maxE2Over10TS(void) const
edm::RefVector< CaloTowerCollection > loosenoisetwrs_
edm::RefVector< reco::CaloJetCollection > problematicJets(void) const
double GetEnergyInNonLaserRegion(void) const
double GetRecHitEnergy15(void) const
int GetHitsInNonLaserRegion(void) const
int GetRecHitCount15(void) const
int GetCalibCountHF(void) const
float min25GeVHitTime(void) const
float spikeNoiseSumEt(void) const
int numProblematicRBXs(void) const
int num25GeVHits(void) const
float eventChargeFraction(void) const
int numNegativeNoiseChannels(void) const
float min10GeVHitTime(void) const
float isolatedNoiseSumEt(void) const
float maxE2TS(void) const
float minE2Over10TS(void) const
bool goodJetFoundInLowBVRegion(void) const
int noiseType(void) const
int maxRBXHits(void) const
T sqrt(T t)
Definition: SSEVec.h:18
float flatNoiseSumE(void) const
double GetTotalCalibCharge(void) const
float TS4TS5NoiseSumE(void) const
int numFlatNoiseChannels(void) const
double GetCalibgt15ChargeTS45(void) const
int GetHitsInLaserRegion(void) const
bool HasBadRBXTS4TS5(void) const
edm::RefVector< CaloTowerCollection > tightNoiseTowers(void) const
bool HasBadRBXRechitR45Loose(void) const
int GetCalibgt15CountTS45(void) const
bool passHighLevelNoiseFilter(void) const
float minE2TS(void) const
bool passLooseNoiseFilter(void) const
float minHPDEMF(void) const
float rms10GeVHitTime(void) const
int noiseFilterStatus(void) const
double GetCalibChargeHF(void) const
float eventHadEnergy(void) const
float triangleNoiseSumEt(void) const
virtual ~HcalNoiseSummary()
float NegativeNoiseSumE(void) const
edm::RefVector< reco::CaloJetCollection > problemjets_
float triangleNoiseSumE(void) const
int maxZeros(void) const
double GetEnergyInLaserRegion(void) const
edm::RefVector< CaloTowerCollection > tightnoisetwrs_
float rms25GeVHitTime(void) const
float isolatedNoiseSumE(void) const
double GetRecHitEnergy(void) const
float minE10TS(void) const
bool HasBadRBXRechitR45Tight(void) const
edm::RefVector< CaloTowerCollection > looseNoiseTowers(void) const
int maxHPDNoOtherHits(void) const
int numTS4TS5NoiseChannels(void) const
double GetLaserMonitorCharge(void) const
int numTriangleNoiseChannels(void) const
double energyInNonLaserRegion_
float minRBXEMF(void) const
float eventEMEnergy(void) const
edm::RefVector< CaloTowerCollection > highLevelNoiseTowers(void) const
int maxHPDHits(void) const
double GetCalibChargeTS45(void) const
int num10GeVHits(void) const
float flatNoiseSumEt(void) const
int GetRecHitCount(void) const
float max25GeVHitTime(void) const
float max10GeVHitTime(void) const