6 #include "StProtoJet.h"
12 double deltaphi(
double p1,
double p2);
18 typedef std::list<StProtoJet> JetList;
19 typedef StProtoJet::FourVecList FourList;
20 typedef std::list<StEtaPhiCell*> CellList;
23 StEtaPhiCell(
double etaMin,
double etaMax,
double phiMin,
double phiMax);
29 return (mEtaMin == other.mEtaMin
30 && mEtaMax == other.mEtaMax
31 && mPhiMin == other.mPhiMin
32 && mPhiMax == other.mPhiMax);
35 virtual double eT()
const {
return mEt; }
39 bool empty()
const {
return mProtoJet.size() == 0;}
41 void setNtimesUsed(
int v) { mNtimesUsed = v; }
42 int nTimesUsed()
const {
return mNtimesUsed; }
46 double eta()
const {
return (mEtaMax+mEtaMin)/2.; }
47 double phi()
const {
return (mPhiMax+mPhiMin)/2.; }
51 void setEt(
double v) { mEt = v; }
52 double Et()
const {
return mEt; }
56 mEt = protoJet().eT();
59 CellList& cellList() {
return mCells; }
60 const CellList& cellList()
const {
return mCells; }
78 double deltaPhi(
const StEtaPhiCell& rhs)
const {
return deltaphi( phi(), rhs.phi() ); }
79 double deltaEta(
const StEtaPhiCell& rhs)
const {
return eta()-rhs.eta(); }
81 friend std::ostream& operator<<(std::ostream& os,
const StEtaPhiCell& cell);
97 return lhs->eT() > rhs->eT();
102 inline std::ostream& operator<<(std::ostream& os,
const StEtaPhiCell& cell)
104 os <<
"eta: "<<cell.eta()<<
"\tphi: "<<cell.phi()<<
"\tet: "<<cell.eT()
106 <<
"\tcells:"<< std::endl;
107 const StEtaPhiCell::CellList& l = cell.cellList();
108 for (StEtaPhiCell::CellList::const_iterator it=l.begin(); it!=l.end(); ++it) {
115 #endif // STETAPHICELL_H