CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalNoiseAlgo Class Reference

#include <HcalNoiseAlgo.h>

Public Member Functions

 HcalNoiseAlgo (const edm::ParameterSet &iConfig)
 
bool isProblematic (const CommonHcalNoiseRBXData &) const
 
bool passEMFThreshold (const CommonHcalNoiseRBXData &) const
 
bool passHighLevelNoiseFilter (const CommonHcalNoiseRBXData &) const
 
bool passLooseHits (const CommonHcalNoiseRBXData &) const
 
bool passLooseNoiseFilter (const CommonHcalNoiseRBXData &) const
 
bool passLooseRatio (const CommonHcalNoiseRBXData &) const
 
bool passLooseRBXRechitR45 (const CommonHcalNoiseRBXData &) const
 
bool passLooseTiming (const CommonHcalNoiseRBXData &) const
 
bool passLooseZeros (const CommonHcalNoiseRBXData &) const
 
bool passRatioThreshold (const CommonHcalNoiseRBXData &) const
 
bool passTightHits (const CommonHcalNoiseRBXData &) const
 
bool passTightNoiseFilter (const CommonHcalNoiseRBXData &) const
 
bool passTightRatio (const CommonHcalNoiseRBXData &) const
 
bool passTightRBXRechitR45 (const CommonHcalNoiseRBXData &) const
 
bool passTightTiming (const CommonHcalNoiseRBXData &) const
 
bool passTightZeros (const CommonHcalNoiseRBXData &) const
 
bool passZerosThreshold (const CommonHcalNoiseRBXData &) const
 
virtual ~HcalNoiseAlgo ()
 

Private Attributes

double hlMaxHPDEMF_
 
double hlMaxRBXEMF_
 
double lMaxHighEHitTime_
 
double lMaxLowEHitTime_
 
double lMaxRatio_
 
double lMinHighEHitTime_
 
int lMinHPDHits_
 
int lMinHPDNoOtherHits_
 
double lMinLowEHitTime_
 
double lMinRatio_
 
int lMinRBXHits_
 
std::vector< double > lMinRBXRechitR45Cuts_
 
int lMinZeros_
 
double minEEMF_
 
double minERatio_
 
double minEZeros_
 
double pMaxHighEHitTime_
 
double pMaxHPDEMF_
 
double pMaxLowEHitTime_
 
double pMaxRatio_
 
double pMaxRBXEMF_
 
double pMinE_
 
double pMinEEMF_
 
double pMinERatio_
 
double pMinEZeros_
 
double pMinHighEHitTime_
 
int pMinHPDHits_
 
int pMinHPDNoOtherHits_
 
double pMinLowEHitTime_
 
double pMinRatio_
 
int pMinRBXHits_
 
int pMinRBXRechitR45Count_
 
double pMinRBXRechitR45EnergyFraction_
 
double pMinRBXRechitR45Fraction_
 
int pMinZeros_
 
double tMaxHighEHitTime_
 
double tMaxLowEHitTime_
 
double tMaxRatio_
 
double tMinHighEHitTime_
 
int tMinHPDHits_
 
int tMinHPDNoOtherHits_
 
double tMinLowEHitTime_
 
double tMinRatio_
 
int tMinRBXHits_
 
std::vector< double > tMinRBXRechitR45Cuts_
 
int tMinZeros_
 

Detailed Description

Definition at line 80 of file HcalNoiseAlgo.h.

Constructor & Destructor Documentation

◆ HcalNoiseAlgo()

HcalNoiseAlgo::HcalNoiseAlgo ( const edm::ParameterSet iConfig)

Definition at line 111 of file HcalNoiseAlgo.cc.

References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), hlMaxHPDEMF_, hlMaxRBXEMF_, lMaxHighEHitTime_, lMaxLowEHitTime_, lMaxRatio_, lMinHighEHitTime_, lMinHPDHits_, lMinHPDNoOtherHits_, lMinLowEHitTime_, lMinRatio_, lMinRBXHits_, lMinRBXRechitR45Cuts_, lMinZeros_, minEEMF_, minERatio_, minEZeros_, pMaxHighEHitTime_, pMaxHPDEMF_, pMaxLowEHitTime_, pMaxRatio_, pMaxRBXEMF_, pMinE_, pMinEEMF_, pMinERatio_, pMinEZeros_, pMinHighEHitTime_, pMinHPDHits_, pMinHPDNoOtherHits_, pMinLowEHitTime_, pMinRatio_, pMinRBXHits_, pMinRBXRechitR45Count_, pMinRBXRechitR45EnergyFraction_, pMinRBXRechitR45Fraction_, pMinZeros_, tMaxHighEHitTime_, tMaxLowEHitTime_, tMaxRatio_, tMinHighEHitTime_, tMinHPDHits_, tMinHPDNoOtherHits_, tMinLowEHitTime_, tMinRatio_, tMinRBXHits_, tMinRBXRechitR45Cuts_, and tMinZeros_.

111  {
112  pMinERatio_ = iConfig.getParameter<double>("pMinERatio");
113  pMinEZeros_ = iConfig.getParameter<double>("pMinEZeros");
114  pMinEEMF_ = iConfig.getParameter<double>("pMinEEMF");
115 
116  minERatio_ = iConfig.getParameter<double>("minERatio");
117  minEZeros_ = iConfig.getParameter<double>("minEZeros");
118  minEEMF_ = iConfig.getParameter<double>("minEEMF");
119 
120  pMinE_ = iConfig.getParameter<double>("pMinE");
121  pMinRatio_ = iConfig.getParameter<double>("pMinRatio");
122  pMaxRatio_ = iConfig.getParameter<double>("pMaxRatio");
123  pMinHPDHits_ = iConfig.getParameter<int>("pMinHPDHits");
124  pMinRBXHits_ = iConfig.getParameter<int>("pMinRBXHits");
125  pMinHPDNoOtherHits_ = iConfig.getParameter<int>("pMinHPDNoOtherHits");
126  pMinZeros_ = iConfig.getParameter<int>("pMinZeros");
127  pMinLowEHitTime_ = iConfig.getParameter<double>("pMinLowEHitTime");
128  pMaxLowEHitTime_ = iConfig.getParameter<double>("pMaxLowEHitTime");
129  pMinHighEHitTime_ = iConfig.getParameter<double>("pMinHighEHitTime");
130  pMaxHighEHitTime_ = iConfig.getParameter<double>("pMaxHighEHitTime");
131  pMaxHPDEMF_ = iConfig.getParameter<double>("pMaxHPDEMF");
132  pMaxRBXEMF_ = iConfig.getParameter<double>("pMaxRBXEMF");
133 
134  if (iConfig.existsAs<int>("pMinRBXRechitR45Count"))
135  pMinRBXRechitR45Count_ = iConfig.getParameter<int>("pMinRBXRechitR45Count");
136  else
138  if (iConfig.existsAs<double>("pMinRBXRechitR45Fraction"))
139  pMinRBXRechitR45Fraction_ = iConfig.getParameter<double>("pMinRBXRechitR45Fraction");
140  else
142  if (iConfig.existsAs<double>("pMinRBXRechitR45EnergyFraction"))
143  pMinRBXRechitR45EnergyFraction_ = iConfig.getParameter<double>("pMinRBXRechitR45EnergyFraction");
144  else
146 
147  lMinRatio_ = iConfig.getParameter<double>("lMinRatio");
148  lMaxRatio_ = iConfig.getParameter<double>("lMaxRatio");
149  lMinHPDHits_ = iConfig.getParameter<int>("lMinHPDHits");
150  lMinRBXHits_ = iConfig.getParameter<int>("lMinRBXHits");
151  lMinHPDNoOtherHits_ = iConfig.getParameter<int>("lMinHPDNoOtherHits");
152  lMinZeros_ = iConfig.getParameter<int>("lMinZeros");
153  lMinLowEHitTime_ = iConfig.getParameter<double>("lMinLowEHitTime");
154  lMaxLowEHitTime_ = iConfig.getParameter<double>("lMaxLowEHitTime");
155  lMinHighEHitTime_ = iConfig.getParameter<double>("lMinHighEHitTime");
156  lMaxHighEHitTime_ = iConfig.getParameter<double>("lMaxHighEHitTime");
157 
158  if (iConfig.existsAs<std::vector<double> >("lRBXRecHitR45Cuts"))
159  lMinRBXRechitR45Cuts_ = iConfig.getParameter<std::vector<double> >("lRBXRecHitR45Cuts");
160  else {
161  double defaultCut[4] = {-999, -999, -999, -999};
162  lMinRBXRechitR45Cuts_ = std::vector<double>(defaultCut, defaultCut + 4);
163  }
164 
165  tMinRatio_ = iConfig.getParameter<double>("tMinRatio");
166  tMaxRatio_ = iConfig.getParameter<double>("tMaxRatio");
167  tMinHPDHits_ = iConfig.getParameter<int>("tMinHPDHits");
168  tMinRBXHits_ = iConfig.getParameter<int>("tMinRBXHits");
169  tMinHPDNoOtherHits_ = iConfig.getParameter<int>("tMinHPDNoOtherHits");
170  tMinZeros_ = iConfig.getParameter<int>("tMinZeros");
171  tMinLowEHitTime_ = iConfig.getParameter<double>("tMinLowEHitTime");
172  tMaxLowEHitTime_ = iConfig.getParameter<double>("tMaxLowEHitTime");
173  tMinHighEHitTime_ = iConfig.getParameter<double>("tMinHighEHitTime");
174  tMaxHighEHitTime_ = iConfig.getParameter<double>("tMaxHighEHitTime");
175 
176  if (iConfig.existsAs<std::vector<double> >("tRBXRecHitR45Cuts"))
177  tMinRBXRechitR45Cuts_ = iConfig.getParameter<std::vector<double> >("tRBXRecHitR45Cuts");
178  else {
179  double defaultCut[4] = {-999, -999, -999, -999};
180  tMinRBXRechitR45Cuts_ = std::vector<double>(defaultCut, defaultCut + 4);
181  }
182 
183  hlMaxHPDEMF_ = iConfig.getParameter<double>("hlMaxHPDEMF");
184  hlMaxRBXEMF_ = iConfig.getParameter<double>("hlMaxRBXEMF");
185 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
double pMaxHPDEMF_
double hlMaxRBXEMF_
double pMinERatio_
int pMinRBXRechitR45Count_
double pMinHighEHitTime_
std::vector< double > lMinRBXRechitR45Cuts_
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:171
double tMaxHighEHitTime_
double lMaxHighEHitTime_
double pMinEZeros_
double pMinRBXRechitR45EnergyFraction_
double tMinHighEHitTime_
double pMaxHighEHitTime_
std::vector< double > tMinRBXRechitR45Cuts_
double lMinLowEHitTime_
double pMinRBXRechitR45Fraction_
double tMinLowEHitTime_
double pMaxLowEHitTime_
double pMinLowEHitTime_
double pMaxRBXEMF_
double lMaxLowEHitTime_
double lMinHighEHitTime_
double tMaxLowEHitTime_
double hlMaxHPDEMF_

◆ ~HcalNoiseAlgo()

virtual HcalNoiseAlgo::~HcalNoiseAlgo ( )
inlinevirtual

Definition at line 83 of file HcalNoiseAlgo.h.

83 {}

Member Function Documentation

◆ isProblematic()

bool HcalNoiseAlgo::isProblematic ( const CommonHcalNoiseRBXData data) const

Definition at line 187 of file HcalNoiseAlgo.cc.

References data, pMaxHighEHitTime_, pMaxHPDEMF_, pMaxLowEHitTime_, pMaxRatio_, pMaxRBXEMF_, pMinE_, pMinEEMF_, pMinERatio_, pMinEZeros_, pMinHighEHitTime_, pMinHPDHits_, pMinHPDNoOtherHits_, pMinLowEHitTime_, pMinRatio_, pMinRBXHits_, pMinRBXRechitR45Count_, pMinRBXRechitR45EnergyFraction_, pMinRBXRechitR45Fraction_, and pMinZeros_.

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

187  {
188  if (data.energy() > pMinE_)
189  return true;
190  if (data.validRatio() && data.energy() > pMinERatio_ && data.ratio() < pMinRatio_)
191  return true;
192  if (data.validRatio() && data.energy() > pMinERatio_ && data.ratio() > pMaxRatio_)
193  return true;
194  if (data.numHPDHits() >= pMinHPDHits_)
195  return true;
196  if (data.numRBXHits() >= pMinRBXHits_)
197  return true;
198  if (data.numHPDNoOtherHits() >= pMinHPDNoOtherHits_)
199  return true;
200  if (data.numZeros() >= pMinZeros_ && data.energy() > pMinEZeros_)
201  return true;
202  if (data.minLowEHitTime() < pMinLowEHitTime_)
203  return true;
204  if (data.maxLowEHitTime() > pMaxLowEHitTime_)
205  return true;
206  if (data.minHighEHitTime() < pMinHighEHitTime_)
207  return true;
208  if (data.maxHighEHitTime() > pMaxHighEHitTime_)
209  return true;
210  if (data.HPDEMF() < pMaxHPDEMF_ && data.energy() > pMinEEMF_)
211  return true;
212  if (data.RBXEMF() < pMaxRBXEMF_ && data.energy() > pMinEEMF_)
213  return true;
214  if (data.r45Count() >= pMinRBXRechitR45Count_)
215  return true;
216  if (data.r45Fraction() >= pMinRBXRechitR45Fraction_)
217  return true;
218  if (data.r45EnergyFraction() >= pMinRBXRechitR45EnergyFraction_)
219  return true;
220 
221  return false;
222 }
double pMaxHPDEMF_
double pMinERatio_
int pMinRBXRechitR45Count_
double pMinHighEHitTime_
double pMinEZeros_
double pMinRBXRechitR45EnergyFraction_
double pMaxHighEHitTime_
double pMinRBXRechitR45Fraction_
double pMaxLowEHitTime_
double pMinLowEHitTime_
double pMaxRBXEMF_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passEMFThreshold()

bool HcalNoiseAlgo::passEMFThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 362 of file HcalNoiseAlgo.cc.

References data, and minEEMF_.

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

362 { return (data.energy() > minEEMF_); }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passHighLevelNoiseFilter()

bool HcalNoiseAlgo::passHighLevelNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 234 of file HcalNoiseAlgo.cc.

References data, hlMaxHPDEMF_, hlMaxRBXEMF_, and passEMFThreshold().

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

234  {
235  if (passEMFThreshold(data)) {
236  if (data.HPDEMF() < hlMaxHPDEMF_)
237  return false;
238  if (data.RBXEMF() < hlMaxRBXEMF_)
239  return false;
240  }
241  return true;
242 }
double hlMaxRBXEMF_
bool passEMFThreshold(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
double hlMaxHPDEMF_

◆ passLooseHits()

bool HcalNoiseAlgo::passLooseHits ( const CommonHcalNoiseRBXData data) const

Definition at line 254 of file HcalNoiseAlgo.cc.

References data, lMinHPDHits_, lMinHPDNoOtherHits_, and lMinRBXHits_.

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

254  {
255  if (data.numHPDHits() >= lMinHPDHits_)
256  return false;
257  if (data.numRBXHits() >= lMinRBXHits_)
258  return false;
259  if (data.numHPDNoOtherHits() >= lMinHPDNoOtherHits_)
260  return false;
261  return true;
262 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passLooseNoiseFilter()

bool HcalNoiseAlgo::passLooseNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 224 of file HcalNoiseAlgo.cc.

References data, passLooseHits(), passLooseRatio(), passLooseRBXRechitR45(), passLooseTiming(), and passLooseZeros().

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

224  {
227 }
bool passLooseTiming(const CommonHcalNoiseRBXData &) const
bool passLooseZeros(const CommonHcalNoiseRBXData &) const
bool passLooseRatio(const CommonHcalNoiseRBXData &) const
bool passLooseHits(const CommonHcalNoiseRBXData &) const
bool passLooseRBXRechitR45(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passLooseRatio()

bool HcalNoiseAlgo::passLooseRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 244 of file HcalNoiseAlgo.cc.

References data, lMaxRatio_, lMinRatio_, and passRatioThreshold().

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

244  {
245  if (passRatioThreshold(data)) {
246  if (data.validRatio() && data.ratio() < lMinRatio_)
247  return false;
248  if (data.validRatio() && data.ratio() > lMaxRatio_)
249  return false;
250  }
251  return true;
252 }
bool passRatioThreshold(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passLooseRBXRechitR45()

bool HcalNoiseAlgo::passLooseRBXRechitR45 ( const CommonHcalNoiseRBXData data) const

Definition at line 284 of file HcalNoiseAlgo.cc.

References data, HLT_FULL_cff::Fraction, mps_fire::i, createfilelist::int, and lMinRBXRechitR45Cuts_.

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

284  {
285  int Count = data.r45Count();
286  double Fraction = data.r45Fraction();
287  double EnergyFraction = data.r45EnergyFraction();
288 
289  for (int i = 0; i + 3 < (int)lMinRBXRechitR45Cuts_.size(); i = i + 4) {
290  double Value = Count * lMinRBXRechitR45Cuts_[i] + Fraction * lMinRBXRechitR45Cuts_[i + 1] +
291  EnergyFraction * lMinRBXRechitR45Cuts_[i + 2] + lMinRBXRechitR45Cuts_[i + 3];
292  if (Value > 0)
293  return false;
294  }
295 
296  return true;
297 }
std::vector< double > lMinRBXRechitR45Cuts_
reco::JetExtendedAssociation::JetExtendedData Value
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passLooseTiming()

bool HcalNoiseAlgo::passLooseTiming ( const CommonHcalNoiseRBXData data) const

Definition at line 272 of file HcalNoiseAlgo.cc.

References data, lMaxHighEHitTime_, lMaxLowEHitTime_, lMinHighEHitTime_, and lMinLowEHitTime_.

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

272  {
273  if (data.minLowEHitTime() < lMinLowEHitTime_)
274  return false;
275  if (data.maxLowEHitTime() > lMaxLowEHitTime_)
276  return false;
277  if (data.minHighEHitTime() < lMinHighEHitTime_)
278  return false;
279  if (data.maxHighEHitTime() > lMaxHighEHitTime_)
280  return false;
281  return true;
282 }
double lMaxHighEHitTime_
double lMinLowEHitTime_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
double lMaxLowEHitTime_
double lMinHighEHitTime_

◆ passLooseZeros()

bool HcalNoiseAlgo::passLooseZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 264 of file HcalNoiseAlgo.cc.

References data, lMinZeros_, and passZerosThreshold().

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

264  {
265  if (passZerosThreshold(data)) {
266  if (data.numZeros() >= lMinZeros_)
267  return false;
268  }
269  return true;
270 }
bool passZerosThreshold(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passRatioThreshold()

bool HcalNoiseAlgo::passRatioThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 354 of file HcalNoiseAlgo.cc.

References data, and minERatio_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), passLooseRatio(), and passTightRatio().

354  {
355  return (data.energy() > minERatio_);
356 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passTightHits()

bool HcalNoiseAlgo::passTightHits ( const CommonHcalNoiseRBXData data) const

Definition at line 309 of file HcalNoiseAlgo.cc.

References data, tMinHPDHits_, tMinHPDNoOtherHits_, and tMinRBXHits_.

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

309  {
310  if (data.numHPDHits() >= tMinHPDHits_)
311  return false;
312  if (data.numRBXHits() >= tMinRBXHits_)
313  return false;
314  if (data.numHPDNoOtherHits() >= tMinHPDNoOtherHits_)
315  return false;
316  return true;
317 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passTightNoiseFilter()

bool HcalNoiseAlgo::passTightNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 229 of file HcalNoiseAlgo.cc.

References data, passTightHits(), passTightRatio(), passTightRBXRechitR45(), passTightTiming(), and passTightZeros().

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

229  {
232 }
bool passTightRatio(const CommonHcalNoiseRBXData &) const
bool passTightZeros(const CommonHcalNoiseRBXData &) const
bool passTightRBXRechitR45(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
bool passTightTiming(const CommonHcalNoiseRBXData &) const
bool passTightHits(const CommonHcalNoiseRBXData &) const

◆ passTightRatio()

bool HcalNoiseAlgo::passTightRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 299 of file HcalNoiseAlgo.cc.

References data, passRatioThreshold(), tMaxRatio_, and tMinRatio_.

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

299  {
300  if (passRatioThreshold(data)) {
301  if (data.validRatio() && data.ratio() < tMinRatio_)
302  return false;
303  if (data.validRatio() && data.ratio() > tMaxRatio_)
304  return false;
305  }
306  return true;
307 }
bool passRatioThreshold(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passTightRBXRechitR45()

bool HcalNoiseAlgo::passTightRBXRechitR45 ( const CommonHcalNoiseRBXData data) const

Definition at line 339 of file HcalNoiseAlgo.cc.

References data, HLT_FULL_cff::Fraction, mps_fire::i, createfilelist::int, and tMinRBXRechitR45Cuts_.

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

339  {
340  int Count = data.r45Count();
341  double Fraction = data.r45Fraction();
342  double EnergyFraction = data.r45EnergyFraction();
343 
344  for (int i = 0; i + 3 < (int)tMinRBXRechitR45Cuts_.size(); i = i + 4) {
345  double Value = Count * tMinRBXRechitR45Cuts_[i] + Fraction * tMinRBXRechitR45Cuts_[i + 1] +
346  EnergyFraction * tMinRBXRechitR45Cuts_[i + 2] + tMinRBXRechitR45Cuts_[i + 3];
347  if (Value > 0)
348  return false;
349  }
350 
351  return true;
352 }
std::vector< double > tMinRBXRechitR45Cuts_
reco::JetExtendedAssociation::JetExtendedData Value
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passTightTiming()

bool HcalNoiseAlgo::passTightTiming ( const CommonHcalNoiseRBXData data) const

Definition at line 327 of file HcalNoiseAlgo.cc.

References data, tMaxHighEHitTime_, tMaxLowEHitTime_, tMinHighEHitTime_, and tMinLowEHitTime_.

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

327  {
328  if (data.minLowEHitTime() < tMinLowEHitTime_)
329  return false;
330  if (data.maxLowEHitTime() > tMaxLowEHitTime_)
331  return false;
332  if (data.minHighEHitTime() < tMinHighEHitTime_)
333  return false;
334  if (data.maxHighEHitTime() > tMaxHighEHitTime_)
335  return false;
336  return true;
337 }
double tMaxHighEHitTime_
double tMinHighEHitTime_
double tMinLowEHitTime_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
double tMaxLowEHitTime_

◆ passTightZeros()

bool HcalNoiseAlgo::passTightZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 319 of file HcalNoiseAlgo.cc.

References data, passZerosThreshold(), and tMinZeros_.

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

319  {
320  if (passZerosThreshold(data)) {
321  if (data.numZeros() >= tMinZeros_)
322  return false;
323  }
324  return true;
325 }
bool passZerosThreshold(const CommonHcalNoiseRBXData &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ passZerosThreshold()

bool HcalNoiseAlgo::passZerosThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 358 of file HcalNoiseAlgo.cc.

References data, and minEZeros_.

Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), passLooseZeros(), and passTightZeros().

358  {
359  return (data.energy() > minEZeros_);
360 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

Member Data Documentation

◆ hlMaxHPDEMF_

double HcalNoiseAlgo::hlMaxHPDEMF_
private

Definition at line 173 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

◆ hlMaxRBXEMF_

double HcalNoiseAlgo::hlMaxRBXEMF_
private

Definition at line 174 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

◆ lMaxHighEHitTime_

double HcalNoiseAlgo::lMaxHighEHitTime_
private

Definition at line 154 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

◆ lMaxLowEHitTime_

double HcalNoiseAlgo::lMaxLowEHitTime_
private

Definition at line 152 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

◆ lMaxRatio_

double HcalNoiseAlgo::lMaxRatio_
private

Definition at line 146 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

◆ lMinHighEHitTime_

double HcalNoiseAlgo::lMinHighEHitTime_
private

Definition at line 153 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

◆ lMinHPDHits_

int HcalNoiseAlgo::lMinHPDHits_
private

Definition at line 147 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

◆ lMinHPDNoOtherHits_

int HcalNoiseAlgo::lMinHPDNoOtherHits_
private

Definition at line 149 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

◆ lMinLowEHitTime_

double HcalNoiseAlgo::lMinLowEHitTime_
private

Definition at line 151 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

◆ lMinRatio_

double HcalNoiseAlgo::lMinRatio_
private

Definition at line 145 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

◆ lMinRBXHits_

int HcalNoiseAlgo::lMinRBXHits_
private

Definition at line 148 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

◆ lMinRBXRechitR45Cuts_

std::vector<double> HcalNoiseAlgo::lMinRBXRechitR45Cuts_
private

Definition at line 155 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRBXRechitR45().

◆ lMinZeros_

int HcalNoiseAlgo::lMinZeros_
private

Definition at line 150 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseZeros().

◆ minEEMF_

double HcalNoiseAlgo::minEEMF_
private

Definition at line 122 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passEMFThreshold().

◆ minERatio_

double HcalNoiseAlgo::minERatio_
private

Definition at line 120 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passRatioThreshold().

◆ minEZeros_

double HcalNoiseAlgo::minEZeros_
private

Definition at line 121 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passZerosThreshold().

◆ pMaxHighEHitTime_

double HcalNoiseAlgo::pMaxHighEHitTime_
private

Definition at line 136 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMaxHPDEMF_

double HcalNoiseAlgo::pMaxHPDEMF_
private

Definition at line 137 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMaxLowEHitTime_

double HcalNoiseAlgo::pMaxLowEHitTime_
private

Definition at line 134 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMaxRatio_

double HcalNoiseAlgo::pMaxRatio_
private

Definition at line 128 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMaxRBXEMF_

double HcalNoiseAlgo::pMaxRBXEMF_
private

Definition at line 138 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinE_

double HcalNoiseAlgo::pMinE_
private

Definition at line 126 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinEEMF_

double HcalNoiseAlgo::pMinEEMF_
private

Definition at line 117 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinERatio_

double HcalNoiseAlgo::pMinERatio_
private

Definition at line 115 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinEZeros_

double HcalNoiseAlgo::pMinEZeros_
private

Definition at line 116 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinHighEHitTime_

double HcalNoiseAlgo::pMinHighEHitTime_
private

Definition at line 135 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinHPDHits_

int HcalNoiseAlgo::pMinHPDHits_
private

Definition at line 129 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinHPDNoOtherHits_

int HcalNoiseAlgo::pMinHPDNoOtherHits_
private

Definition at line 131 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinLowEHitTime_

double HcalNoiseAlgo::pMinLowEHitTime_
private

Definition at line 133 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinRatio_

double HcalNoiseAlgo::pMinRatio_
private

Definition at line 127 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinRBXHits_

int HcalNoiseAlgo::pMinRBXHits_
private

Definition at line 130 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinRBXRechitR45Count_

int HcalNoiseAlgo::pMinRBXRechitR45Count_
private

Definition at line 139 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinRBXRechitR45EnergyFraction_

double HcalNoiseAlgo::pMinRBXRechitR45EnergyFraction_
private

Definition at line 141 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinRBXRechitR45Fraction_

double HcalNoiseAlgo::pMinRBXRechitR45Fraction_
private

Definition at line 140 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ pMinZeros_

int HcalNoiseAlgo::pMinZeros_
private

Definition at line 132 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

◆ tMaxHighEHitTime_

double HcalNoiseAlgo::tMaxHighEHitTime_
private

Definition at line 168 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

◆ tMaxLowEHitTime_

double HcalNoiseAlgo::tMaxLowEHitTime_
private

Definition at line 166 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

◆ tMaxRatio_

double HcalNoiseAlgo::tMaxRatio_
private

Definition at line 160 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

◆ tMinHighEHitTime_

double HcalNoiseAlgo::tMinHighEHitTime_
private

Definition at line 167 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

◆ tMinHPDHits_

int HcalNoiseAlgo::tMinHPDHits_
private

Definition at line 161 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

◆ tMinHPDNoOtherHits_

int HcalNoiseAlgo::tMinHPDNoOtherHits_
private

Definition at line 163 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

◆ tMinLowEHitTime_

double HcalNoiseAlgo::tMinLowEHitTime_
private

Definition at line 165 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

◆ tMinRatio_

double HcalNoiseAlgo::tMinRatio_
private

Definition at line 159 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

◆ tMinRBXHits_

int HcalNoiseAlgo::tMinRBXHits_
private

Definition at line 162 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

◆ tMinRBXRechitR45Cuts_

std::vector<double> HcalNoiseAlgo::tMinRBXRechitR45Cuts_
private

Definition at line 169 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRBXRechitR45().

◆ tMinZeros_

int HcalNoiseAlgo::tMinZeros_
private

Definition at line 164 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightZeros().