Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PseudoJet.hh File Reference

#include <valarray>
#include <vector>
#include <cassert>
#include <cmath>
#include "fastjet/internal/numconsts.hh"

Include dependency graph for PseudoJet.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fastjet

Functions

std::vector< PseudoJet > sorted_by_pt (const std::vector< PseudoJet > &jets)
 return a vector of jets sorted into decreasing transverse momentum
std::vector< PseudoJet > sorted_by_rapidity (const std::vector< PseudoJet > &jets)
 return a vector of jets sorted into increasing rapidity
std::vector< PseudoJet > sorted_by_E (const std::vector< PseudoJet > &jets)
 return a vector of jets sorted into decreasing energy
void sort_indices (std::vector< int > &indices, const std::vector< double > &values)
 sort the indices so that values[indices[0->n-1]] is sorted into increasing order
template<class T>
std::vector< T > objects_sorted_by_values (const std::vector< T > &objects, const std::vector< double > &values)
 given a vector of values with a one-to-one correspondence with the vector of objects, sort objects into an order such that the associated values would be in increasing order (but don't actually touch the values vector in the process).

Variables

const double MaxRap = 1e5
 Used to protect against parton-level events where pt can be zero for some partons, giving rapidity=infinity.


Function Documentation

template<class T>
std::vector<T> fastjet::objects_sorted_by_values const std::vector< T > &  objects,
const std::vector< double > &  values
 

given a vector of values with a one-to-one correspondence with the vector of objects, sort objects into an order such that the associated values would be in increasing order (but don't actually touch the values vector in the process).

void fastjet::sort_indices std::vector< int > &  indices,
const std::vector< double > &  values
 

sort the indices so that values[indices[0->n-1]] is sorted into increasing order

std::vector<PseudoJet> fastjet::sorted_by_E const std::vector< PseudoJet > &  jets  ) 
 

return a vector of jets sorted into decreasing energy

std::vector<PseudoJet> fastjet::sorted_by_pt const std::vector< PseudoJet > &  jets  ) 
 

return a vector of jets sorted into decreasing transverse momentum

std::vector<PseudoJet> fastjet::sorted_by_rapidity const std::vector< PseudoJet > &  jets  ) 
 

return a vector of jets sorted into increasing rapidity


Variable Documentation

const double fastjet::MaxRap = 1e5
 

Used to protect against parton-level events where pt can be zero for some partons, giving rapidity=infinity.

KtJet fails in those cases.

Definition at line 50 of file PseudoJet.hh.

Referenced by fastjet::PseudoJet::_finish_init().


Generated on Mon Apr 2 20:58:02 2007 for fastjet by  doxygen 1.4.2