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 | Friends
reco::HcalNoiseHPD Class Reference

#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
 

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_, and rechits_.

17  : idnumber_(0), totalZeros_(0), maxZeros_(0),
20 {
21  // reserve some space, so that there's no reallocation issues
22  rechits_.reserve(19);
23  calotowers_.reserve(19);
24 }
static const int MAXSAMPLES
Definition: HBHEDataFrame.h:54
std::vector< float > bigCharge_
Definition: HcalNoiseHPD.h:134
std::vector< float > big5Charge_
Definition: HcalNoiseHPD.h:135
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
HcalNoiseHPD::~HcalNoiseHPD ( )
virtual

Definition at line 27 of file HcalNoiseHPD.cc.

28 {
29 }

Member Function Documentation

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

Definition at line 67 of file HcalNoiseHPD.cc.

References big5Charge_.

68 {
69  return big5Charge_;
70 }
std::vector< float > big5Charge_
Definition: HcalNoiseHPD.h:135
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().

82 {
83  float total=0;
84  for(unsigned int i=firstts; i<firstts+2 && i<big5Charge_.size(); i++)
85  total += big5Charge_[i];
86  return total;
87 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > big5Charge_
Definition: HcalNoiseHPD.h:135
float HcalNoiseHPD::big5ChargeHighest3TS ( unsigned int  firstts = 4) const

Definition at line 89 of file HcalNoiseHPD.cc.

References big5Charge_, i, and pileupDistInMC::total.

90 {
91  float total=0;
92  for(unsigned int i=firstts; i<firstts+2 && i<big5Charge_.size(); i++)
93  total += big5Charge_[i];
94  return total;
95 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > big5Charge_
Definition: HcalNoiseHPD.h:135
float HcalNoiseHPD::big5ChargeTotal ( void  ) const

Definition at line 72 of file HcalNoiseHPD.cc.

References big5Charge_, i, and pileupDistInMC::total.

Referenced by HcalNoiseMonitor::analyze().

73 {
74  float total=0;
75  for(unsigned int i=0; i<big5Charge_.size(); i++) {
76  total += big5Charge_[i];
77  }
78  return total;
79 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > big5Charge_
Definition: HcalNoiseHPD.h:135
const std::vector< float > HcalNoiseHPD::bigCharge ( void  ) const

Definition at line 37 of file HcalNoiseHPD.cc.

References bigCharge_.

38 {
39  return bigCharge_;
40 }
std::vector< float > bigCharge_
Definition: HcalNoiseHPD.h:134
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().

52 {
53  float total=0;
54  for(unsigned int i=firstts; i<firstts+2 && i<bigCharge_.size(); i++)
55  total += bigCharge_[i];
56  return total;
57 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > bigCharge_
Definition: HcalNoiseHPD.h:134
float HcalNoiseHPD::bigChargeHighest3TS ( unsigned int  firstts = 4) const

Definition at line 59 of file HcalNoiseHPD.cc.

References bigCharge_, i, and pileupDistInMC::total.

60 {
61  float total=0;
62  for(unsigned int i=firstts; i<firstts+3 && i<bigCharge_.size(); i++)
63  total += bigCharge_[i];
64  return total;
65 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > bigCharge_
Definition: HcalNoiseHPD.h:134
float HcalNoiseHPD::bigChargeTotal ( void  ) const

Definition at line 42 of file HcalNoiseHPD.cc.

References bigCharge_, i, and pileupDistInMC::total.

Referenced by HcalNoiseMonitor::analyze().

43 {
44  float total=0;
45  for(unsigned int i=0; i<bigCharge_.size(); i++) {
46  total += bigCharge_[i];
47  }
48  return total;
49 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > bigCharge_
Definition: HcalNoiseHPD.h:134
double HcalNoiseHPD::caloTowerEmE ( void  ) const

Definition at line 165 of file HcalNoiseHPD.cc.

References calotowers_, and pileupDistInMC::total.

166 {
167  double total=0;
169  total += (*it)->emEnergy();
170  return total;
171 }
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
double HcalNoiseHPD::caloTowerEmFraction ( void  ) const

Definition at line 181 of file HcalNoiseHPD.cc.

References calotowers_, alignCSCRings::e, and h.

182 {
183  double h=0, e=0;
185  e += (*it)->emEnergy();
186  h += (*it)->hadEnergy();
187  }
188  return (e+h)!=0 ? e/(e+h) : 999.;
189 }
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
double HcalNoiseHPD::caloTowerHadE ( void  ) const

Definition at line 157 of file HcalNoiseHPD.cc.

References calotowers_, and pileupDistInMC::total.

158 {
159  double total=0;
161  total += (*it)->hadEnergy();
162  return total;
163 }
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
const edm::RefVector< CaloTowerCollection > HcalNoiseHPD::caloTowers ( void  ) const

Definition at line 152 of file HcalNoiseHPD.cc.

References calotowers_.

153 {
154  return calotowers_;
155 }
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
double HcalNoiseHPD::caloTowerTotalE ( void  ) const

Definition at line 173 of file HcalNoiseHPD.cc.

References calotowers_, and pileupDistInMC::total.

174 {
175  double total=0;
177  total += (*it)->emEnergy()+(*it)->hadEnergy();
178  return total;
179 }
edm::RefVector< CaloTowerCollection > calotowers_
Definition: HcalNoiseHPD.h:145
int HcalNoiseHPD::idnumber ( void  ) const

Definition at line 32 of file HcalNoiseHPD.cc.

References idnumber_.

Referenced by HcalNoiseMonitor::analyze().

33 {
34  return idnumber_;
35 }
float HcalNoiseHPD::maxRecHitTime ( float  threshold = 10.0) const

Definition at line 133 of file HcalNoiseHPD.cc.

References rechits_, dtDQMClient_cfg::threshold, and cond::rpcobgas::time.

134 {
135  float maxtime=-9999999;
137  if((*it)->energy()<threshold) continue;
138  float time=(*it)->time();
139  if(maxtime<time) maxtime=time;
140  }
141  return maxtime;
142 }
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
int HcalNoiseHPD::maxZeros ( void  ) const

Definition at line 102 of file HcalNoiseHPD.cc.

References maxZeros_.

103 {
104  return maxZeros_;
105 }
float HcalNoiseHPD::minRecHitTime ( float  threshold = 10.0) const

Definition at line 122 of file HcalNoiseHPD.cc.

References rechits_, dtDQMClient_cfg::threshold, and cond::rpcobgas::time.

123 {
124  float mintime=9999999;
126  if((*it)->energy()<threshold) continue;
127  float time=(*it)->time();
128  if(mintime>time) mintime=time;
129  }
130  return mintime;
131 }
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
int HcalNoiseHPD::numRecHits ( float  threshold = 1.5) const

Definition at line 144 of file HcalNoiseHPD.cc.

References prof2calltree::count, rechits_, and dtDQMClient_cfg::threshold.

Referenced by HcalNoiseMonitor::analyze().

145 {
146  int count=0;
148  if((*it)->energy()>=threshold) ++count;
149  return count;
150 }
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
float HcalNoiseHPD::recHitEnergy ( float  threshold = 1.5) const

Definition at line 112 of file HcalNoiseHPD.cc.

References relval_parameters_module::energy, rechits_, and pileupDistInMC::total.

Referenced by HcalNoiseMonitor::analyze().

113 {
114  float total=0.0;
116  float energy=(*it)->energy();
117  if(energy>=threshold) total+=energy;
118  }
119  return total;
120 }
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
const edm::RefVector< HBHERecHitCollection > HcalNoiseHPD::recHits ( void  ) const

Definition at line 107 of file HcalNoiseHPD.cc.

References rechits_.

108 {
109  return rechits_;
110 }
edm::RefVector< HBHERecHitCollection > rechits_
Definition: HcalNoiseHPD.h:138
int HcalNoiseHPD::totalZeros ( void  ) const

Definition at line 97 of file HcalNoiseHPD.cc.

References totalZeros_.

98 {
99  return totalZeros_;
100 }

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
edm::RefVector<CaloTowerCollection> reco::HcalNoiseHPD::calotowers_
private
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().

edm::RefVector<HBHERecHitCollection> reco::HcalNoiseHPD::rechits_
private
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().