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  rechitCount_(0), rechitCount15_(0), rechitEnergy_(0), rechitEnergy15_(0), calibCharge_(0),
30  hasBadRBXTS4TS5_(false),
31  calibCountTS45_(0),
32  calibCountgt15TS45_(0),
33  calibChargeTS45_(0.),
34  calibChargegt15TS45_(0.),
35  calibCountHF_(0),
36  calibChargeHF_(0.),
37  hitsInLaserRegion_(0),
38  hitsInNonLaserRegion_(0),
39  energyInLaserRegion_(0.),
40  energyInNonLaserRegion_(0.)
41 {
42 }
43 
44 // destructor
46 {
47 }
48 
49 // accessors
51 {
52  return (filterstatus_ & 0xFF)==0;
53 }
54 
56 {
57  return (filterstatus_ & 0xFF00)==0;
58 }
59 
61 {
62  return (filterstatus_ & 0xFF0000)==0;
63 }
64 
66 {
67  if(maxRBXHits()>18) return 3;
68  else if(maxRBXHits()>8) return 2;
69  return 1;
70 }
71 
73 {
74  return filterstatus_;
75 }
76 
78 {
79  return emenergy_;
80 }
81 
83 {
84  return hadenergy_;
85 }
86 
88 {
89  return trackenergy_;
90 }
91 
93 {
94  if(hadenergy_+emenergy_==0.0) return -999.;
95  else return emenergy_/(hadenergy_+emenergy_);
96 }
97 
99 {
100  if(hadenergy_+emenergy_==0.0) return -999.;
101  else return trackenergy_/(hadenergy_+emenergy_);
102 }
103 
105 {
106  return min10_;
107 }
108 
110 {
111  return max10_;
112 }
113 
115 {
116  return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
117 }
118 
120 {
121  return min25_;
122 }
123 
125 {
126  return max25_;
127 }
128 
130 {
131  return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
132 }
133 
135 {
136  return cnthit10_;
137 }
138 
140 {
141  return cnthit25_;
142 }
143 
144 float HcalNoiseSummary::minE2TS(void) const
145 {
146  return mine2ts_;
147 }
148 
149 float HcalNoiseSummary::minE10TS(void) const
150 {
151  return mine10ts_;
152 }
153 
155 {
156  return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
157 }
158 
159 float HcalNoiseSummary::maxE2TS(void) const
160 {
161  return maxe2ts_;
162 }
163 
164 float HcalNoiseSummary::maxE10TS(void) const
165 {
166  return maxe10ts_;
167 }
168 
170 {
171  return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
172 }
173 
175 {
176  return maxzeros_;
177 }
178 
180 {
181  return maxhpdhits_;
182 }
183 
185 {
186  return maxhpdhitsnoother_;
187 }
188 
190 {
191  return maxrbxhits_;
192 }
193 
195 {
196  return minhpdemf_;
197 }
198 
200 {
201  return minrbxemf_;
202 }
203 
205 {
206  return nproblemRBXs_;
207 }
208 
210 {
211  return nisolnoise_;
212 }
213 
215 {
216  return isolnoisee_;
217 }
218 
220 {
221  return isolnoiseet_;
222 }
223 
225 {
226  return nflatnoise_;
227 }
228 
230 {
231  return flatnoisee_;
232 }
233 
235 {
236  return flatnoiseet_;
237 }
238 
240 {
241  return nspikenoise_;
242 }
243 
245 {
246  return spikenoisee_;
247 }
248 
250 {
251  return spikenoiseet_;
252 }
253 
255 {
256  return ntrianglenoise_;
257 }
258 
260 {
261  return trianglenoisee_;
262 }
263 
265 {
266  return trianglenoiseet_;
267 }
268 
270 {
271  return nts4ts5noise_;
272 }
273 
275 {
276  return ts4ts5noisee_;
277 }
278 
280 {
281  return ts4ts5noiseet_;
282 }
283 
285 {
286  return rechitCount_;
287 }
288 
290 {
291  return rechitCount15_;
292 }
293 
295 {
296  return rechitEnergy_;
297 }
298 
300 {
301  return rechitEnergy15_;
302 }
303 
305 {
306  return calibCharge_;
307 }
308 
310 {
311  return hasBadRBXTS4TS5_;
312 }
313 
315 {
316  return calibCountTS45_;
317 }
318 
320 {
321  return calibCountgt15TS45_;
322 }
323 
325 {
326  return calibChargeTS45_;
327 }
328 
330 {
331  return calibChargegt15TS45_;
332 }
333 
335 {
336  // calibCountHF_ is the number of HF calibration digis in the event (no charge threshold required when counting these digis)
337  return calibCountHF_;
338 }
339 
341 {
342  // calibChargeHF_ is the total charge (over all 10 time slices) for all HF calibration digis in the event
343  return calibChargeHF_;
344 }
345 
347 {
348  return hitsInNonLaserRegion_;
349 }
350 
352 {
354 }
355 
357 {
358  return hitsInLaserRegion_;
359 }
360 
362 {
363  return energyInLaserRegion_;
364 }
365 
367 {
368  return problemjets_;
369 }
370 
372 {
373  return loosenoisetwrs_;
374 }
375 
377 {
378  return tightnoisetwrs_;
379 }
380 
382 {
383  return hlnoisetwrs_;
384 }
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
float min10GeVHitTime(void) const
float isolatedNoiseSumEt(void) const
float maxE2TS(void) const
float minE2Over10TS(void) const
int noiseType(void) const
int maxRBXHits(void) const
T sqrt(T t)
Definition: SSEVec.h:48
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
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()
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
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
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