7 using namespace fastjet;
11 ReclusterJets::ReclusterJets(
const std::vector<LorentzVector> & objects,
double ktpower,
double rparam) :
12 ktpower_(ktpower), rparam_(rparam)
18 fastjet::PseudoJet
j(
o.Px(),
o.Py(),
o.Pz(),
o.E());
19 j.set_user_index(index); index++;
28 jet_def = JetDefinition(kt_algorithm,
rparam_);
30 jet_def = JetDefinition(cambridge_algorithm,
rparam_);
32 jet_def = JetDefinition(antikt_algorithm,
rparam_);
34 throw cms::Exception(
"InvalidArgument",
"Unsupported ktpower value");
45 std::vector<math::XYZTLorentzVector> JetObjectsAll;
46 for (
const fastjet::PseudoJet & pj : jets) {
47 JetObjectsAll.push_back(
LorentzVector( pj.px(), pj.py(), pj.pz(), pj.e() ) );
math::XYZTLorentzVector LorentzVector
std::vector< fastjet::PseudoJet > fjInputs_
std::vector< LorentzVector > getGroupingExclusive(int njets)
get grouping (exclusive jets, until n are left)
std::vector< LorentzVector > getGrouping(double ptMin=0.0)
get grouping (inclusive jets)
std::vector< fastjet::PseudoJet > exclusiveJets_
ClusterSequencePtr fjClusterSeq_
boost::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
fastjet outputs
std::vector< fastjet::PseudoJet > inclusiveJets_
std::vector< LorentzVector > makeP4s(const std::vector< fastjet::PseudoJet > &jets)