CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
HcalNoiseSummary Class Reference

#include <HcalNoiseSummary.h>

Public Member Functions

float eventChargeFraction (void) const
 
float eventEMEnergy (void) const
 
float eventEMFraction (void) const
 
float eventHadEnergy (void) const
 
float eventTrackEnergy (void) const
 
 HcalNoiseSummary ()
 
edm::RefVector
< CaloTowerCollection
highLevelNoiseTowers (void) const
 
float isolatedNoiseSumE (void) const
 
float isolatedNoiseSumEt (void) const
 
edm::RefVector
< CaloTowerCollection
looseNoiseTowers (void) const
 
float max10GeVHitTime (void) const
 
float max25GeVHitTime (void) const
 
float maxE10TS (void) const
 
float maxE2Over10TS (void) const
 
float maxE2TS (void) const
 
int maxHPDHits (void) const
 
int maxHPDNoOtherHits (void) const
 
int maxRBXHits (void) const
 
int maxZeros (void) const
 
float min10GeVHitTime (void) const
 
float min25GeVHitTime (void) const
 
float minE10TS (void) const
 
float minE2Over10TS (void) const
 
float minE2TS (void) const
 
float minHPDEMF (void) const
 
float minRBXEMF (void) const
 
int noiseFilterStatus (void) const
 
int noiseType (void) const
 
int num10GeVHits (void) const
 
int num25GeVHits (void) const
 
int numIsolatedNoiseChannels (void) const
 
int numProblematicRBXs (void) const
 
bool passHighLevelNoiseFilter (void) const
 
bool passLooseNoiseFilter (void) const
 
bool passTightNoiseFilter (void) const
 
edm::RefVector
< reco::CaloJetCollection
problematicJets (void) const
 
float rms10GeVHitTime (void) const
 
float rms25GeVHitTime (void) const
 
edm::RefVector
< CaloTowerCollection
tightNoiseTowers (void) const
 
virtual ~HcalNoiseSummary ()
 

Private Attributes

int cnthit10_
 
int cnthit25_
 
float emenergy_
 
int filterstatus_
 
float hadenergy_
 
edm::RefVector
< CaloTowerCollection
hlnoisetwrs_
 
float isolnoisee_
 
float isolnoiseet_
 
edm::RefVector
< CaloTowerCollection
loosenoisetwrs_
 
float max10_
 
float max25_
 
float maxe10ts_
 
float maxe2ts_
 
int maxhpdhits_
 
int maxhpdhitsnoother_
 
int maxrbxhits_
 
int maxzeros_
 
float min10_
 
float min25_
 
float mine10ts_
 
float mine2ts_
 
float minhpdemf_
 
float minrbxemf_
 
int nisolnoise_
 
int noisetype_
 
int nproblemRBXs_
 
edm::RefVector
< reco::CaloJetCollection
problemjets_
 
float rms10_
 
float rms25_
 
edm::RefVector
< CaloTowerCollection
tightnoisetwrs_
 
float trackenergy_
 

Friends

class reco::HcalNoiseInfoProducer
 

Detailed Description

Definition at line 31 of file HcalNoiseSummary.h.

Constructor & Destructor Documentation

HcalNoiseSummary::HcalNoiseSummary ( )

Definition at line 13 of file HcalNoiseSummary.cc.

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),
22  minhpdemf_(999999.), minrbxemf_(999999.),
23  nproblemRBXs_(0),
25 {
26 }
HcalNoiseSummary::~HcalNoiseSummary ( )
virtual

Definition at line 29 of file HcalNoiseSummary.cc.

30 {
31 }

Member Function Documentation

float HcalNoiseSummary::eventChargeFraction ( void  ) const

Definition at line 82 of file HcalNoiseSummary.cc.

References emenergy_, hadenergy_, and trackenergy_.

83 {
84  if(hadenergy_+emenergy_==0.0) return -999.;
85  else return trackenergy_/(hadenergy_+emenergy_);
86 }
float HcalNoiseSummary::eventEMEnergy ( void  ) const

Definition at line 61 of file HcalNoiseSummary.cc.

References emenergy_.

62 {
63  return emenergy_;
64 }
float HcalNoiseSummary::eventEMFraction ( void  ) const

Definition at line 76 of file HcalNoiseSummary.cc.

References emenergy_, and hadenergy_.

77 {
78  if(hadenergy_+emenergy_==0.0) return -999.;
79  else return emenergy_/(hadenergy_+emenergy_);
80 }
float HcalNoiseSummary::eventHadEnergy ( void  ) const

Definition at line 66 of file HcalNoiseSummary.cc.

References hadenergy_.

67 {
68  return hadenergy_;
69 }
float HcalNoiseSummary::eventTrackEnergy ( void  ) const

Definition at line 71 of file HcalNoiseSummary.cc.

References trackenergy_.

72 {
73  return trackenergy_;
74 }
edm::RefVector< CaloTowerCollection > HcalNoiseSummary::highLevelNoiseTowers ( void  ) const

Definition at line 223 of file HcalNoiseSummary.cc.

References hlnoisetwrs_.

224 {
225  return hlnoisetwrs_;
226 }
edm::RefVector< CaloTowerCollection > hlnoisetwrs_
float HcalNoiseSummary::isolatedNoiseSumE ( void  ) const

Definition at line 198 of file HcalNoiseSummary.cc.

References isolnoisee_.

199 {
200  return isolnoisee_;
201 }
float HcalNoiseSummary::isolatedNoiseSumEt ( void  ) const

Definition at line 203 of file HcalNoiseSummary.cc.

References isolnoiseet_.

204 {
205  return isolnoiseet_;
206 }
edm::RefVector< CaloTowerCollection > HcalNoiseSummary::looseNoiseTowers ( void  ) const

Definition at line 213 of file HcalNoiseSummary.cc.

References loosenoisetwrs_.

214 {
215  return loosenoisetwrs_;
216 }
edm::RefVector< CaloTowerCollection > loosenoisetwrs_
float HcalNoiseSummary::max10GeVHitTime ( void  ) const

Definition at line 93 of file HcalNoiseSummary.cc.

References max10_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

94 {
95  return max10_;
96 }
float HcalNoiseSummary::max25GeVHitTime ( void  ) const

Definition at line 108 of file HcalNoiseSummary.cc.

References max25_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

109 {
110  return max25_;
111 }
float HcalNoiseSummary::maxE10TS ( void  ) const

Definition at line 148 of file HcalNoiseSummary.cc.

References maxe10ts_.

149 {
150  return maxe10ts_;
151 }
float HcalNoiseSummary::maxE2Over10TS ( void  ) const

Definition at line 153 of file HcalNoiseSummary.cc.

References maxe10ts_, and maxe2ts_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

154 {
155  return maxe10ts_==0 ? -999999. : maxe2ts_/maxe10ts_;
156 }
float HcalNoiseSummary::maxE2TS ( void  ) const

Definition at line 143 of file HcalNoiseSummary.cc.

References maxe2ts_.

144 {
145  return maxe2ts_;
146 }
int HcalNoiseSummary::maxHPDHits ( void  ) const

Definition at line 163 of file HcalNoiseSummary.cc.

References maxhpdhits_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

164 {
165  return maxhpdhits_;
166 }
int HcalNoiseSummary::maxHPDNoOtherHits ( void  ) const

Definition at line 168 of file HcalNoiseSummary.cc.

References maxhpdhitsnoother_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

169 {
170  return maxhpdhitsnoother_;
171 }
int HcalNoiseSummary::maxRBXHits ( void  ) const

Definition at line 173 of file HcalNoiseSummary.cc.

References maxrbxhits_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and noiseType().

174 {
175  return maxrbxhits_;
176 }
int HcalNoiseSummary::maxZeros ( void  ) const

Definition at line 158 of file HcalNoiseSummary.cc.

References maxzeros_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

159 {
160  return maxzeros_;
161 }
float HcalNoiseSummary::min10GeVHitTime ( void  ) const

Definition at line 88 of file HcalNoiseSummary.cc.

References min10_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

89 {
90  return min10_;
91 }
float HcalNoiseSummary::min25GeVHitTime ( void  ) const

Definition at line 103 of file HcalNoiseSummary.cc.

References min25_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

104 {
105  return min25_;
106 }
float HcalNoiseSummary::minE10TS ( void  ) const

Definition at line 133 of file HcalNoiseSummary.cc.

References mine10ts_.

134 {
135  return mine10ts_;
136 }
float HcalNoiseSummary::minE2Over10TS ( void  ) const

Definition at line 138 of file HcalNoiseSummary.cc.

References mine10ts_, and mine2ts_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

139 {
140  return mine10ts_==0 ? 999999. : mine2ts_/mine10ts_;
141 }
float HcalNoiseSummary::minE2TS ( void  ) const

Definition at line 128 of file HcalNoiseSummary.cc.

References mine2ts_.

129 {
130  return mine2ts_;
131 }
float HcalNoiseSummary::minHPDEMF ( void  ) const

Definition at line 178 of file HcalNoiseSummary.cc.

References minhpdemf_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

179 {
180  return minhpdemf_;
181 }
float HcalNoiseSummary::minRBXEMF ( void  ) const

Definition at line 183 of file HcalNoiseSummary.cc.

References minrbxemf_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables().

184 {
185  return minrbxemf_;
186 }
int HcalNoiseSummary::noiseFilterStatus ( void  ) const

Definition at line 56 of file HcalNoiseSummary.cc.

References filterstatus_.

57 {
58  return filterstatus_;
59 }
int HcalNoiseSummary::noiseType ( void  ) const

Definition at line 49 of file HcalNoiseSummary.cc.

References maxRBXHits().

50 {
51  if(maxRBXHits()>18) return 3;
52  else if(maxRBXHits()>8) return 2;
53  return 1;
54 }
int maxRBXHits(void) const
int HcalNoiseSummary::num10GeVHits ( void  ) const

Definition at line 118 of file HcalNoiseSummary.cc.

References cnthit10_.

119 {
120  return cnthit10_;
121 }
int HcalNoiseSummary::num25GeVHits ( void  ) const

Definition at line 123 of file HcalNoiseSummary.cc.

References cnthit25_.

124 {
125  return cnthit25_;
126 }
int HcalNoiseSummary::numIsolatedNoiseChannels ( void  ) const

Definition at line 193 of file HcalNoiseSummary.cc.

References nisolnoise_.

194 {
195  return nisolnoise_;
196 }
int HcalNoiseSummary::numProblematicRBXs ( void  ) const

Definition at line 188 of file HcalNoiseSummary.cc.

References nproblemRBXs_.

189 {
190  return nproblemRBXs_;
191 }
bool HcalNoiseSummary::passHighLevelNoiseFilter ( void  ) const

Definition at line 44 of file HcalNoiseSummary.cc.

References filterstatus_.

45 {
46  return (filterstatus_ & 0xFF0000)==0;
47 }
bool HcalNoiseSummary::passLooseNoiseFilter ( void  ) const

Definition at line 34 of file HcalNoiseSummary.cc.

References filterstatus_.

35 {
36  return (filterstatus_ & 0xFF)==0;
37 }
bool HcalNoiseSummary::passTightNoiseFilter ( void  ) const

Definition at line 39 of file HcalNoiseSummary.cc.

References filterstatus_.

40 {
41  return (filterstatus_ & 0xFF00)==0;
42 }
edm::RefVector< reco::CaloJetCollection > HcalNoiseSummary::problematicJets ( void  ) const

Definition at line 208 of file HcalNoiseSummary.cc.

References problemjets_.

209 {
210  return problemjets_;
211 }
edm::RefVector< reco::CaloJetCollection > problemjets_
float HcalNoiseSummary::rms10GeVHitTime ( void  ) const

Definition at line 98 of file HcalNoiseSummary.cc.

References cnthit10_, rms10_, and mathSSE::sqrt().

99 {
100  return cnthit10_>0 ? std::sqrt(rms10_/cnthit10_) : 999;
101 }
T sqrt(T t)
Definition: SSEVec.h:28
float HcalNoiseSummary::rms25GeVHitTime ( void  ) const

Definition at line 113 of file HcalNoiseSummary.cc.

References cnthit25_, rms25_, and mathSSE::sqrt().

114 {
115  return cnthit25_>0 ? std::sqrt(rms25_/cnthit25_) : 999;
116 }
T sqrt(T t)
Definition: SSEVec.h:28
edm::RefVector< CaloTowerCollection > HcalNoiseSummary::tightNoiseTowers ( void  ) const

Definition at line 218 of file HcalNoiseSummary.cc.

References tightnoisetwrs_.

219 {
220  return tightnoisetwrs_;
221 }
edm::RefVector< CaloTowerCollection > tightnoisetwrs_

Friends And Related Function Documentation

friend class reco::HcalNoiseInfoProducer
friend

Definition at line 33 of file HcalNoiseSummary.h.

Member Data Documentation

int HcalNoiseSummary::cnthit10_
private
int HcalNoiseSummary::cnthit25_
private
float HcalNoiseSummary::emenergy_
private
int HcalNoiseSummary::filterstatus_
private
float HcalNoiseSummary::hadenergy_
private
edm::RefVector<CaloTowerCollection> HcalNoiseSummary::hlnoisetwrs_
private
float HcalNoiseSummary::isolnoisee_
private
float HcalNoiseSummary::isolnoiseet_
private
edm::RefVector<CaloTowerCollection> HcalNoiseSummary::loosenoisetwrs_
private
float HcalNoiseSummary::max10_
private
float HcalNoiseSummary::max25_
private
float HcalNoiseSummary::maxe10ts_
private
float HcalNoiseSummary::maxe2ts_
private
int HcalNoiseSummary::maxhpdhits_
private
int HcalNoiseSummary::maxhpdhitsnoother_
private
int HcalNoiseSummary::maxrbxhits_
private
int HcalNoiseSummary::maxzeros_
private
float HcalNoiseSummary::min10_
private
float HcalNoiseSummary::min25_
private
float HcalNoiseSummary::mine10ts_
private
float HcalNoiseSummary::mine2ts_
private
float HcalNoiseSummary::minhpdemf_
private
float HcalNoiseSummary::minrbxemf_
private
int HcalNoiseSummary::nisolnoise_
private
int HcalNoiseSummary::noisetype_
private

Definition at line 122 of file HcalNoiseSummary.h.

int HcalNoiseSummary::nproblemRBXs_
private

Definition at line 132 of file HcalNoiseSummary.h.

Referenced by numProblematicRBXs(), and reco::HcalNoiseInfoProducer::produce().

edm::RefVector<reco::CaloJetCollection> HcalNoiseSummary::problemjets_
private

Definition at line 136 of file HcalNoiseSummary.h.

Referenced by problematicJets().

float HcalNoiseSummary::rms10_
private
float HcalNoiseSummary::rms25_
private
edm::RefVector<CaloTowerCollection> HcalNoiseSummary::tightnoisetwrs_
private
float HcalNoiseSummary::trackenergy_
private