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
}
 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)

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 

Definition at line 37 of file Cuts.hh.

{ pT=0, pt=0, Et=1, et=1, mass, rap, absrap, eta, abseta, phi };

Function Documentation

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

Definition at line 47 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 49 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 50 of file Cuts.hh.

References mass, and range().

{ return range(mass,m,n); }
const Cut & open ( )

Fully open cut singleton, accepts everything.

Definition at line 47 of file Cuts.cc.

Referenced by FinalState::FinalState(), CDF_2000_S4155203::init(), D0_2008_S6879055::init(), D0_2007_S7075677::init(), D0_2009_S8202443::init(), D0_2008_S7554427::init(), CMS_2014_I1303894::init(), CMS_2012_I941555::init(), CDF_2009_S8383952::init(), MC_WPOL::init(), JetAlg::jets(), ParticleFinder::particles(), and FinalState::project().

                         {
    // only ever need one static open cut object
    static const Cut open = boost::make_shared<Open_Cut>();
    return open;
  }
Cut range ( Cuts::Quantity  qty,
double  m,
double  n 
)

Definition at line 139 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 45 of file Cuts.hh.

References range(), and rap.

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

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