CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  hasBadRBXTS4TS5_(false),
32  hasBadRBXRechitR45Loose_(false),
33  hasBadRBXRechitR45Tight_(false),
34  calibCountTS45_(0),
35  calibCountgt15TS45_(0),
36  calibChargeTS45_(0.),
37  calibChargegt15TS45_(0.),
38  calibCountHF_(0),
39  calibChargeHF_(0.),
40  hitsInLaserRegion_(0),
41  hitsInNonLaserRegion_(0),
42  energyInLaserRegion_(0.),
43  energyInNonLaserRegion_(0.)
44 {
45 }
46 
47 // destructor
49 {
50 }
51 
52 // accessors
54 {
55  return (filterstatus_ & 0xFF)==0;
56 }
57 
59 {
60  return (filterstatus_ & 0xFF00)==0;
61 }
62 
64 {
65  return (filterstatus_ & 0xFF0000)==0;
66 }
67 
69 {
70  if(maxRBXHits()>18) return 3;
71  else if(maxRBXHits()>8) return 2;
72  return 1;
73 }
74 
76 {
77  return filterstatus_;
78 }
79 
81 {
82  return emenergy_;
83 }
84 
86 {
87  return hadenergy_;
88 }
89 
91 {
92  return trackenergy_;
93 }
94 
96 {
97  if(hadenergy_+emenergy_==0.0) return -999.;
98  else return emenergy_/(hadenergy_+emenergy_);
99 }
100 
102 {
103  if(hadenergy_+emenergy_==0.0) return -999.;
104  else return trackenergy_/(hadenergy_+emenergy_);
105 }
106 
108 {
109  return min10_;
110 }
111 
113 {
114  return max10_;
115 }
116 
118 {
119  return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
120 }
121 
123 {
124  return min25_;
125 }
126 
128 {
129  return max25_;
130 }
131 
133 {
134  return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
135 }
136 
138 {
139  return cnthit10_;
140 }
141 
143 {
144  return cnthit25_;
145 }
146 
147 float HcalNoiseSummary::minE2TS(void) const
148 {
149  return mine2ts_;
150 }
151 
152 float HcalNoiseSummary::minE10TS(void) const
153 {
154  return mine10ts_;
155 }
156 
158 {
159  return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
160 }
161 
162 float HcalNoiseSummary::maxE2TS(void) const
163 {
164  return maxe2ts_;
165 }
166 
167 float HcalNoiseSummary::maxE10TS(void) const
168 {
169  return maxe10ts_;
170 }
171 
173 {
174  return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
175 }
176 
178 {
179  return maxzeros_;
180 }
181 
183 {
184  return maxhpdhits_;
185 }
186 
188 {
189  return maxhpdhitsnoother_;
190 }
191 
193 {
194  return maxrbxhits_;
195 }
196 
198 {
199  return minhpdemf_;
200 }
201 
203 {
204  return minrbxemf_;
205 }
206 
208 {
209  return nproblemRBXs_;
210 }
211 
213 {
214  return nisolnoise_;
215 }
216 
218 {
219  return isolnoisee_;
220 }
221 
223 {
224  return isolnoiseet_;
225 }
226 
228 {
229  return nflatnoise_;
230 }
231 
233 {
234  return flatnoisee_;
235 }
236 
238 {
239  return flatnoiseet_;
240 }
241 
243 {
244  return nspikenoise_;
245 }
246 
248 {
249  return spikenoisee_;
250 }
251 
253 {
254  return spikenoiseet_;
255 }
256 
258 {
259  return ntrianglenoise_;
260 }
261 
263 {
264  return trianglenoisee_;
265 }
266 
268 {
269  return trianglenoiseet_;
270 }
271 
273 {
274  return nts4ts5noise_;
275 }
276 
278 {
279  return ts4ts5noisee_;
280 }
281 
283 {
284  return ts4ts5noiseet_;
285 }
286 
288 {
289  return nnegativenoise_;
290 }
291 
293 {
294  return negativenoisee_;
295 }
296 
298 {
299  return negativenoiseet_;
300 }
301 
303 {
304  return rechitCount_;
305 }
306 
308 {
309  return rechitCount15_;
310 }
311 
313 {
314  return rechitEnergy_;
315 }
316 
318 {
319  return rechitEnergy15_;
320 }
321 
323 {
324  return calibCharge_;
325 }
326 
328 {
329  return hasBadRBXTS4TS5_;
330 }
331 
333 {
335 }
336 
338 {
340 }
341 
343 {
345 }
346 
348 {
349  return calibCountTS45_;
350 }
351 
353 {
354  return calibCountgt15TS45_;
355 }
356 
358 {
359  return calibChargeTS45_;
360 }
361 
363 {
364  return calibChargegt15TS45_;
365 }
366 
368 {
369  // calibCountHF_ is the number of HF calibration digis in the event (no charge threshold required when counting these digis)
370  return calibCountHF_;
371 }
372 
374 {
375  // calibChargeHF_ is the total charge (over all 10 time slices) for all HF calibration digis in the event
376  return calibChargeHF_;
377 }
378 
380 {
381  return hitsInNonLaserRegion_;
382 }
383 
385 {
387 }
388 
390 {
391  return hitsInLaserRegion_;
392 }
393 
395 {
396  return energyInLaserRegion_;
397 }
398 
400 {
401  return problemjets_;
402 }
403 
405 {
406  return loosenoisetwrs_;
407 }
408 
410 {
411  return tightnoisetwrs_;
412 }
413 
415 {
416  return hlnoisetwrs_;
417 }
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
int numTriangleNoiseChannels(void) const
double energyInNonLaserRegion_
float minRBXEMF(void) const
float eventEMEnergy(void) const
volatile std::atomic< bool > shutdown_flag false
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