FastJet 3.0.2
|
class for holding a range definition specification, given by limits on rapidity and azimuth. More...
#include <fastjet/RangeDefinition.hh>
Inherited by fastjet::CircularRange.
Public Member Functions | |
RangeDefinition () | |
default constructor | |
RangeDefinition (double rapmax) | |
constructor for a range definition given by |y|<rapmax | |
virtual | ~RangeDefinition () |
destructor does nothing | |
RangeDefinition (double rapmin, double rapmax, double phimin=0.0, double phimax=twopi) | |
constructor for a range definition given by rapmin <= y <= rapmax, phimin <= phi <= phimax | |
virtual bool | is_localizable () const |
returns true if the range is localizable (i.e. | |
void | set_position (const double &rap, const double &phi) |
place the range on the rap-phi position | |
void | set_position (const PseudoJet &jet) |
place the range on the jet position | |
bool | is_in_range (const PseudoJet &jet) const |
return bool according to whether the jet is within the given range | |
virtual bool | is_in_range (double rap, double phi) const |
return bool according to whether a (rap,phi) point is in range | |
virtual void | get_rap_limits (double &rapmin, double &rapmax) const |
return the minimal and maximal rapidity of this range; remember to replace this if you write a derived class with more complex ranges; | |
virtual double | area () const |
area of the range region | |
virtual std::string | description () const |
textual description of range | |
Protected Member Functions | |
void | _numerical_total_area (double rapmax, int npoints) |
calculate, and set _total_area, by calculating which of points on a grid (npoints * npoints from -rapmax..rapmax,0..2pi) are contained in the range; it takes a reasonable time with rapmax = 10, npoints = 100. | |
Protected Attributes | |
double | _total_area |
double | _rapjet |
double | _phijet |
class for holding a range definition specification, given by limits on rapidity and azimuth.
Definition at line 48 of file RangeDefinition.hh.
virtual bool fastjet::RangeDefinition::is_localizable | ( | ) | const [inline, virtual] |
returns true if the range is localizable (i.e.
set_position is meant to do something meaningful).
This version of the class is not localizable and so it returns false.
For localizable classes override this function with a function that returns true
Definition at line 93 of file RangeDefinition.hh.
void fastjet::RangeDefinition::set_position | ( | const double & | rap, |
const double & | phi | ||
) | [inline] |
place the range on the rap-phi position
THIS DOES NOT DO ANYTHING FOR THIS CLASS AND IS ONLY THERE TO FACILITATE DERIVED CLASSES
DON'T NECESSARILY COUNT ON IT IN THE FUTURE EITHER???
Definition at line 102 of file RangeDefinition.hh.
void fastjet::RangeDefinition::_numerical_total_area | ( | double | rapmax, |
int | npoints | ||
) | [protected] |
calculate, and set _total_area, by calculating which of points on a grid (npoints * npoints from -rapmax..rapmax,0..2pi) are contained in the range; it takes a reasonable time with rapmax = 10, npoints = 100.
Definition at line 39 of file RangeDefinition.cc.