CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalNoiseAlgo Class Reference

#include <HcalNoiseAlgo.h>

List of all members.

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 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 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_
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 pMinZeros_
double tMaxHighEHitTime_
double tMaxLowEHitTime_
double tMaxRatio_
double tMinHighEHitTime_
int tMinHPDHits_
int tMinHPDNoOtherHits_
double tMinLowEHitTime_
double tMinRatio_
int tMinRBXHits_
int tMinZeros_

Detailed Description

Definition at line 69 of file HcalNoiseAlgo.h.


Constructor & Destructor Documentation

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

Definition at line 91 of file HcalNoiseAlgo.cc.

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

{
  pMinERatio_ = iConfig.getParameter<double>("pMinERatio");
  pMinEZeros_ = iConfig.getParameter<double>("pMinEZeros");
  pMinEEMF_ = iConfig.getParameter<double>("pMinEEMF");

  minERatio_ = iConfig.getParameter<double>("minERatio");
  minEZeros_ = iConfig.getParameter<double>("minEZeros");
  minEEMF_ = iConfig.getParameter<double>("minEEMF");  

  pMinE_ = iConfig.getParameter<double>("pMinE");
  pMinRatio_ = iConfig.getParameter<double>("pMinRatio");
  pMaxRatio_ = iConfig.getParameter<double>("pMaxRatio");
  pMinHPDHits_ = iConfig.getParameter<int>("pMinHPDHits");
  pMinRBXHits_ = iConfig.getParameter<int>("pMinRBXHits");
  pMinHPDNoOtherHits_ = iConfig.getParameter<int>("pMinHPDNoOtherHits");
  pMinZeros_ = iConfig.getParameter<int>("pMinZeros");
  pMinLowEHitTime_ = iConfig.getParameter<double>("pMinLowEHitTime");
  pMaxLowEHitTime_ = iConfig.getParameter<double>("pMaxLowEHitTime");
  pMinHighEHitTime_ = iConfig.getParameter<double>("pMinHighEHitTime");
  pMaxHighEHitTime_ = iConfig.getParameter<double>("pMaxHighEHitTime");
  pMaxHPDEMF_ = iConfig.getParameter<double>("pMaxHPDEMF");
  pMaxRBXEMF_ = iConfig.getParameter<double>("pMaxRBXEMF");

  lMinRatio_ = iConfig.getParameter<double>("lMinRatio");
  lMaxRatio_ = iConfig.getParameter<double>("lMaxRatio");
  lMinHPDHits_ = iConfig.getParameter<int>("lMinHPDHits");
  lMinRBXHits_ = iConfig.getParameter<int>("lMinRBXHits");
  lMinHPDNoOtherHits_ = iConfig.getParameter<int>("lMinHPDNoOtherHits");
  lMinZeros_ = iConfig.getParameter<int>("lMinZeros");
  lMinLowEHitTime_ = iConfig.getParameter<double>("lMinLowEHitTime");
  lMaxLowEHitTime_ = iConfig.getParameter<double>("lMaxLowEHitTime");
  lMinHighEHitTime_ = iConfig.getParameter<double>("lMinHighEHitTime");
  lMaxHighEHitTime_ = iConfig.getParameter<double>("lMaxHighEHitTime");

  tMinRatio_ = iConfig.getParameter<double>("tMinRatio");
  tMaxRatio_ = iConfig.getParameter<double>("tMaxRatio");
  tMinHPDHits_ = iConfig.getParameter<int>("tMinHPDHits");
  tMinRBXHits_ = iConfig.getParameter<int>("tMinRBXHits");
  tMinHPDNoOtherHits_ = iConfig.getParameter<int>("tMinHPDNoOtherHits");
  tMinZeros_ = iConfig.getParameter<int>("tMinZeros");
  tMinLowEHitTime_ = iConfig.getParameter<double>("tMinLowEHitTime");
  tMaxLowEHitTime_ = iConfig.getParameter<double>("tMaxLowEHitTime");
  tMinHighEHitTime_ = iConfig.getParameter<double>("tMinHighEHitTime");
  tMaxHighEHitTime_ = iConfig.getParameter<double>("tMaxHighEHitTime");

  hlMaxHPDEMF_ = iConfig.getParameter<double>("hlMaxHPDEMF");
  hlMaxRBXEMF_ = iConfig.getParameter<double>("hlMaxRBXEMF");
}
virtual HcalNoiseAlgo::~HcalNoiseAlgo ( ) [inline, virtual]

Definition at line 74 of file HcalNoiseAlgo.h.

{}

Member Function Documentation

bool HcalNoiseAlgo::isProblematic ( const CommonHcalNoiseRBXData data) const

Definition at line 141 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_, pMinZeros_, CommonHcalNoiseRBXData::ratio(), CommonHcalNoiseRBXData::RBXEMF(), and CommonHcalNoiseRBXData::validRatio().

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

{
  if(data.energy()>pMinE_) return true;
  if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()<pMinRatio_) return true;
  if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()>pMaxRatio_) return true;
  if(data.numHPDHits()>=pMinHPDHits_) return true;
  if(data.numRBXHits()>=pMinRBXHits_) return true;
  if(data.numHPDNoOtherHits()>=pMinHPDNoOtherHits_) return true;
  if(data.numZeros()>=pMinZeros_ && data.energy()>pMinEZeros_) return true;
  if(data.minLowEHitTime()<pMinLowEHitTime_) return true;
  if(data.maxLowEHitTime()>pMaxLowEHitTime_) return true;
  if(data.minHighEHitTime()<pMinHighEHitTime_) return true;
  if(data.maxHighEHitTime()>pMaxHighEHitTime_) return true;
  if(data.HPDEMF()<pMaxHPDEMF_ && data.energy()>pMinEEMF_) return true;
  if(data.RBXEMF()<pMaxRBXEMF_ && data.energy()>pMinEEMF_) return true;  return false;
}
bool HcalNoiseAlgo::passEMFThreshold ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passHighLevelNoiseFilter ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passLooseHits ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passLooseNoiseFilter ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passLooseRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 178 of file HcalNoiseAlgo.cc.

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

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

{
  if(passRatioThreshold(data)) {
    if(data.validRatio() && data.ratio()<lMinRatio_) return false;
    if(data.validRatio() && data.ratio()>lMaxRatio_) return false;
  }
  return true;
}
bool HcalNoiseAlgo::passLooseTiming ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passLooseZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 195 of file HcalNoiseAlgo.cc.

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

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

{
  if(passZerosThreshold(data)) {
    if(data.numZeros()>=lMinZeros_) return false;
  }
  return true;
}
bool HcalNoiseAlgo::passRatioThreshold ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passTightHits ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passTightNoiseFilter ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passTightRatio ( const CommonHcalNoiseRBXData data) const

Definition at line 212 of file HcalNoiseAlgo.cc.

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

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

{
  if(passRatioThreshold(data)) {
    if(data.validRatio() && data.ratio()<tMinRatio_) return false;
    if(data.validRatio() && data.ratio()>tMaxRatio_) return false;
  }
  return true;
}
bool HcalNoiseAlgo::passTightTiming ( const CommonHcalNoiseRBXData data) const
bool HcalNoiseAlgo::passTightZeros ( const CommonHcalNoiseRBXData data) const

Definition at line 229 of file HcalNoiseAlgo.cc.

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

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

{
  if(passZerosThreshold(data)) {
    if(data.numZeros()>=tMinZeros_) return false;
  }
  return true;
}
bool HcalNoiseAlgo::passZerosThreshold ( const CommonHcalNoiseRBXData data) const

Member Data Documentation

double HcalNoiseAlgo::hlMaxHPDEMF_ [private]

Definition at line 159 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

double HcalNoiseAlgo::hlMaxRBXEMF_ [private]

Definition at line 160 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().

Definition at line 142 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

Definition at line 140 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

double HcalNoiseAlgo::lMaxRatio_ [private]

Definition at line 134 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

Definition at line 141 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

Definition at line 135 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

Definition at line 137 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

Definition at line 139 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseTiming().

double HcalNoiseAlgo::lMinRatio_ [private]

Definition at line 133 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseRatio().

Definition at line 136 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseHits().

Definition at line 138 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passLooseZeros().

double HcalNoiseAlgo::minEEMF_ [private]

Definition at line 113 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passEMFThreshold().

double HcalNoiseAlgo::minERatio_ [private]

Definition at line 111 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passRatioThreshold().

double HcalNoiseAlgo::minEZeros_ [private]

Definition at line 112 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passZerosThreshold().

Definition at line 127 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxHPDEMF_ [private]

Definition at line 128 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 125 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxRatio_ [private]

Definition at line 119 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMaxRBXEMF_ [private]

Definition at line 129 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinE_ [private]

Definition at line 117 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinEEMF_ [private]

Definition at line 108 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinERatio_ [private]

Definition at line 106 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinEZeros_ [private]

Definition at line 107 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 126 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 120 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 122 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 124 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

double HcalNoiseAlgo::pMinRatio_ [private]

Definition at line 118 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 121 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 123 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and isProblematic().

Definition at line 155 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

Definition at line 153 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

double HcalNoiseAlgo::tMaxRatio_ [private]

Definition at line 147 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

Definition at line 154 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

Definition at line 148 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

Definition at line 150 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

Definition at line 152 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightTiming().

double HcalNoiseAlgo::tMinRatio_ [private]

Definition at line 146 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightRatio().

Definition at line 149 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightHits().

Definition at line 151 of file HcalNoiseAlgo.h.

Referenced by HcalNoiseAlgo(), and passTightZeros().