3 #include "StEtaPhiCell.h"
8 StEtaPhiCell::StEtaPhiCell(
double etaMin,
double etaMax,
double phiMin,
double phiMax)
20 StEtaPhiCell::StEtaPhiCell()
32 StEtaPhiCell::~StEtaPhiCell()
37 void StEtaPhiCell::addProtoJet(
const StProtoJet& pj)
44 void StEtaPhiCell::clear()
56 mCells.push_back(cell);
57 cell->setNtimesUsed( cell->nTimesUsed() + 1 );
61 double StEtaPhiCell::distance(
const StEtaPhiCell& rhs)
const
63 double dEta = deltaEta(rhs);
64 double dPhi = deltaPhi(rhs);
65 return ::sqrt(dEta*dEta + dPhi*dPhi);
78 mCentroid = mProtoJet;
81 for (CellList::iterator it1 = mCells.begin(); it1 != mCells.end(); ++it1) {
83 if (!isSamePosition(**it1)) {
87 const StProtoJet::FourVecList& l = pj.list();
90 for (StProtoJet::FourVecList::const_iterator it2=l.begin(); it2!=l.end(); ++it2) {