Find the ProtoJets from the collection of input Candidates.
29 fastjet::JetDefinition pjetdef(&PRplugin);
35 boost::shared_ptr<fastjet::ClusterSequence> fjClusterSeq;
38 boost::shared_ptr<fastjet::ClusterSequence>(
new fastjet::ClusterSequence( cell_particles,
42 boost::shared_ptr<fastjet::ClusterSequence>(
new fastjet::ClusterSequenceActiveArea( cell_particles,
47 boost::shared_ptr<fastjet::ClusterSequence>(
new fastjet::ClusterSequenceVoronoiArea( cell_particles,
52 vector<fastjet::PseudoJet> inclusiveJets = fjClusterSeq->inclusive_jets(
ptMin_);
56 vector<vector<int> > indices(inclusiveJets.size());
58 vector<fastjet::PseudoJet>::iterator jetIt = inclusiveJets.begin();
59 for ( ; jetIt != inclusiveJets.end(); ++jetIt ) {
61 vector<fastjet::PseudoJet> subjets = fjClusterSeq->exclusive_subjets(*jetIt,
nSubjets_);
63 vector<CompoundPseudoSubJet> subjetsOutput;
64 std::vector<fastjet::PseudoJet>::const_iterator itSubJetBegin = subjets.begin(),
65 itSubJet = itSubJetBegin, itSubJetEnd = subjets.end();
66 for (; itSubJet != itSubJetEnd; ++itSubJet ){
68 vector<fastjet::PseudoJet> subjetFastjetConstituents = fjClusterSeq->constituents( *itSubJet );
70 vector<int> constituents;
71 vector<fastjet::PseudoJet>::const_iterator fastSubIt = subjetFastjetConstituents.begin(),
72 transConstEnd = subjetFastjetConstituents.end();
73 for ( ; fastSubIt != transConstEnd; ++fastSubIt ) {
74 if (fastSubIt->user_index() >= 0) {
75 constituents.push_back( fastSubIt->user_index() );
80 dynamic_cast<fastjet::ClusterSequenceActiveArea&>(*fjClusterSeq).area(*itSubJet) : 0.0;
90 dynamic_cast<fastjet::ClusterSequenceActiveArea&>(*fjClusterSeq).area(*jetIt) : 0.0;
CompoundPseudoJet holds an association of fastjet::PseudoJets that represent a "hard" top jet with su...
boost::shared_ptr< fastjet::GhostedAreaSpec > fjActiveArea_
boost::shared_ptr< fastjet::JetDefinition > fjJetDefinition_