fastjet 2.4.5
|
#include <Jet.hh>
Public Types | |
typedef std::list< Jet * > | constit_vect_t |
typedef std::vector< Jet * > | jet_list_t |
Public Member Functions | |
Jet () | |
Jet (double p1, double p2, double p3, double p0, int index=0) | |
Jet (LorentzVector v) | |
Jet (Jet &j) | |
Jet (Jet *j) | |
void | addJet (Jet &j) |
The standard way of merging jets. | |
void | addJet (Jet *j) |
int | getConstituentNum () |
Access jet constituents. | |
constit_vect_t::iterator | firstConstituent () |
constit_vect_t::iterator | lastConstituent () |
void | addConstituent (Jet *jet) |
void | addConstituent (constit_vect_t::iterator first, constit_vect_t::iterator last) |
void | removeConstituent (Jet *jet) |
void | addConstituent_notMoment (Jet *jet) |
int | index () const |
void | set_index (int i) |
LorentzVector | hlv () |
Atlas compatibility code : | |
Protected Attributes | |
int | m_index |
constit_vect_t | m_constituents |
position in a jet list (used for constituents positions) |
typedef std::list<Jet*> fastjet::atlas::Jet::constit_vect_t |
typedef std::vector<Jet*> fastjet::atlas::Jet::jet_list_t |
fastjet::atlas::Jet::Jet | ( | ) | [inline] |
Definition at line 26 of file Jet.hh.
: LorentzVector(0,0,0,0) {}
fastjet::atlas::Jet::Jet | ( | double | p1, |
double | p2, | ||
double | p3, | ||
double | p0, | ||
int | index = 0 |
||
) | [inline] |
Definition at line 27 of file Jet.hh.
: LorentzVector(p1,p2,p3,p0), m_index(index){}
fastjet::atlas::Jet::Jet | ( | LorentzVector | v | ) | [inline] |
Definition at line 28 of file Jet.hh.
: LorentzVector(v) {m_index = 0;}
fastjet::atlas::Jet::Jet | ( | Jet & | j | ) |
Definition at line 12 of file Jet.cc.
References fastjet::atlas::LorentzVector::add(), index(), m_constituents, and m_index.
: LorentzVector(0,0,0,0){ add(jet); m_index = jet.index(); m_constituents = jet.m_constituents; // m_area = jet.area(); // m_area_error = jet.area_error(); }
fastjet::atlas::Jet::Jet | ( | Jet * | j | ) |
Definition at line 19 of file Jet.cc.
References fastjet::atlas::LorentzVector::add(), index(), m_constituents, and m_index.
{ add(*j); m_index = j->index(); m_constituents = j->m_constituents; // m_area = j->area(); // m_area_error = j->area_error(); }
void fastjet::atlas::Jet::addConstituent | ( | Jet * | jet | ) | [inline] |
Definition at line 46 of file Jet.hh.
Referenced by fastjet::atlas::jet_from_overlap(), and fastjet::ATLASConePlugin::run_clustering().
{m_constituents.push_back(jet);this->add(*jet);};
void fastjet::atlas::Jet::addConstituent | ( | constit_vect_t::iterator | first, |
constit_vect_t::iterator | last | ||
) |
Definition at line 38 of file Jet.cc.
References fastjet::atlas::LorentzVector::add(), and m_constituents.
{ m_constituents.insert(m_constituents.end(), first, last); for(; first!=last;++first) this->add( **first); }
void fastjet::atlas::Jet::addConstituent_notMoment | ( | Jet * | jet | ) | [inline] |
Definition at line 50 of file Jet.hh.
{m_constituents.push_back(jet);}
void fastjet::atlas::Jet::addJet | ( | Jet * | j | ) |
Definition at line 32 of file Jet.cc.
References fastjet::atlas::LorentzVector::add(), firstConstituent(), lastConstituent(), and m_constituents.
{ add(*j) ; m_constituents.insert(m_constituents.end(), j->firstConstituent(), j->lastConstituent() ); }
void fastjet::atlas::Jet::addJet | ( | Jet & | j | ) |
The standard way of merging jets.
Definition at line 27 of file Jet.cc.
References fastjet::atlas::LorentzVector::add(), firstConstituent(), lastConstituent(), and m_constituents.
Referenced by fastjet::atlas::JetConeFinderTool::calc_cone(), and fastjet::atlas::JetSplitMergeTool::execute().
{ add(j); m_constituents.insert(m_constituents.end(), j.firstConstituent(), j.lastConstituent() ); }
constit_vect_t::iterator fastjet::atlas::Jet::firstConstituent | ( | ) | [inline] |
Definition at line 40 of file Jet.hh.
Referenced by addJet(), fastjet::atlas::jet_from_overlap(), and fastjet::atlas::JetSplitMergeTool::split_merge().
{ return m_constituents.begin();};
int fastjet::atlas::Jet::getConstituentNum | ( | ) | [inline] |
Access jet constituents.
Definition at line 39 of file Jet.hh.
Referenced by fastjet::atlas::JetSplitMergeTool::split_merge().
{return m_constituents.size();}
LorentzVector fastjet::atlas::Jet::hlv | ( | ) | [inline] |
int fastjet::atlas::Jet::index | ( | ) | const [inline] |
Definition at line 55 of file Jet.hh.
Referenced by Jet(), and fastjet::ATLASConePlugin::run_clustering().
{return m_index;}
constit_vect_t::iterator fastjet::atlas::Jet::lastConstituent | ( | ) | [inline] |
Definition at line 41 of file Jet.hh.
Referenced by addJet(), fastjet::atlas::jet_from_overlap(), and fastjet::atlas::JetSplitMergeTool::split_merge().
{ return m_constituents.end();};
void fastjet::atlas::Jet::removeConstituent | ( | Jet * | jet | ) | [inline] |
Definition at line 48 of file Jet.hh.
Referenced by fastjet::atlas::JetSplitMergeTool::split_merge().
{m_constituents.remove(jet);this->subtract(*jet);};
void fastjet::atlas::Jet::set_index | ( | int | i | ) | [inline] |
Definition at line 56 of file Jet.hh.
Referenced by fastjet::ATLASConePlugin::run_clustering().
{m_index= i;}
constit_vect_t fastjet::atlas::Jet::m_constituents [protected] |
position in a jet list (used for constituents positions)
Definition at line 67 of file Jet.hh.
Referenced by addConstituent(), addJet(), and Jet().
int fastjet::atlas::Jet::m_index [protected] |