CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

reco::HcalNoiseHPD Class Reference

#include <HcalNoiseHPD.h>

List of all members.

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

Detailed Description

Definition at line 54 of file HcalNoiseHPD.h.


Constructor & Destructor Documentation

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.

{
}

Member Function Documentation

const std::vector< float > HcalNoiseHPD::big5Charge ( void  ) const

Definition at line 67 of file HcalNoiseHPD.cc.

References big5Charge_.

{
  return big5Charge_;
}
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

Definition at line 37 of file HcalNoiseHPD.cc.

References bigCharge_.

{
  return bigCharge_;
}
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
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
const edm::RefVector< CaloTowerCollection > HcalNoiseHPD::caloTowers ( void  ) const

Definition at line 152 of file HcalNoiseHPD.cc.

References calotowers_.

{
  return calotowers_;
}
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.

{
  float maxtime=-9999999;
  for(edm::RefVector<HBHERecHitCollection>::const_iterator it=rechits_.begin(); it!=rechits_.end(); ++it) {
    if((*it)->energy()<threshold) continue;
    float time=(*it)->time();
    if(maxtime<time) maxtime=time;
  }
  return maxtime;
}
int HcalNoiseHPD::maxZeros ( void  ) const

Definition at line 102 of file HcalNoiseHPD.cc.

References maxZeros_.

{
  return maxZeros_;
}
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.

{
  float mintime=9999999;
  for(edm::RefVector<HBHERecHitCollection>::const_iterator it=rechits_.begin(); it!=rechits_.end(); ++it) {
    if((*it)->energy()<threshold) continue;
    float time=(*it)->time();
    if(mintime>time) mintime=time;
  }
  return mintime;
}
int HcalNoiseHPD::numRecHits ( float  threshold = 1.5) const
float HcalNoiseHPD::recHitEnergy ( float  threshold = 1.5) const
const edm::RefVector< HBHERecHitCollection > HcalNoiseHPD::recHits ( void  ) const

Definition at line 107 of file HcalNoiseHPD.cc.

References rechits_.

{
  return rechits_;
}
int HcalNoiseHPD::totalZeros ( void  ) const

Definition at line 97 of file HcalNoiseHPD.cc.

References totalZeros_.

{
  return totalZeros_;
}

Friends And Related Function Documentation

friend class HcalNoiseInfoProducer [friend]

Definition at line 55 of file HcalNoiseHPD.h.

friend class HcalNoiseRBXArray [friend]

Definition at line 56 of file HcalNoiseHPD.h.


Member Data Documentation

std::vector<float> reco::HcalNoiseHPD::big5Charge_ [private]
std::vector<float> reco::HcalNoiseHPD::bigCharge_ [private]

Definition at line 129 of file HcalNoiseHPD.h.

Referenced by idnumber().

Definition at line 133 of file HcalNoiseHPD.h.

Referenced by reco::HcalNoiseInfoProducer::filldigis(), and maxZeros().

Definition at line 142 of file HcalNoiseHPD.h.

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

Definition at line 132 of file HcalNoiseHPD.h.

Referenced by reco::HcalNoiseInfoProducer::filldigis(), and totalZeros().