Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "DataFormats/METReco/interface/HcalNoiseSummary.h"
00011
00012
00013 HcalNoiseSummary::HcalNoiseSummary()
00014 : filterstatus_(0), noisetype_(0), emenergy_(0.0), hadenergy_(0.0), trackenergy_(0.0),
00015 min10_(999999.), max10_(-999999.), rms10_(0.0),
00016 min25_(999999.), max25_(-999999.), rms25_(0.0),
00017 cnthit10_(0), cnthit25_(0),
00018 mine2ts_(0.), mine10ts_(0.),
00019 maxe2ts_(0.), maxe10ts_(0.),
00020 maxzeros_(0),
00021 maxhpdhits_(0), maxhpdhitsnoother_(0), maxrbxhits_(0),
00022 minhpdemf_(999999.), minrbxemf_(999999.),
00023 nproblemRBXs_(0),
00024 nisolnoise_(0), isolnoisee_(0), isolnoiseet_(0),
00025 nflatnoise_(0), flatnoisee_(0), flatnoiseet_(0),
00026 nspikenoise_(0), spikenoisee_(0), spikenoiseet_(0),
00027 ntrianglenoise_(0), trianglenoisee_(0), trianglenoiseet_(0),
00028 nts4ts5noise_(0), ts4ts5noisee_(0), ts4ts5noiseet_(0),
00029 rechitCount_(0), rechitCount15_(0), rechitEnergy_(0), rechitEnergy15_(0), calibCharge_(0),
00030 hasBadRBXTS4TS5_(false)
00031 {
00032 }
00033
00034
00035 HcalNoiseSummary::~HcalNoiseSummary()
00036 {
00037 }
00038
00039
00040 bool HcalNoiseSummary::passLooseNoiseFilter(void) const
00041 {
00042 return (filterstatus_ & 0xFF)==0;
00043 }
00044
00045 bool HcalNoiseSummary::passTightNoiseFilter(void) const
00046 {
00047 return (filterstatus_ & 0xFF00)==0;
00048 }
00049
00050 bool HcalNoiseSummary::passHighLevelNoiseFilter(void) const
00051 {
00052 return (filterstatus_ & 0xFF0000)==0;
00053 }
00054
00055 int HcalNoiseSummary::noiseType(void) const
00056 {
00057 if(maxRBXHits()>18) return 3;
00058 else if(maxRBXHits()>8) return 2;
00059 return 1;
00060 }
00061
00062 int HcalNoiseSummary::noiseFilterStatus(void) const
00063 {
00064 return filterstatus_;
00065 }
00066
00067 float HcalNoiseSummary::eventEMEnergy(void) const
00068 {
00069 return emenergy_;
00070 }
00071
00072 float HcalNoiseSummary::eventHadEnergy(void) const
00073 {
00074 return hadenergy_;
00075 }
00076
00077 float HcalNoiseSummary::eventTrackEnergy(void) const
00078 {
00079 return trackenergy_;
00080 }
00081
00082 float HcalNoiseSummary::eventEMFraction(void) const
00083 {
00084 if(hadenergy_+emenergy_==0.0) return -999.;
00085 else return emenergy_/(hadenergy_+emenergy_);
00086 }
00087
00088 float HcalNoiseSummary::eventChargeFraction(void) const
00089 {
00090 if(hadenergy_+emenergy_==0.0) return -999.;
00091 else return trackenergy_/(hadenergy_+emenergy_);
00092 }
00093
00094 float HcalNoiseSummary::min10GeVHitTime(void) const
00095 {
00096 return min10_;
00097 }
00098
00099 float HcalNoiseSummary::max10GeVHitTime(void) const
00100 {
00101 return max10_;
00102 }
00103
00104 float HcalNoiseSummary::rms10GeVHitTime(void) const
00105 {
00106 return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
00107 }
00108
00109 float HcalNoiseSummary::min25GeVHitTime(void) const
00110 {
00111 return min25_;
00112 }
00113
00114 float HcalNoiseSummary::max25GeVHitTime(void) const
00115 {
00116 return max25_;
00117 }
00118
00119 float HcalNoiseSummary::rms25GeVHitTime(void) const
00120 {
00121 return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
00122 }
00123
00124 int HcalNoiseSummary::num10GeVHits(void) const
00125 {
00126 return cnthit10_;
00127 }
00128
00129 int HcalNoiseSummary::num25GeVHits(void) const
00130 {
00131 return cnthit25_;
00132 }
00133
00134 float HcalNoiseSummary::minE2TS(void) const
00135 {
00136 return mine2ts_;
00137 }
00138
00139 float HcalNoiseSummary::minE10TS(void) const
00140 {
00141 return mine10ts_;
00142 }
00143
00144 float HcalNoiseSummary::minE2Over10TS(void) const
00145 {
00146 return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
00147 }
00148
00149 float HcalNoiseSummary::maxE2TS(void) const
00150 {
00151 return maxe2ts_;
00152 }
00153
00154 float HcalNoiseSummary::maxE10TS(void) const
00155 {
00156 return maxe10ts_;
00157 }
00158
00159 float HcalNoiseSummary::maxE2Over10TS(void) const
00160 {
00161 return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
00162 }
00163
00164 int HcalNoiseSummary::maxZeros(void) const
00165 {
00166 return maxzeros_;
00167 }
00168
00169 int HcalNoiseSummary::maxHPDHits(void) const
00170 {
00171 return maxhpdhits_;
00172 }
00173
00174 int HcalNoiseSummary::maxHPDNoOtherHits(void) const
00175 {
00176 return maxhpdhitsnoother_;
00177 }
00178
00179 int HcalNoiseSummary::maxRBXHits(void) const
00180 {
00181 return maxrbxhits_;
00182 }
00183
00184 float HcalNoiseSummary::minHPDEMF(void) const
00185 {
00186 return minhpdemf_;
00187 }
00188
00189 float HcalNoiseSummary::minRBXEMF(void) const
00190 {
00191 return minrbxemf_;
00192 }
00193
00194 int HcalNoiseSummary::numProblematicRBXs(void) const
00195 {
00196 return nproblemRBXs_;
00197 }
00198
00199 int HcalNoiseSummary::numIsolatedNoiseChannels(void) const
00200 {
00201 return nisolnoise_;
00202 }
00203
00204 float HcalNoiseSummary::isolatedNoiseSumE(void) const
00205 {
00206 return isolnoisee_;
00207 }
00208
00209 float HcalNoiseSummary::isolatedNoiseSumEt(void) const
00210 {
00211 return isolnoiseet_;
00212 }
00213
00214 int HcalNoiseSummary::numFlatNoiseChannels(void) const
00215 {
00216 return nflatnoise_;
00217 }
00218
00219 float HcalNoiseSummary::flatNoiseSumE(void) const
00220 {
00221 return flatnoisee_;
00222 }
00223
00224 float HcalNoiseSummary::flatNoiseSumEt(void) const
00225 {
00226 return flatnoiseet_;
00227 }
00228
00229 int HcalNoiseSummary::numSpikeNoiseChannels(void) const
00230 {
00231 return nspikenoise_;
00232 }
00233
00234 float HcalNoiseSummary::spikeNoiseSumE(void) const
00235 {
00236 return spikenoisee_;
00237 }
00238
00239 float HcalNoiseSummary::spikeNoiseSumEt(void) const
00240 {
00241 return spikenoiseet_;
00242 }
00243
00244 int HcalNoiseSummary::numTriangleNoiseChannels(void) const
00245 {
00246 return ntrianglenoise_;
00247 }
00248
00249 float HcalNoiseSummary::triangleNoiseSumE(void) const
00250 {
00251 return trianglenoisee_;
00252 }
00253
00254 float HcalNoiseSummary::triangleNoiseSumEt(void) const
00255 {
00256 return trianglenoiseet_;
00257 }
00258
00259 int HcalNoiseSummary::numTS4TS5NoiseChannels(void) const
00260 {
00261 return nts4ts5noise_;
00262 }
00263
00264 float HcalNoiseSummary::TS4TS5NoiseSumE(void) const
00265 {
00266 return ts4ts5noisee_;
00267 }
00268
00269 float HcalNoiseSummary::TS4TS5NoiseSumEt(void) const
00270 {
00271 return ts4ts5noiseet_;
00272 }
00273
00274 int HcalNoiseSummary::GetRecHitCount(void) const
00275 {
00276 return rechitCount_;
00277 }
00278
00279 int HcalNoiseSummary::GetRecHitCount15(void) const
00280 {
00281 return rechitCount15_;
00282 }
00283
00284 double HcalNoiseSummary::GetRecHitEnergy(void) const
00285 {
00286 return rechitEnergy_;
00287 }
00288
00289 double HcalNoiseSummary::GetRecHitEnergy15(void) const
00290 {
00291 return rechitEnergy15_;
00292 }
00293
00294 double HcalNoiseSummary::GetTotalCalibCharge(void) const
00295 {
00296 return calibCharge_;
00297 }
00298
00299 bool HcalNoiseSummary::HasBadRBXTS4TS5(void) const
00300 {
00301 return hasBadRBXTS4TS5_;
00302 }
00303
00304 edm::RefVector<reco::CaloJetCollection> HcalNoiseSummary::problematicJets(void) const
00305 {
00306 return problemjets_;
00307 }
00308
00309 edm::RefVector<CaloTowerCollection> HcalNoiseSummary::looseNoiseTowers(void) const
00310 {
00311 return loosenoisetwrs_;
00312 }
00313
00314 edm::RefVector<CaloTowerCollection> HcalNoiseSummary::tightNoiseTowers(void) const
00315 {
00316 return tightnoisetwrs_;
00317 }
00318
00319 edm::RefVector<CaloTowerCollection> HcalNoiseSummary::highLevelNoiseTowers(void) const
00320 {
00321 return hlnoisetwrs_;
00322 }