#include <RecoParticleFlow/PFRootEvent/interface/PFJetAlgorithm.h>
Public Member Functions | |
void | Add (int i) |
void | Clear () |
const std::vector< int > & | GetIndexes () const |
const TLorentzVector & | GetMomentum () const |
Jet (int i, const std::vector< TLorentzVector > *allvecs) | |
Jet () | |
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] |
PFJetAlgorithm::Jet::Jet | ( | int | i, | |
const std::vector< TLorentzVector > * | allvecs | |||
) | [inline] |
PFJetAlgorithm::Jet::~Jet | ( | ) | [inline] |
Definition at line 30 of file PFJetAlgorithm.h.
References fMomentum, and fVecIndexes.
Referenced by Jet(), and PFJetAlgorithm::Update().
00030 { 00031 fVecIndexes.push_back(i); 00032 fMomentum += (*fAllVecs)[i]; 00033 }
void PFJetAlgorithm::Jet::Clear | ( | ) | [inline] |
Definition at line 35 of file PFJetAlgorithm.h.
References fMomentum, and fVecIndexes.
Referenced by PFJetAlgorithm::Update().
00035 { 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::Update().
00043 {return fMomentum;}
Definition at line 37 of file PFJetAlgorithm.h.
References fMomentum, and fVecIndexes.
00037 { 00038 fVecIndexes.insert( fVecIndexes.begin(), other.fVecIndexes.begin(), other.fVecIndexes.end()); 00039 fMomentum += other.fMomentum; 00040 return *this; 00041 }
ostream& operator<< | ( | ostream & | out, | |
const PFJetAlgorithm::Jet & | jet | |||
) | [friend] |
Definition at line 9 of file PFJetAlgorithm.cc.
00009 { 00010 if(!out) return out; 00011 cout<<"jet "<<jet.fVecIndexes.size()<<" particles, E_T = "<<jet.fMomentum.Et()<<" eta/phi " 00012 <<jet.fMomentum.Eta()<<" "<<jet.fMomentum.Phi(); 00013 return out; 00014 }
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<<().