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
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 75 of file HcalNoiseAlgo.h.

Constructor & Destructor Documentation

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

Definition at line 101 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_.

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

Definition at line 80 of file HcalNoiseAlgo.h.

80 {}

Member Function Documentation

bool HcalNoiseAlgo::isProblematic ( const CommonHcalNoiseRBXData data) const

Definition at line 180 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::energy(), CommonHcalNoiseRBXData::HPDEMF(), CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), CommonHcalNoiseRBXData::minLowEHitTime(), CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), CommonHcalNoiseRBXData::numRBXHits(), CommonHcalNoiseRBXData::numZeros(), pMaxHighEHitTime_, pMaxHPDEMF_, pMaxLowEHitTime_, pMaxRatio_, pMaxRBXEMF_, pMinE_, pMinEEMF_, pMinERatio_, pMinEZeros_, pMinHighEHitTime_, pMinHPDHits_, pMinHPDNoOtherHits_, pMinLowEHitTime_, pMinRatio_, pMinRBXHits_, pMinRBXRechitR45Count_, pMinRBXRechitR45EnergyFraction_, pMinRBXRechitR45Fraction_, pMinZeros_, CommonHcalNoiseRBXData::r45Count(), CommonHcalNoiseRBXData::r45EnergyFraction(), CommonHcalNoiseRBXData::r45Fraction(), CommonHcalNoiseRBXData::ratio(), CommonHcalNoiseRBXData::RBXEMF(), and CommonHcalNoiseRBXData::validRatio().

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

181 {
182  if(data.energy()>pMinE_) return true;
183  if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()<pMinRatio_) return true;
184  if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()>pMaxRatio_) return true;
185  if(data.numHPDHits()>=pMinHPDHits_) return true;
186  if(data.numRBXHits()>=pMinRBXHits_) return true;
187  if(data.numHPDNoOtherHits()>=pMinHPDNoOtherHits_) return true;
188  if(data.numZeros()>=pMinZeros_ && data.energy()>pMinEZeros_) return true;
189  if(data.minLowEHitTime()<pMinLowEHitTime_) return true;
190  if(data.maxLowEHitTime()>pMaxLowEHitTime_) return true;
191  if(data.minHighEHitTime()<pMinHighEHitTime_) return true;
192  if(data.maxHighEHitTime()>pMaxHighEHitTime_) return true;
193  if(data.HPDEMF()<pMaxHPDEMF_ && data.energy()>pMinEEMF_) return true;
194  if(data.RBXEMF()<pMaxRBXEMF_ && data.energy()>pMinEEMF_) return true;
195  if(data.r45Count() >= pMinRBXRechitR45Count_) return true;
196  if(data.r45Fraction() >= pMinRBXRechitR45Fraction_) return true;
197  if(data.r45EnergyFraction() >= pMinRBXRechitR45EnergyFraction_) return true;
198 
199  return false;
200 }
double HPDEMF(void) const
Definition: HcalNoiseAlgo.h:38
double pMaxHPDEMF_
double minLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:29
double pMinERatio_
double maxHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:34
double maxLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:30
int pMinRBXRechitR45Count_
double pMinHighEHitTime_
double r45EnergyFraction(void) const
Definition: HcalNoiseAlgo.h:43
double ratio(void) const
Definition: HcalNoiseAlgo.h:21
double RBXEMF(void) const
Definition: HcalNoiseAlgo.h:37
int numRBXHits(void) const
Definition: HcalNoiseAlgo.h:26
double pMinEZeros_
double pMinRBXRechitR45EnergyFraction_
double pMaxHighEHitTime_
double pMinRBXRechitR45Fraction_
int numHPDNoOtherHits(void) const
Definition: HcalNoiseAlgo.h:27
int numZeros(void) const
Definition: HcalNoiseAlgo.h:28
double pMaxLowEHitTime_
double pMinLowEHitTime_
int r45Count(void) const
Definition: HcalNoiseAlgo.h:41
double pMaxRBXEMF_
double energy(void) const
Definition: HcalNoiseAlgo.h:20
double minHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:33
int numHPDHits(void) const
Definition: HcalNoiseAlgo.h:25
bool validRatio(void) const
Definition: HcalNoiseAlgo.h:24
double r45Fraction(void) const
Definition: HcalNoiseAlgo.h:42
bool HcalNoiseAlgo::passEMFThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 332 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::energy(), and minEEMF_.

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

333 {
334  return (data.energy()>minEEMF_);
335 }
double energy(void) const
Definition: HcalNoiseAlgo.h:20
bool HcalNoiseAlgo::passHighLevelNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 213 of file HcalNoiseAlgo.cc.

References hlMaxHPDEMF_, hlMaxRBXEMF_, CommonHcalNoiseRBXData::HPDEMF(), passEMFThreshold(), and CommonHcalNoiseRBXData::RBXEMF().

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

214 {
215  if(passEMFThreshold(data)) {
216  if(data.HPDEMF()<hlMaxHPDEMF_) return false;
217  if(data.RBXEMF()<hlMaxRBXEMF_) return false;
218  }
219  return true;
220 }
double HPDEMF(void) const
Definition: HcalNoiseAlgo.h:38
double hlMaxRBXEMF_
double RBXEMF(void) const
Definition: HcalNoiseAlgo.h:37
bool passEMFThreshold(const CommonHcalNoiseRBXData &) const
double hlMaxHPDEMF_
bool HcalNoiseAlgo::passLooseHits ( const CommonHcalNoiseRBXData data) const

Definition at line 231 of file HcalNoiseAlgo.cc.

References lMinHPDHits_, lMinHPDNoOtherHits_, lMinRBXHits_, CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), and CommonHcalNoiseRBXData::numRBXHits().

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

232 {
233  if(data.numHPDHits()>=lMinHPDHits_) return false;
234  if(data.numRBXHits()>=lMinRBXHits_) return false;
235  if(data.numHPDNoOtherHits()>=lMinHPDNoOtherHits_) return false;
236  return true;
237 }
int numRBXHits(void) const
Definition: HcalNoiseAlgo.h:26
int numHPDNoOtherHits(void) const
Definition: HcalNoiseAlgo.h:27
int numHPDHits(void) const
Definition: HcalNoiseAlgo.h:25
bool HcalNoiseAlgo::passLooseNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 203 of file HcalNoiseAlgo.cc.

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

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

204 {
205  return (passLooseRatio(data) && passLooseHits(data) && passLooseZeros(data) && passLooseTiming(data) && passLooseRBXRechitR45(data));
206 }
bool passLooseRatio(const CommonHcalNoiseRBXData &) const
bool passLooseRBXRechitR45(const CommonHcalNoiseRBXData &) const
bool passLooseZeros(const CommonHcalNoiseRBXData &) const
bool passLooseHits(const CommonHcalNoiseRBXData &) const
bool passLooseTiming(const CommonHcalNoiseRBXData &) const
bool HcalNoiseAlgo::passLooseRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 222 of file HcalNoiseAlgo.cc.

References lMaxRatio_, lMinRatio_, passRatioThreshold(), CommonHcalNoiseRBXData::ratio(), and CommonHcalNoiseRBXData::validRatio().

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

223 {
224  if(passRatioThreshold(data)) {
225  if(data.validRatio() && data.ratio()<lMinRatio_) return false;
226  if(data.validRatio() && data.ratio()>lMaxRatio_) return false;
227  }
228  return true;
229 }
double ratio(void) const
Definition: HcalNoiseAlgo.h:21
bool passRatioThreshold(const CommonHcalNoiseRBXData &) const
bool validRatio(void) const
Definition: HcalNoiseAlgo.h:24
bool HcalNoiseAlgo::passLooseRBXRechitR45 ( const CommonHcalNoiseRBXData data) const

Definition at line 256 of file HcalNoiseAlgo.cc.

References i, lMinRBXRechitR45Cuts_, CommonHcalNoiseRBXData::r45Count(), CommonHcalNoiseRBXData::r45EnergyFraction(), and CommonHcalNoiseRBXData::r45Fraction().

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

257 {
258  int Count = data.r45Count();
259  double Fraction = data.r45Fraction();
260  double EnergyFraction = data.r45EnergyFraction();
261 
262  for(int i = 0; i + 3 < (int)lMinRBXRechitR45Cuts_.size(); i = i + 4)
263  {
264  double Value = Count * lMinRBXRechitR45Cuts_[i] + Fraction * lMinRBXRechitR45Cuts_[i+1] + EnergyFraction * lMinRBXRechitR45Cuts_[i+2] + lMinRBXRechitR45Cuts_[i+3];
265  if(Value > 0)
266  return false;
267  }
268 
269  return true;
270 }
int i
Definition: DBlmapReader.cc:9
std::vector< double > lMinRBXRechitR45Cuts_
double r45EnergyFraction(void) const
Definition: HcalNoiseAlgo.h:43
reco::JetExtendedAssociation::JetExtendedData Value
int r45Count(void) const
Definition: HcalNoiseAlgo.h:41
double r45Fraction(void) const
Definition: HcalNoiseAlgo.h:42
bool HcalNoiseAlgo::passLooseTiming ( const CommonHcalNoiseRBXData data) const

Definition at line 247 of file HcalNoiseAlgo.cc.

References lMaxHighEHitTime_, lMaxLowEHitTime_, lMinHighEHitTime_, lMinLowEHitTime_, CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), and CommonHcalNoiseRBXData::minLowEHitTime().

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

248 {
249  if(data.minLowEHitTime()<lMinLowEHitTime_) return false;
250  if(data.maxLowEHitTime()>lMaxLowEHitTime_) return false;
251  if(data.minHighEHitTime()<lMinHighEHitTime_) return false;
252  if(data.maxHighEHitTime()>lMaxHighEHitTime_) return false;
253  return true;
254 }
double minLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:29
double maxHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:34
double maxLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:30
double lMaxHighEHitTime_
double lMinLowEHitTime_
double minHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:33
double lMaxLowEHitTime_
double lMinHighEHitTime_
bool HcalNoiseAlgo::passLooseZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 239 of file HcalNoiseAlgo.cc.

References lMinZeros_, CommonHcalNoiseRBXData::numZeros(), and passZerosThreshold().

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

240 {
241  if(passZerosThreshold(data)) {
242  if(data.numZeros()>=lMinZeros_) return false;
243  }
244  return true;
245 }
int numZeros(void) const
Definition: HcalNoiseAlgo.h:28
bool passZerosThreshold(const CommonHcalNoiseRBXData &) const
bool HcalNoiseAlgo::passRatioThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 322 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::energy(), and minERatio_.

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

323 {
324  return (data.energy()>minERatio_);
325 }
double energy(void) const
Definition: HcalNoiseAlgo.h:20
bool HcalNoiseAlgo::passTightHits ( const CommonHcalNoiseRBXData data) const

Definition at line 281 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), CommonHcalNoiseRBXData::numRBXHits(), tMinHPDHits_, tMinHPDNoOtherHits_, and tMinRBXHits_.

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

282 {
283  if(data.numHPDHits()>=tMinHPDHits_) return false;
284  if(data.numRBXHits()>=tMinRBXHits_) return false;
285  if(data.numHPDNoOtherHits()>=tMinHPDNoOtherHits_) return false;
286  return true;
287 }
int numRBXHits(void) const
Definition: HcalNoiseAlgo.h:26
int numHPDNoOtherHits(void) const
Definition: HcalNoiseAlgo.h:27
int numHPDHits(void) const
Definition: HcalNoiseAlgo.h:25
bool HcalNoiseAlgo::passTightNoiseFilter ( const CommonHcalNoiseRBXData data) const

Definition at line 208 of file HcalNoiseAlgo.cc.

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

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

209 {
210  return (passTightRatio(data) && passTightHits(data) && passTightZeros(data) && passTightTiming(data) && passTightRBXRechitR45(data));
211 }
bool passTightRatio(const CommonHcalNoiseRBXData &) const
bool passTightRBXRechitR45(const CommonHcalNoiseRBXData &) const
bool passTightTiming(const CommonHcalNoiseRBXData &) const
bool passTightZeros(const CommonHcalNoiseRBXData &) const
bool passTightHits(const CommonHcalNoiseRBXData &) const
bool HcalNoiseAlgo::passTightRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 272 of file HcalNoiseAlgo.cc.

References passRatioThreshold(), CommonHcalNoiseRBXData::ratio(), tMaxRatio_, tMinRatio_, and CommonHcalNoiseRBXData::validRatio().

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

273 {
274  if(passRatioThreshold(data)) {
275  if(data.validRatio() && data.ratio()<tMinRatio_) return false;
276  if(data.validRatio() && data.ratio()>tMaxRatio_) return false;
277  }
278  return true;
279 }
double ratio(void) const
Definition: HcalNoiseAlgo.h:21
bool passRatioThreshold(const CommonHcalNoiseRBXData &) const
bool validRatio(void) const
Definition: HcalNoiseAlgo.h:24
bool HcalNoiseAlgo::passTightRBXRechitR45 ( const CommonHcalNoiseRBXData data) const

Definition at line 306 of file HcalNoiseAlgo.cc.

References i, CommonHcalNoiseRBXData::r45Count(), CommonHcalNoiseRBXData::r45EnergyFraction(), CommonHcalNoiseRBXData::r45Fraction(), and tMinRBXRechitR45Cuts_.

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

307 {
308  int Count = data.r45Count();
309  double Fraction = data.r45Fraction();
310  double EnergyFraction = data.r45EnergyFraction();
311 
312  for(int i = 0; i + 3 < (int)tMinRBXRechitR45Cuts_.size(); i = i + 4)
313  {
314  double Value = Count * tMinRBXRechitR45Cuts_[i] + Fraction * tMinRBXRechitR45Cuts_[i+1] + EnergyFraction * tMinRBXRechitR45Cuts_[i+2] + tMinRBXRechitR45Cuts_[i+3];
315  if(Value > 0)
316  return false;
317  }
318 
319  return true;
320 }
int i
Definition: DBlmapReader.cc:9
double r45EnergyFraction(void) const
Definition: HcalNoiseAlgo.h:43
std::vector< double > tMinRBXRechitR45Cuts_
reco::JetExtendedAssociation::JetExtendedData Value
int r45Count(void) const
Definition: HcalNoiseAlgo.h:41
double r45Fraction(void) const
Definition: HcalNoiseAlgo.h:42
bool HcalNoiseAlgo::passTightTiming ( const CommonHcalNoiseRBXData data) const

Definition at line 297 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), CommonHcalNoiseRBXData::minLowEHitTime(), tMaxHighEHitTime_, tMaxLowEHitTime_, tMinHighEHitTime_, and tMinLowEHitTime_.

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

298 {
299  if(data.minLowEHitTime()<tMinLowEHitTime_) return false;
300  if(data.maxLowEHitTime()>tMaxLowEHitTime_) return false;
301  if(data.minHighEHitTime()<tMinHighEHitTime_) return false;
302  if(data.maxHighEHitTime()>tMaxHighEHitTime_) return false;
303  return true;
304 }
double minLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:29
double maxHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:34
double maxLowEHitTime(void) const
Definition: HcalNoiseAlgo.h:30
double tMaxHighEHitTime_
double tMinHighEHitTime_
double tMinLowEHitTime_
double minHighEHitTime(void) const
Definition: HcalNoiseAlgo.h:33
double tMaxLowEHitTime_
bool HcalNoiseAlgo::passTightZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 289 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::numZeros(), passZerosThreshold(), and tMinZeros_.

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

290 {
291  if(passZerosThreshold(data)) {
292  if(data.numZeros()>=tMinZeros_) return false;
293  }
294  return true;
295 }
int numZeros(void) const
Definition: HcalNoiseAlgo.h:28
bool passZerosThreshold(const CommonHcalNoiseRBXData &) const
bool HcalNoiseAlgo::passZerosThreshold ( const CommonHcalNoiseRBXData data) const

Definition at line 327 of file HcalNoiseAlgo.cc.

References CommonHcalNoiseRBXData::energy(), and minEZeros_.

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

328 {
329  return (data.energy()>minEZeros_);
330 }
double energy(void) const
Definition: HcalNoiseAlgo.h:20

Member Data Documentation

double HcalNoiseAlgo::hlMaxHPDEMF_
private

Definition at line 172 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

double HcalNoiseAlgo::hlMaxRBXEMF_
private

Definition at line 173 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

double HcalNoiseAlgo::lMaxHighEHitTime_
private

Definition at line 153 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

double HcalNoiseAlgo::lMaxLowEHitTime_
private

Definition at line 151 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

double HcalNoiseAlgo::lMaxRatio_
private

Definition at line 145 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

double HcalNoiseAlgo::lMinHighEHitTime_
private

Definition at line 152 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

int HcalNoiseAlgo::lMinHPDHits_
private

Definition at line 146 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

int HcalNoiseAlgo::lMinHPDNoOtherHits_
private

Definition at line 148 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

double HcalNoiseAlgo::lMinLowEHitTime_
private

Definition at line 150 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

double HcalNoiseAlgo::lMinRatio_
private

Definition at line 144 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

int HcalNoiseAlgo::lMinRBXHits_
private

Definition at line 147 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

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

Definition at line 154 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRBXRechitR45().

int HcalNoiseAlgo::lMinZeros_
private

Definition at line 149 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseZeros().

double HcalNoiseAlgo::minEEMF_
private

Definition at line 121 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passEMFThreshold().

double HcalNoiseAlgo::minERatio_
private

Definition at line 119 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passRatioThreshold().

double HcalNoiseAlgo::minEZeros_
private

Definition at line 120 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passZerosThreshold().

double HcalNoiseAlgo::pMaxHighEHitTime_
private

Definition at line 135 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxHPDEMF_
private

Definition at line 136 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxLowEHitTime_
private

Definition at line 133 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxRatio_
private

Definition at line 127 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxRBXEMF_
private

Definition at line 137 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinE_
private

Definition at line 125 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinEEMF_
private

Definition at line 116 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinERatio_
private

Definition at line 114 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinEZeros_
private

Definition at line 115 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinHighEHitTime_
private

Definition at line 134 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

int HcalNoiseAlgo::pMinHPDHits_
private

Definition at line 128 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

int HcalNoiseAlgo::pMinHPDNoOtherHits_
private

Definition at line 130 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinLowEHitTime_
private

Definition at line 132 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinRatio_
private

Definition at line 126 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

int HcalNoiseAlgo::pMinRBXHits_
private

Definition at line 129 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

int HcalNoiseAlgo::pMinRBXRechitR45Count_
private

Definition at line 138 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinRBXRechitR45EnergyFraction_
private

Definition at line 140 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinRBXRechitR45Fraction_
private

Definition at line 139 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

int HcalNoiseAlgo::pMinZeros_
private

Definition at line 131 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::tMaxHighEHitTime_
private

Definition at line 167 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

double HcalNoiseAlgo::tMaxLowEHitTime_
private

Definition at line 165 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

double HcalNoiseAlgo::tMaxRatio_
private

Definition at line 159 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

double HcalNoiseAlgo::tMinHighEHitTime_
private

Definition at line 166 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

int HcalNoiseAlgo::tMinHPDHits_
private

Definition at line 160 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

int HcalNoiseAlgo::tMinHPDNoOtherHits_
private

Definition at line 162 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

double HcalNoiseAlgo::tMinLowEHitTime_
private

Definition at line 164 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

double HcalNoiseAlgo::tMinRatio_
private

Definition at line 158 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

int HcalNoiseAlgo::tMinRBXHits_
private

Definition at line 161 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

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

Definition at line 168 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRBXRechitR45().

int HcalNoiseAlgo::tMinZeros_
private

Definition at line 163 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightZeros().