2 #include "StConeJetFinderBase.h"
14 #include "StJetEtCell.h"
15 #include "StJetSpliterMerger.h"
16 #include "StProtoJet.h"
18 using namespace StSpinJet;
28 StConeJetFinderBase::~StConeJetFinderBase()
33 void StConeJetFinderBase::Init()
35 _cellGrid.buildGrid(makeCellFactory());
38 StEtaPhiCell::CellList StConeJetFinderBase::generateToSearchListFrom(CellList& orderedList)
40 CellList toSearchList;
42 for (CellList::iterator cell = orderedList.begin(); cell != orderedList.end(); ++cell) {
44 if ((*cell)->eT() <= mPars.seedEtMin())
break;
46 toSearchList.push_back(*cell);
53 void StConeJetFinderBase::initializeWorkCell(
const StEtaPhiCell* other)
58 if (
mWorkCell->cellList().empty()==
false) {
59 cout <<
"StConeJetFinderBase::initializeWorkCell(). ERROR:\t"
60 <<
"workCell is not empty. abort()"<<endl;
65 void StConeJetFinderBase::formCone()
67 CellList cellList = _cellGrid.WithinTheConeRadiusCellList(*
mWorkCell);
69 for (CellList::iterator cell = cellList.begin(); cell != cellList.end(); ++cell) {
70 if(shouldNotAddToTheCell(*
mWorkCell, **cell))
continue;
78 if (seed->cellList().empty()) {
81 cout <<
"\treturn w/o action. empty cell"<<endl;
87 CellList& cells = seed->cellList();
93 for (CellList::iterator it = cells.begin(); it != cells.end(); ++it) {
94 if (it != cells.begin()) {
97 cout <<
"\tStConeJetFinderBase::collectCell(). ERROR:\t"
98 <<
"null cell. skip"<<endl;
100 if (centerCell==*it) {
101 cout <<
"\tStConeJetFinderBase::collectCell(). ERROR:\t"
102 <<
"attempt to add self! skip"<<endl;
105 if (cell->empty()==
false) {
106 center.add( cell->protoJet() );
StConeJetFinderBase()
Only available for derived classes.
StEtaPhiCell * mWorkCell
run-time pars