Rivet is hosted by Hepforge, IPPP Durham
Rivet::Cuts Namespace Reference

Namespace used for ambiguous identifiers. More...

Enumerations

enum  Quantity {
  pT = 0, pt = 0, Et = 1, et = 1,
  mass, rap, absrap, eta,
  abseta, phi, pid, abspid,
  charge, abscharge, charge3, abscharge3
}
 Available categories of cut objects. More...

Functions

const Cutopen ()
 Fully open cut singleton, accepts everything.
Shortcuts for common cuts
Cut range (Quantity, double m, double n)
Cut etaIn (double m, double n)
Cut rapIn (double m, double n)
Cut absetaIn (double m, double n)
Cut absrapIn (double m, double n)
Cut ptIn (double m, double n)
Cut etIn (double m, double n)
Cut massIn (double m, double n)

Variables

const CutOPEN = Cuts::open()
const CutNOCUT = Cuts::open()

Detailed Description

Namespace used for ambiguous identifiers.


Enumeration Type Documentation

enum Quantity

Available categories of cut objects.

Enumerator:
pT 
pt 
Et 
et 
mass 
rap 
absrap 
eta 
abseta 
phi 
pid 
abspid 
charge 
abscharge 
charge3 
abscharge3 

Definition at line 45 of file Cuts.hh.


Function Documentation

Cut Rivet::Cuts::absrapIn ( double  m,
double  n 
) [inline]

Definition at line 60 of file Cuts.hh.

References absrap, and range().

{ return range(absrap,m,n); }
Cut Rivet::Cuts::etIn ( double  m,
double  n 
) [inline]

Definition at line 62 of file Cuts.hh.

References Et, and range().

{ return range(Et,m,n); }
Cut Rivet::Cuts::massIn ( double  m,
double  n 
) [inline]

Definition at line 63 of file Cuts.hh.

References mass, and range().

{ return range(mass,m,n); }
const Cut & open ( )
Cut range ( Cuts::Quantity  qty,
double  m,
double  n 
)

Definition at line 177 of file Cuts.cc.

References Rivet::PID::n.

Referenced by absetaIn(), absrapIn(), EXAMPLE_CUTS::analyze(), etaIn(), etIn(), massIn(), Rivet::particles(), Rivet::particles_in(), Rivet::particles_out(), ptIn(), and rapIn().

                                                      {
    if (m > n) std::swap(m,n);
    return (qty >= m) && (qty < n);
  }
Cut Rivet::Cuts::rapIn ( double  m,
double  n 
) [inline]

Definition at line 58 of file Cuts.hh.

References range(), and rap.

Referenced by JetAlg::jets(), and JetShape::project().

{ return range(rap,m,n); }

Variable Documentation

const Cut & NOCUT = Cuts::open()

Definition at line 49 of file Cuts.cc.