Build from input candidate collection.
13 list<fastjet::PseudoJet>
input;
14 for (std::vector<fastjet::PseudoJet>::const_iterator candIter = fInput.begin();
15 candIter != fInput.end();
17 input.push_back(*candIter);
23 double seedEta = input.front().eta();
24 double seedPhi = input.front().phi();
27 list<inputListIter> maxCone;
30 maxCone.push_back(iCand++);
31 for(; iCand != input.end(); ++iCand)
33 const fastjet::PseudoJet& candidate = *iCand;
35 maxCone.push_back(iCand);
38 maxCone.sort(ListIteratorLesserByDeltaR(seedEta, seedPhi));
39 list<inputListIter>::const_iterator
position = maxCone.begin();
40 bool limitReached =
false;
41 double totalET = (**position).perp();
43 while(position != maxCone.end() && !limitReached)
45 const fastjet::PseudoJet& theCandidate = **
position;
46 double candidateET = theCandidate.perp() + totalET;
47 double candDR2 =
reco::deltaR2(seedEta, theCandidate.eta(), seedPhi, theCandidate.phi());
49 totalET = candidateET;
55 fastjet::PseudoJet
final;
56 for(list<inputListIter>::const_iterator iNewJet = maxCone.begin();
61 input.erase(*iNewJet);
63 fOutput.push_back(
final);
double growthParameterSquared_
bool greaterByEtPseudoJet(fastjet::PseudoJet const &j1, fastjet::PseudoJet const &j2)
static std::string const input
std::list< fastjet::PseudoJet >::iterator inputListIter
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static int position[264][3]