#include <HcalNoiseHPD.h>
Public Member Functions | |
const std::vector< float > | big5Charge (void) const |
float | big5ChargeHighest2TS (unsigned int firstts=4) const |
float | big5ChargeHighest3TS (unsigned int firstts=4) const |
float | big5ChargeTotal (void) const |
const std::vector< float > | bigCharge (void) const |
float | bigChargeHighest2TS (unsigned int firstts=4) const |
float | bigChargeHighest3TS (unsigned int firstts=4) const |
float | bigChargeTotal (void) const |
double | caloTowerEmE (void) const |
double | caloTowerEmFraction (void) const |
double | caloTowerHadE (void) const |
const edm::RefVector < CaloTowerCollection > | caloTowers (void) const |
double | caloTowerTotalE (void) const |
HcalNoiseHPD () | |
int | idnumber (void) const |
float | maxRecHitTime (float threshold=10.0) const |
int | maxZeros (void) const |
float | minRecHitTime (float threshold=10.0) const |
int | numRecHits (float threshold=1.5) const |
float | recHitEnergy (float threshold=1.5) const |
const edm::RefVector < HBHERecHitCollection > | recHits (void) const |
int | totalZeros (void) const |
virtual | ~HcalNoiseHPD () |
Private Attributes | |
std::vector< float > | big5Charge_ |
std::vector< float > | bigCharge_ |
edm::RefVector < CaloTowerCollection > | calotowers_ |
int | idnumber_ |
int | maxZeros_ |
edm::RefVector < HBHERecHitCollection > | rechits_ |
std::set< edm::Ref < HBHERecHitCollection > , RefHBHERecHitEnergyComparison > | refrechitset_ |
int | totalZeros_ |
Friends | |
class | HcalNoiseInfoProducer |
class | HcalNoiseRBXArray |
Definition at line 54 of file HcalNoiseHPD.h.
HcalNoiseHPD::HcalNoiseHPD | ( | ) |
Definition at line 16 of file HcalNoiseHPD.cc.
References calotowers_, rechits_, and edm::RefVector< C, T, F >::reserve().
: idnumber_(0), totalZeros_(0), maxZeros_(0), bigCharge_(HBHEDataFrame::MAXSAMPLES, 0.0), big5Charge_(HBHEDataFrame::MAXSAMPLES, 0.0) { // reserve some space, so that there's no reallocation issues rechits_.reserve(19); calotowers_.reserve(19); }
HcalNoiseHPD::~HcalNoiseHPD | ( | ) | [virtual] |
Definition at line 27 of file HcalNoiseHPD.cc.
{ }
const std::vector< float > HcalNoiseHPD::big5Charge | ( | void | ) | const |
float HcalNoiseHPD::big5ChargeHighest2TS | ( | unsigned int | firstts = 4 | ) | const |
Definition at line 81 of file HcalNoiseHPD.cc.
References big5Charge_, i, and pileupDistInMC::total.
Referenced by HcalNoiseMonitor::analyze().
{ float total=0; for(unsigned int i=firstts; i<firstts+2 && i<big5Charge_.size(); i++) total += big5Charge_[i]; return total; }
float HcalNoiseHPD::big5ChargeHighest3TS | ( | unsigned int | firstts = 4 | ) | const |
Definition at line 89 of file HcalNoiseHPD.cc.
References big5Charge_, i, and pileupDistInMC::total.
{ float total=0; for(unsigned int i=firstts; i<firstts+2 && i<big5Charge_.size(); i++) total += big5Charge_[i]; return total; }
float HcalNoiseHPD::big5ChargeTotal | ( | void | ) | const |
Definition at line 72 of file HcalNoiseHPD.cc.
References big5Charge_, i, and pileupDistInMC::total.
Referenced by HcalNoiseMonitor::analyze().
{ float total=0; for(unsigned int i=0; i<big5Charge_.size(); i++) { total += big5Charge_[i]; } return total; }
const std::vector< float > HcalNoiseHPD::bigCharge | ( | void | ) | const |
float HcalNoiseHPD::bigChargeHighest2TS | ( | unsigned int | firstts = 4 | ) | const |
Definition at line 51 of file HcalNoiseHPD.cc.
References bigCharge_, i, and pileupDistInMC::total.
Referenced by HcalNoiseMonitor::analyze().
{ float total=0; for(unsigned int i=firstts; i<firstts+2 && i<bigCharge_.size(); i++) total += bigCharge_[i]; return total; }
float HcalNoiseHPD::bigChargeHighest3TS | ( | unsigned int | firstts = 4 | ) | const |
Definition at line 59 of file HcalNoiseHPD.cc.
References bigCharge_, i, and pileupDistInMC::total.
{ float total=0; for(unsigned int i=firstts; i<firstts+3 && i<bigCharge_.size(); i++) total += bigCharge_[i]; return total; }
float HcalNoiseHPD::bigChargeTotal | ( | void | ) | const |
Definition at line 42 of file HcalNoiseHPD.cc.
References bigCharge_, i, and pileupDistInMC::total.
Referenced by HcalNoiseMonitor::analyze().
{ float total=0; for(unsigned int i=0; i<bigCharge_.size(); i++) { total += bigCharge_[i]; } return total; }
double HcalNoiseHPD::caloTowerEmE | ( | void | ) | const |
Definition at line 165 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), calotowers_, edm::RefVector< C, T, F >::end(), and pileupDistInMC::total.
{ double total=0; for(edm::RefVector<CaloTowerCollection>::const_iterator it=calotowers_.begin(); it!=calotowers_.end(); ++it) total += (*it)->emEnergy(); return total; }
double HcalNoiseHPD::caloTowerEmFraction | ( | void | ) | const |
Definition at line 181 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), calotowers_, edm::RefVector< C, T, F >::end(), and h.
{ double h=0, e=0; for(edm::RefVector<CaloTowerCollection>::const_iterator it=calotowers_.begin(); it!=calotowers_.end(); ++it) { e += (*it)->emEnergy(); h += (*it)->hadEnergy(); } return (e+h)!=0 ? e/(e+h) : 999.; }
double HcalNoiseHPD::caloTowerHadE | ( | void | ) | const |
Definition at line 157 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), calotowers_, edm::RefVector< C, T, F >::end(), and pileupDistInMC::total.
{ double total=0; for(edm::RefVector<CaloTowerCollection>::const_iterator it=calotowers_.begin(); it!=calotowers_.end(); ++it) total += (*it)->hadEnergy(); return total; }
const edm::RefVector< CaloTowerCollection > HcalNoiseHPD::caloTowers | ( | void | ) | const |
double HcalNoiseHPD::caloTowerTotalE | ( | void | ) | const |
Definition at line 173 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), calotowers_, edm::RefVector< C, T, F >::end(), and pileupDistInMC::total.
{ double total=0; for(edm::RefVector<CaloTowerCollection>::const_iterator it=calotowers_.begin(); it!=calotowers_.end(); ++it) total += (*it)->emEnergy()+(*it)->hadEnergy(); return total; }
int HcalNoiseHPD::idnumber | ( | void | ) | const |
Definition at line 32 of file HcalNoiseHPD.cc.
References idnumber_.
Referenced by HcalNoiseMonitor::analyze().
{ return idnumber_; }
float HcalNoiseHPD::maxRecHitTime | ( | float | threshold = 10.0 | ) | const |
Definition at line 133 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), rechits_, dtT0WireCalibration_cfg::threshold, and cond::rpcobgas::time.
int HcalNoiseHPD::maxZeros | ( | void | ) | const |
float HcalNoiseHPD::minRecHitTime | ( | float | threshold = 10.0 | ) | const |
Definition at line 122 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), rechits_, dtT0WireCalibration_cfg::threshold, and cond::rpcobgas::time.
int HcalNoiseHPD::numRecHits | ( | float | threshold = 1.5 | ) | const |
Definition at line 144 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), prof2calltree::count, edm::RefVector< C, T, F >::end(), rechits_, and dtT0WireCalibration_cfg::threshold.
Referenced by HcalNoiseMonitor::analyze().
float HcalNoiseHPD::recHitEnergy | ( | float | threshold = 1.5 | ) | const |
Definition at line 112 of file HcalNoiseHPD.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), relval_parameters_module::energy, rechits_, and pileupDistInMC::total.
Referenced by HcalNoiseMonitor::analyze().
const edm::RefVector< HBHERecHitCollection > HcalNoiseHPD::recHits | ( | void | ) | const |
int HcalNoiseHPD::totalZeros | ( | void | ) | const |
friend class HcalNoiseInfoProducer [friend] |
Definition at line 55 of file HcalNoiseHPD.h.
friend class HcalNoiseRBXArray [friend] |
Definition at line 56 of file HcalNoiseHPD.h.
std::vector<float> reco::HcalNoiseHPD::big5Charge_ [private] |
Definition at line 135 of file HcalNoiseHPD.h.
Referenced by big5Charge(), big5ChargeHighest2TS(), big5ChargeHighest3TS(), big5ChargeTotal(), and reco::HcalNoiseInfoProducer::filldigis().
std::vector<float> reco::HcalNoiseHPD::bigCharge_ [private] |
Definition at line 134 of file HcalNoiseHPD.h.
Referenced by bigCharge(), bigChargeHighest2TS(), bigChargeHighest3TS(), bigChargeTotal(), and reco::HcalNoiseInfoProducer::filldigis().
Definition at line 145 of file HcalNoiseHPD.h.
Referenced by caloTowerEmE(), caloTowerEmFraction(), caloTowerHadE(), caloTowers(), caloTowerTotalE(), and HcalNoiseHPD().
int reco::HcalNoiseHPD::idnumber_ [private] |
Definition at line 129 of file HcalNoiseHPD.h.
Referenced by idnumber().
int reco::HcalNoiseHPD::maxZeros_ [private] |
Definition at line 133 of file HcalNoiseHPD.h.
Referenced by reco::HcalNoiseInfoProducer::filldigis(), and maxZeros().
Definition at line 138 of file HcalNoiseHPD.h.
Referenced by reco::HcalNoiseInfoProducer::filldigis(), HcalNoiseHPD(), maxRecHitTime(), minRecHitTime(), numRecHits(), recHitEnergy(), and recHits().
std::set<edm::Ref<HBHERecHitCollection>, RefHBHERecHitEnergyComparison> reco::HcalNoiseHPD::refrechitset_ [private] |
Definition at line 142 of file HcalNoiseHPD.h.
Referenced by reco::HcalNoiseInfoProducer::fillrechits().
int reco::HcalNoiseHPD::totalZeros_ [private] |
Definition at line 132 of file HcalNoiseHPD.h.
Referenced by reco::HcalNoiseInfoProducer::filldigis(), and totalZeros().