CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
10 
11 // default constructor
13  : filterstatus_(0),
14  noisetype_(0),
15  emenergy_(0.0),
16  hadenergy_(0.0),
17  trackenergy_(0.0),
18  min10_(999999.),
19  max10_(-999999.),
20  rms10_(0.0),
21  min25_(999999.),
22  max25_(-999999.),
23  rms25_(0.0),
24  cnthit10_(0),
25  cnthit25_(0),
26  mine2ts_(0.),
27  mine10ts_(0.),
28  maxe2ts_(0.),
29  maxe10ts_(0.),
30  maxzeros_(0),
31  maxhpdhits_(0),
32  maxhpdhitsnoother_(0),
33  maxrbxhits_(0),
34  minhpdemf_(999999.),
35  minrbxemf_(999999.),
36  nproblemRBXs_(0),
37  nisolnoise_(0),
38  isolnoisee_(0),
39  isolnoiseet_(0),
40  nflatnoise_(0),
41  flatnoisee_(0),
42  flatnoiseet_(0),
43  nspikenoise_(0),
44  spikenoisee_(0),
45  spikenoiseet_(0),
46  ntrianglenoise_(0),
47  trianglenoisee_(0),
48  trianglenoiseet_(0),
49  nts4ts5noise_(0),
50  ts4ts5noisee_(0),
51  ts4ts5noiseet_(0),
52  nnegativenoise_(0),
53  negativenoisee_(0),
54  negativenoiseet_(0),
55  rechitCount_(0),
56  rechitCount15_(0),
57  rechitEnergy_(0),
58  rechitEnergy15_(0),
59  calibCharge_(0),
60  lasmonCharge_(0),
61  hasBadRBXTS4TS5_(false),
62  hasBadRBXRechitR45Loose_(false),
63  hasBadRBXRechitR45Tight_(false),
64  goodJetFoundInLowBVRegion_(false),
65  calibCountTS45_(0),
66  calibCountgt15TS45_(0),
67  calibChargeTS45_(0.),
68  calibChargegt15TS45_(0.),
69  calibCountHF_(0),
70  calibChargeHF_(0.),
71  hitsInLaserRegion_(0),
72  hitsInNonLaserRegion_(0),
73  energyInLaserRegion_(0.),
74  energyInNonLaserRegion_(0.) {}
75 
76 // destructor
78 
79 // accessors
80 bool HcalNoiseSummary::passLooseNoiseFilter(void) const { return (filterstatus_ & 0xFF) == 0; }
81 
82 bool HcalNoiseSummary::passTightNoiseFilter(void) const { return (filterstatus_ & 0xFF00) == 0; }
83 
84 bool HcalNoiseSummary::passHighLevelNoiseFilter(void) const { return (filterstatus_ & 0xFF0000) == 0; }
85 
86 int HcalNoiseSummary::noiseType(void) const {
87  if (maxRBXHits() > 18)
88  return 3;
89  else if (maxRBXHits() > 8)
90  return 2;
91  return 1;
92 }
93 
95 
96 float HcalNoiseSummary::eventEMEnergy(void) const { return emenergy_; }
97 
98 float HcalNoiseSummary::eventHadEnergy(void) const { return hadenergy_; }
99 
101 
103  if (hadenergy_ + emenergy_ == 0.0)
104  return -999.;
105  else
106  return emenergy_ / (hadenergy_ + emenergy_);
107 }
108 
110  if (hadenergy_ + emenergy_ == 0.0)
111  return -999.;
112  else
113  return trackenergy_ / (hadenergy_ + emenergy_);
114 }
115 
116 float HcalNoiseSummary::min10GeVHitTime(void) const { return min10_; }
117 
118 float HcalNoiseSummary::max10GeVHitTime(void) const { return max10_; }
119 
120 float HcalNoiseSummary::rms10GeVHitTime(void) const { return cnthit10_ > 0 ? std::sqrt(rms10_ / cnthit10_) : 999; }
121 
122 float HcalNoiseSummary::min25GeVHitTime(void) const { return min25_; }
123 
124 float HcalNoiseSummary::max25GeVHitTime(void) const { return max25_; }
125 
126 float HcalNoiseSummary::rms25GeVHitTime(void) const { return cnthit25_ > 0 ? std::sqrt(rms25_ / cnthit25_) : 999; }
127 
128 int HcalNoiseSummary::num10GeVHits(void) const { return cnthit10_; }
129 
130 int HcalNoiseSummary::num25GeVHits(void) const { return cnthit25_; }
131 
132 float HcalNoiseSummary::minE2TS(void) const { return mine2ts_; }
133 
134 float HcalNoiseSummary::minE10TS(void) const { return mine10ts_; }
135 
136 float HcalNoiseSummary::minE2Over10TS(void) const { return mine10ts_ == 0 ? 999999. : mine2ts_ / mine10ts_; }
137 
138 float HcalNoiseSummary::maxE2TS(void) const { return maxe2ts_; }
139 
140 float HcalNoiseSummary::maxE10TS(void) const { return maxe10ts_; }
141 
142 float HcalNoiseSummary::maxE2Over10TS(void) const { return maxe10ts_ == 0 ? -999999. : maxe2ts_ / maxe10ts_; }
143 
144 int HcalNoiseSummary::maxZeros(void) const { return maxzeros_; }
145 
146 int HcalNoiseSummary::maxHPDHits(void) const { return maxhpdhits_; }
147 
149 
150 int HcalNoiseSummary::maxRBXHits(void) const { return maxrbxhits_; }
151 
152 float HcalNoiseSummary::minHPDEMF(void) const { return minhpdemf_; }
153 
154 float HcalNoiseSummary::minRBXEMF(void) const { return minrbxemf_; }
155 
157 
159 
161 
163 
165 
166 float HcalNoiseSummary::flatNoiseSumE(void) const { return flatnoisee_; }
167 
168 float HcalNoiseSummary::flatNoiseSumEt(void) const { return flatnoiseet_; }
169 
171 
172 float HcalNoiseSummary::spikeNoiseSumE(void) const { return spikenoisee_; }
173 
175 
177 
179 
181 
183 
185 
187 
189 
191 
193 
195 
197 
198 double HcalNoiseSummary::GetRecHitEnergy(void) const { return rechitEnergy_; }
199 
201 
203 
205 
207 
209 
211 
213 
215 
217 
219 
221 
223  // calibCountHF_ is the number of HF calibration digis in the event (no charge threshold required when counting these digis)
224  return calibCountHF_;
225 }
226 
228  // calibChargeHF_ is the total charge (over all 10 time slices) for all HF calibration digis in the event
229  return calibChargeHF_;
230 }
231 
233 
235 
237 
239 
241 
243 
245 
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:19
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