13 using namespace JetReco;
22 list<InputItem>
input;
23 for (InputCollection::const_iterator towerIter = fInput.begin();
24 towerIter != fInput.end(); ++towerIter) {
25 input.push_back(*towerIter);
28 input.sort(compCandidate);
31 while( !input.empty() && input.front()->et() > theSeedThreshold ) {
33 double eta0=input.front()->eta();
34 double phi0=input.front()->phi();
40 list< list<InputItem>::iterator> cone;
46 for(list<InputItem>::iterator inp=input.begin();
47 inp!=input.end();inp++){
50 theConeRadius*theConeRadius) {
52 eta+= tower->
et()*tower->
eta();
53 double dphi=tower->
phi()-phi0;
56 phi+=tower->
et()*dphi;
65 if(fabs(eta-eta0)<.001 && fabs(phi-phi0)<.001)
break;
72 list< list<InputItem>::iterator>::const_iterator inp;
73 for(inp=cone.begin();inp!=cone.end();inp++) {
74 jetConstituents.push_back(**inp);
77 fOutput->push_back (
ProtoJet (jetConstituents));
81 sort (fOutput->begin (), fOutput->end (), compJets);
std::vector< ProtoJet > OutputCollection
virtual double et() const =0
transverse energy
virtual float eta() const =0
momentum pseudorapidity
std::vector< InputItem > InputCollection
virtual float phi() const =0
momentum azimuthal angle
Transient Jet class used by the reconstruction algorithms.
static std::string const input
double deltaR2(const Vector1 &v1, const Vector2 &v2)
void run(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput) const
Find the ProtoJets from the collection of input Candidates.