fastjet 2.4.5
Classes | Functions | Variables
fastjet::atlas Namespace Reference

Classes

class  stopwatch
class  Jet
class  JetSorter_Et
class  JetSorter_Pt
class  JetSorter_Eta
class  JetSorter_E
class  JetConeFinderTool
struct  JetDistances
class  JetSplitMergeTool
class  LorentzVector

Functions

float to_minusPI_PI (float phi)
float to_zero_2PI (float phi)
template<class T >
void clear_list (T &list)
Jetjet_from_overlap (Jet *j1, Jet *j2)
void find_jet_in_list (Jet *j)
template<class T >
void sort_jet_list (Jet::jet_list_t &list)
void sort_list_et (Jet::jet_list_t &list)
void sort_list_pt (Jet::jet_list_t &list)

Variables

double GeV = 1.0

Function Documentation

template<class T >
void fastjet::atlas::clear_list ( T &  list)

Definition at line 38 of file CommonUtils.hh.

Referenced by fastjet::atlas::JetSplitMergeTool::execute(), fastjet::atlas::JetConeFinderTool::execute(), and fastjet::ATLASConePlugin::run_clustering().

                         {
  typedef typename T::iterator it_t;
  it_t it = list.begin();
  it_t itE = list.end();
  for(; it != itE; ++it){
    delete *it;
  }
  list.clear();
}
void fastjet::atlas::find_jet_in_list ( Jet *  j)
Jet * fastjet::atlas::jet_from_overlap ( Jet *  j1,
Jet *  j2 
)

Definition at line 45 of file Jet.cc.

References fastjet::atlas::Jet::addConstituent(), fastjet::atlas::Jet::firstConstituent(), and fastjet::atlas::Jet::lastConstituent().

Referenced by fastjet::atlas::JetSplitMergeTool::split_merge().

                                       {
  Jet *j = new Jet();
  Jet::constit_vect_t::iterator it1 = j1->firstConstituent();
  Jet::constit_vect_t::iterator it1E = j1->lastConstituent();
  for(;it1!= it1E; ++it1){
    Jet::constit_vect_t::iterator it2 = j2->firstConstituent();
    Jet::constit_vect_t::iterator it2E = j2->lastConstituent();
    for(;it2!= it2E; ++it2){
      if( *it1 == *it2) j->addConstituent(*it1);
    }
    
  }
  return j;
}
template<class T >
void fastjet::atlas::sort_jet_list ( Jet::jet_list_t &  list) [inline]

Definition at line 110 of file Jet.hh.

                                              {
  std::sort(list.begin(),list.end(), T());
}
void fastjet::atlas::sort_list_et ( Jet::jet_list_t &  list) [inline]

Definition at line 113 of file Jet.hh.

Referenced by fastjet::atlas::JetSplitMergeTool::split_merge().

                                             {
  //std::sort(list.begin(),list.end(),et_compare);
  std::sort(list.begin(),list.end(), JetSorter_Et());
}
void fastjet::atlas::sort_list_pt ( Jet::jet_list_t &  list) [inline]

Definition at line 117 of file Jet.hh.

                                             {
  std::sort(list.begin(),list.end(),JetSorter_Pt());
}
float fastjet::atlas::to_minusPI_PI ( float  phi) [inline]

Definition at line 19 of file CommonUtils.hh.

References M_PI, and fastjet::d0::inline_maths::phi().

                                      {
  while(phi < -M_PI) phi += 2*M_PI;
  while(phi >= M_PI) phi -= 2*M_PI;
  return phi;
}
float fastjet::atlas::to_zero_2PI ( float  phi) [inline]

Definition at line 24 of file CommonUtils.hh.

References M_PI, and fastjet::d0::inline_maths::phi().

                                    {
  while(phi < 0) phi += 2*M_PI;
  while(phi >= 2*M_PI) phi -= 2*M_PI;
  return phi;
}

Variable Documentation

double fastjet::atlas::GeV = 1.0

Definition at line 33 of file JetConeFinderTool.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines