17 idnumber_(0), hpds_(4),
40 std::vector<HcalNoiseHPD>::const_iterator maxit=
hpds_.end();
41 double maxenergy=-99999999.;
42 for(std::vector<HcalNoiseHPD>::const_iterator it=
hpds_.begin(); it!=
hpds_.end(); ++it) {
43 double tempenergy=it->recHitEnergy();
44 if(tempenergy>maxenergy) {
68 for(
unsigned int i=firstts;
i<firstts+2 &&
allCharge_.size();
i++)
76 for(
unsigned int i=firstts;
i<firstts+3 &&
allCharge_.size();
i++)
85 for(
unsigned int i=0;
i<
hpds_.size();
i++)
93 for(
unsigned int i=0;
i<
hpds_.size();
i++)
102 for(
unsigned int i=0;
i<
hpds_.size();
i++)
109 double mintime=9999999.;
110 for(
unsigned int i=0;
i<
hpds_.size();
i++) {
111 double temptime=
hpds_[
i].minRecHitTime(threshold);
112 if(temptime<mintime) mintime=temptime;
119 double maxtime=-9999999.;
120 for(
unsigned int i=0;
i<
hpds_.size();
i++) {
121 double temptime=
hpds_[
i].maxRecHitTime(threshold);
122 if(temptime>maxtime) maxtime=temptime;
130 for(
unsigned int i=0;
i<
hpds_.size();
i++)
140 for(towerset_t::const_iterator it=twrs.begin(); it!=twrs.end(); ++it) {
141 h += it->hadEnergy();
151 for(towerset_t::const_iterator it=twrs.begin(); it!=twrs.end(); ++it) {
162 for(towerset_t::const_iterator it=twrs.begin(); it!=twrs.end(); ++it) {
163 e += it->hadEnergy() + it->emEnergy();
173 for(towerset_t::const_iterator it=twrs.begin(); it!=twrs.end(); ++it) {
174 h += it->hadEnergy();
177 return (e+
h)==0 ? 999 : e/(e+
h);
183 for(std::vector<HcalNoiseHPD>::const_iterator it1=
hpds_.begin(); it1!=
hpds_.end(); ++it1) {
float allChargeHighest3TS(unsigned int firstts=4) const
float allChargeHighest2TS(unsigned int firstts=4) const
int numRecHits(double threshold=1.5) const
std::vector< HcalNoiseHPD >::const_iterator maxHPD(double threshold=1.5) const
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
double caloTowerEmE(void) const
double caloTowerTotalE(void) const
double recHitEnergy(double theshold=1.5) const
float allChargeTotal(void) const
const T & max(const T &a, const T &b)
std::vector< HcalNoiseHPD > hpds_
double caloTowerHadE(void) const
std::set< CaloTower, twrcomp > towerset_t
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
double caloTowerEmFraction(void) const
std::vector< float > allCharge_
double minRecHitTime(double threshold=20.0) const
void uniqueTowers(towerset_t &twrs_) const
int totalZeros(void) const
const std::vector< HcalNoiseHPD > HPDs(void) const
double maxRecHitTime(double threshold=20.0) const
const std::vector< float > allCharge(void) const