1 #ifndef __PFJetAlgorithm__
2 #define __PFJetAlgorithm__
4 #include <TLorentzVector.h>
25 Jet(
int i,
const std::vector<TLorentzVector>* allvecs) :
fAllVecs(allvecs) {
53 std::vector< PFJetAlgorithm::Jet >
fJets;
66 typedef std::map< double, PFJetAlgorithm::Jet, std::greater<double> >::iterator
IJ;
67 typedef std::map<double, int, std::greater<double> >::const_iterator
IV;
79 const std::vector< PFJetAlgorithm::Jet >&
80 FindJets(
const std::vector<TLorentzVector>* vecs);
88 static double DeltaR(
double eta1,
double phi1,
double eta2,
double phi2);
101 std::greater<double> >& etjets);
104 const std::vector< PFJetAlgorithm::Jet >&
GetJets()
const {
return fJets;}
void SetConeMerge(double coneMerge)
double GetConeAngle() const
void MergeJets(std::map< double, PFJetAlgorithm::Jet, std::greater< double > > &etjets)
std::map< double, int, std::greater< double > >::const_iterator IV
Jet & operator+=(const Jet &other)
virtual ~PFJetAlgorithm()
const std::vector< PFJetAlgorithm::Jet > & FindJets(const std::vector< TLorentzVector > *vecs)
std::map< double, int, std::greater< double > > fEtOrderedSeeds
const std::vector< int > & GetIndexes() const
const std::vector< TLorentzVector > * fAllVecs
std::vector< PFJetAlgorithm::Jet > fJets
const std::vector< PFJetAlgorithm::Jet > & GetJets() const
Jet(int i, const std::vector< TLorentzVector > *allvecs)
void SetConeAngle(double coneAngle)
void SetSeedEt(double et)
std::vector< int > fAssignedVecs
friend std::ostream & operator<<(std::ostream &out, const PFJetAlgorithm::Jet &jet)
std::map< double, PFJetAlgorithm::Jet, std::greater< double > >::iterator IJ
const TLorentzVector & GetMomentum() const
PFJetAlgorithm(double cone, double et, double conemerge)
std::vector< int > fVecIndexes
const std::vector< TLorentzVector > * fAllVecs
static double DeltaR(double eta1, double phi1, double eta2, double phi2)