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 {
32 }
33 
34 // destructor
36 {
37 }
38 
39 // accessors
41 {
42  return (filterstatus_ & 0xFF)==0;
43 }
44 
46 {
47  return (filterstatus_ & 0xFF00)==0;
48 }
49 
51 {
52  return (filterstatus_ & 0xFF0000)==0;
53 }
54 
56 {
57  if(maxRBXHits()>18) return 3;
58  else if(maxRBXHits()>8) return 2;
59  return 1;
60 }
61 
63 {
64  return filterstatus_;
65 }
66 
68 {
69  return emenergy_;
70 }
71 
73 {
74  return hadenergy_;
75 }
76 
78 {
79  return trackenergy_;
80 }
81 
83 {
84  if(hadenergy_+emenergy_==0.0) return -999.;
85  else return emenergy_/(hadenergy_+emenergy_);
86 }
87 
89 {
90  if(hadenergy_+emenergy_==0.0) return -999.;
91  else return trackenergy_/(hadenergy_+emenergy_);
92 }
93 
95 {
96  return min10_;
97 }
98 
100 {
101  return max10_;
102 }
103 
105 {
106  return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
107 }
108 
110 {
111  return min25_;
112 }
113 
115 {
116  return max25_;
117 }
118 
120 {
121  return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
122 }
123 
125 {
126  return cnthit10_;
127 }
128 
130 {
131  return cnthit25_;
132 }
133 
134 float HcalNoiseSummary::minE2TS(void) const
135 {
136  return mine2ts_;
137 }
138 
139 float HcalNoiseSummary::minE10TS(void) const
140 {
141  return mine10ts_;
142 }
143 
145 {
146  return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
147 }
148 
149 float HcalNoiseSummary::maxE2TS(void) const
150 {
151  return maxe2ts_;
152 }
153 
154 float HcalNoiseSummary::maxE10TS(void) const
155 {
156  return maxe10ts_;
157 }
158 
160 {
161  return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
162 }
163 
165 {
166  return maxzeros_;
167 }
168 
170 {
171  return maxhpdhits_;
172 }
173 
175 {
176  return maxhpdhitsnoother_;
177 }
178 
180 {
181  return maxrbxhits_;
182 }
183 
185 {
186  return minhpdemf_;
187 }
188 
190 {
191  return minrbxemf_;
192 }
193 
195 {
196  return nproblemRBXs_;
197 }
198 
200 {
201  return nisolnoise_;
202 }
203 
205 {
206  return isolnoisee_;
207 }
208 
210 {
211  return isolnoiseet_;
212 }
213 
215 {
216  return nflatnoise_;
217 }
218 
220 {
221  return flatnoisee_;
222 }
223 
225 {
226  return flatnoiseet_;
227 }
228 
230 {
231  return nspikenoise_;
232 }
233 
235 {
236  return spikenoisee_;
237 }
238 
240 {
241  return spikenoiseet_;
242 }
243 
245 {
246  return ntrianglenoise_;
247 }
248 
250 {
251  return trianglenoisee_;
252 }
253 
255 {
256  return trianglenoiseet_;
257 }
258 
260 {
261  return nts4ts5noise_;
262 }
263 
265 {
266  return ts4ts5noisee_;
267 }
268 
270 {
271  return ts4ts5noiseet_;
272 }
273 
275 {
276  return rechitCount_;
277 }
278 
280 {
281  return rechitCount15_;
282 }
283 
285 {
286  return rechitEnergy_;
287 }
288 
290 {
291  return rechitEnergy15_;
292 }
293 
295 {
296  return calibCharge_;
297 }
298 
300 {
301  return hasBadRBXTS4TS5_;
302 }
303 
305 {
306  return problemjets_;
307 }
308 
310 {
311  return loosenoisetwrs_;
312 }
313 
315 {
316  return tightnoisetwrs_;
317 }
318 
320 {
321  return hlnoisetwrs_;
322 }
int numSpikeNoiseChannels(void) const
edm::RefVector< CaloTowerCollection > hlnoisetwrs_
bool passTightNoiseFilter(void) const
float eventTrackEnergy(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 GetRecHitEnergy15(void) const
int GetRecHitCount15(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:46
float flatNoiseSumE(void) const
double GetTotalCalibCharge(void) const
float TS4TS5NoiseSumE(void) const
int numFlatNoiseChannels(void) const
bool HasBadRBXTS4TS5(void) const
edm::RefVector< CaloTowerCollection > tightNoiseTowers(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
float eventHadEnergy(void) const
float triangleNoiseSumEt(void) const
virtual ~HcalNoiseSummary()
edm::RefVector< reco::CaloJetCollection > problemjets_
float triangleNoiseSumE(void) const
int maxZeros(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
float minRBXEMF(void) const
float eventEMEnergy(void) const
edm::RefVector< CaloTowerCollection > highLevelNoiseTowers(void) const
int maxHPDHits(void) const
int num10GeVHits(void) const
float flatNoiseSumEt(void) const
int GetRecHitCount(void) const
float max25GeVHitTime(void) const
float max10GeVHitTime(void) const