fastjet 3.0alpha2
Classes | Functions

Selectors

Classes

class  Selector
 Class that encodes information about cuts and other selection criteria that can be applied to PseudoJet(s). More...
class  SelectorWorker
 default selector worker is an abstract virtual base class More...

Functions

Selector SelectorIdentity ()
Selector operator! (const Selector &s)
 logical not applied on a selector
Selector operator|| (const Selector &s1, const Selector &s2)
 logical or between two selectors
Selector operator&& (const Selector &s1, const Selector &s2)
 logical and between two selectors
Selector operator* (const Selector &s1, const Selector &s2)
 successive application of 2 selectors
Selector SelectorPtMin (double ptmin)
 select objects with pt >= ptmin
Selector SelectorPtMax (double ptmax)
 select objects with pt <= ptmax
Selector SelectorPtRange (double ptmin, double ptmax)
 select objects with ptmin <= pt <= ptmax
Selector SelectorEtMin (double Etmin)
 select objects with Et >= Etmin
Selector SelectorEtMax (double Etmax)
 select objects with Et <= Etmax
Selector SelectorEtRange (double Etmin, double Etmax)
 select objects with Etmin <= Et <= Etmax
Selector SelectorEMin (double Emin)
 select objects with E >= Emin
Selector SelectorEMax (double Emax)
 select objects with E <= Emax
Selector SelectorERange (double Emin, double Emax)
 select objects with Emin <= E <= Emax
Selector SelectorMMin (double Mmin)
 select objects with M >= Mmin
Selector SelectorMMax (double Mmax)
 select objects with M <= Mmax
Selector SelectorMRange (double Mmin, double Mmax)
 select objects with Mmin <= M <= Mmax
Selector SelectorRapMin (double rapmin)
 select objects with rap >= rapmin
Selector SelectorRapMax (double rapmax)
 select objects with rap <= rapmax
Selector SelectorRapRange (double rapmin, double rapmax)
 select objects with rapmin <= rap <= rapmax
Selector SelectorAbsRapMin (double absrapmin)
 select objects with |rap| >= absrapmin
Selector SelectorAbsRapMax (double absrapmax)
 select objects with |rap| <= absrapmax
Selector SelectorAbsRapRange (double absrapmin, double absrapmax)
 select objects with absrapmin <= |rap| <= absrapmax
Selector SelectorEtaMin (double etamin)
 select objects with eta >= etamin
Selector SelectorEtaMax (double etamax)
 select objects with eta <= etamax
Selector SelectorEtaRange (double etamin, double etamax)
 select objects with etamin <= eta <= etamax
Selector SelectorAbsEtaMin (double absetamin)
 select objects with |eta| >= absetamin
Selector SelectorAbsEtaMax (double absetamax)
 select objects with |eta| <= absetamax
Selector SelectorAbsEtaRange (double absetamin, double absetamax)
 select objects with absetamin <= |eta| <= absetamax
Selector SelectorPhiRange (double phimin, double phimax)
 select objects with phimin <= phi <= phimax
Selector SelectorRapPhiRange (double rapmin, double rapmax, double phimin, double phimax)
 select objects with rapmin <= rap <= rapmax && phimin <= phi <= phimax
Selector SelectorNHardest (unsigned int n)
 select the n hardest objects
Selector SelectorCircle (const double &radius)
 select objets within a distance 'radius' from the location of the reference jet, set by Selector::set_reference(...)
Selector SelectorDoughnut (const double &radius_in, const double &radius_out)
 select objets with distance from the reference jet is between 'radius_in' and 'radius_out'; the reference jet is set by Selector::set_reference(...)
Selector SelectorStrip (const double &half_width)
 select objets within a rapidity distance 'half_width' from the location of the reference jet, set by Selector::set_reference(...)
Selector SelectorRectangle (const double &half_rap_width, const double &half_phi_width)
 select objets within rapidity distance 'half_rap_width' from the reference jet and azimuthal-angle distance within 'half_phi_width'; the reference jet is set by Selector::set_reference(...)
Selector SelectorPtFractionMin (double fraction)
 select objects that carry at least a fraction "fraction" of the reference jet.
Selector SelectorIsPureGhost ()
 select objects that are (or are only made of) ghosts.

Function Documentation

Selector operator! ( const Selector s)

logical not applied on a selector

This will keep objects that do not pass the 's' selector

Definition at line 158 of file Selector.cc.

                                       {
  return Selector(new SW_Not(s));
}
Selector operator|| ( const Selector s1,
const Selector s2 
)

logical or between two selectors

this will keep the objects that are selected by s1 or s2

Definition at line 344 of file Selector.cc.

                                                               {
  return Selector(new SW_Or(s1,s2));
}
Selector operator&& ( const Selector s1,
const Selector s2 
)

logical and between two selectors

this will keep the objects that are selected by both s1 and s2

watch out: for both s1 and s2, the selection is applied on the original list of objects. For successive applications of two selectors (convolution/multiplication) see the operator *

Definition at line 268 of file Selector.cc.

                                                              {
  return Selector(new SW_And(s1,s2));
}
Selector operator* ( const Selector s1,
const Selector s2 
)

successive application of 2 selectors

Apply the selector s2, then the selector s1.

watch out: the operator * acts like an operator product i.e. does not commute. The order of its arguments is therefore important. Whenever they commute (in particluar, when they apply jet by jet), this would have the same effect as the logical &&.

Definition at line 384 of file Selector.cc.

                                                             {
  return Selector(new SW_Mult(s1,s2));
}
Selector SelectorRapPhiRange ( double  rapmin,
double  rapmax,
double  phimin,
double  phimax 
)

select objects with rapmin <= rap <= rapmax && phimin <= phi <= phimax

Note that this is essentially a combination of SelectorRapRange and SelectorPhiRange. We provide it as a Selector on its own in order to use the known area (which would otherwise be lost by the && operator)

Definition at line 826 of file Selector.cc.

                                                                                         {
  return Selector(new SW_RapPhiRange(rapmin, rapmax, phimin, phimax));
}
Selector SelectorPtFractionMin ( double  fraction)

select objects that carry at least a fraction "fraction" of the reference jet.

The reference jet must have been set with Selector::set_reference(...)

Definition at line 1212 of file Selector.cc.

Referenced by main().

                                               {
  return Selector(new SW_PtFractionMin(fraction));
}
Selector SelectorIsPureGhost ( )

select objects that are (or are only made of) ghosts.

PseudoJets for which has_area() are considered non-pure-ghost.

Definition at line 1171 of file Selector.cc.

                              {
  return Selector(new SW_IsPureGhost());
}