#include <PFJetAlgorithm.h>
Public Member Functions | |
void | Add (int i) |
void | Clear () |
const std::vector< int > & | GetIndexes () const |
const TLorentzVector & | GetMomentum () const |
Jet () | |
Jet (int i, const std::vector< TLorentzVector > *allvecs) | |
Jet & | operator+= (const Jet &other) |
~Jet () | |
Private Attributes | |
const std::vector < TLorentzVector > * | fAllVecs |
TLorentzVector | fMomentum |
std::vector< int > | fVecIndexes |
Friends | |
ostream & | operator<< (ostream &out, const PFJetAlgorithm::Jet &jet) |
Definition at line 15 of file PFJetAlgorithm.h.
PFJetAlgorithm::Jet::Jet | ( | ) | [inline] |
Definition at line 24 of file PFJetAlgorithm.h.
: fAllVecs(0) {}
PFJetAlgorithm::Jet::Jet | ( | int | i, |
const std::vector< TLorentzVector > * | allvecs | ||
) | [inline] |
PFJetAlgorithm::Jet::~Jet | ( | ) | [inline] |
Definition at line 28 of file PFJetAlgorithm.h.
{}
void PFJetAlgorithm::Jet::Add | ( | int | i | ) | [inline] |
Definition at line 30 of file PFJetAlgorithm.h.
References fMomentum, fVecIndexes, and i.
Referenced by PFJetAlgorithm::FindJets(), Jet(), and PFJetAlgorithm::Update().
{ fVecIndexes.push_back(i); fMomentum += (*fAllVecs)[i]; }
void PFJetAlgorithm::Jet::Clear | ( | ) | [inline] |
Definition at line 35 of file PFJetAlgorithm.h.
References fMomentum, and fVecIndexes.
Referenced by PFJetAlgorithm::Update().
{ fVecIndexes.clear(); fMomentum *= 0;}
const std::vector<int>& PFJetAlgorithm::Jet::GetIndexes | ( | ) | const [inline] |
const TLorentzVector& PFJetAlgorithm::Jet::GetMomentum | ( | ) | const [inline] |
Definition at line 43 of file PFJetAlgorithm.h.
References fMomentum.
Referenced by PFJetAlgorithm::FindJets(), and PFJetAlgorithm::Update().
{return fMomentum;}
Definition at line 37 of file PFJetAlgorithm.h.
References fMomentum, and fVecIndexes.
{ fVecIndexes.insert( fVecIndexes.begin(), other.fVecIndexes.begin(), other.fVecIndexes.end()); fMomentum += other.fMomentum; return *this; }
ostream& operator<< | ( | ostream & | out, |
const PFJetAlgorithm::Jet & | jet | ||
) | [friend] |
Definition at line 9 of file PFJetAlgorithm.cc.
const std::vector<TLorentzVector>* PFJetAlgorithm::Jet::fAllVecs [private] |
Definition at line 18 of file PFJetAlgorithm.h.
TLorentzVector PFJetAlgorithm::Jet::fMomentum [private] |
Definition at line 20 of file PFJetAlgorithm.h.
Referenced by Add(), Clear(), GetMomentum(), operator+=(), and operator<<().
std::vector<int> PFJetAlgorithm::Jet::fVecIndexes [private] |
Definition at line 21 of file PFJetAlgorithm.h.
Referenced by Add(), Clear(), GetIndexes(), operator+=(), and operator<<().