Rivet  1.8.0
Public Member Functions | Protected Member Functions
Rivet::JetShape Class Reference

Calculate the jet shape. More...

#include <JetShape.hh>

Inheritance diagram for Rivet::JetShape:
Rivet::Projection Rivet::ProjectionApplier

List of all members.

Public Member Functions

void clear ()
 Reset projection between events.
void calc (const Jets &jets)
 Do the calculation directly on a supplied collection of Jet objects.
size_t numBins () const
 Number of equidistant radius bins.
size_t numJets () const
 Number of jets which passed cuts.
double rMin () const
 $ r_\text{min} $ value.
double rMax () const
 $ r_\text{max} $ value.
double ptMin () const
 $ p_\perp^\text{min} $ value.
double ptMax () const
 $ p_\perp^\text{max} $ value.
double rBinMin (size_t rbin) const
 Central $ r $ value for bin rbin.
double rBinMax (size_t rbin) const
 Central $ r $ value for bin rbin.
double rBinMid (size_t rbin) const
 Central $ r $ value for bin rbin.
double diffJetShape (size_t ijet, size_t rbin) const
 Return value of differential jet shape profile histo bin.
double intJetShape (size_t ijet, size_t rbin) const
 Return value of integrated jet shape profile histo bin.
Constructors etc.
 JetShape (const JetAlg &jetalg, double rmin, double rmax, size_t nbins, double ptmin=0, double ptmax=MAXDOUBLE, double absrapmin=-MAXDOUBLE, double absrapmax=-MAXDOUBLE, RapScheme rapscheme=RAPIDITY)
 Constructor from histo range and number of bins.
 JetShape (const JetAlg &jetalg, vector< double > binedges, double ptmin=0, double ptmax=MAXDOUBLE, double absrapmin=-MAXDOUBLE, double absrapmax=-MAXDOUBLE, RapScheme rapscheme=RAPIDITY)
 Constructor from vector of bin edges.
virtual const Projectionclone () const
 Clone on the heap.
- Public Member Functions inherited from Rivet::Projection
bool before (const Projection &p) const
virtual const std::set< PdgIdPairbeamPairs () const
virtual std::string name () const
 Get the name of the projection.
ProjectionaddPdgIdPair (PdgId beam1, PdgId beam2)
 Add a colliding beam pair.
LoggetLog () const
 Get a Log object based on the getName() property of the calling projection object.
void setName (const std::string &name)
 Used by derived classes to set their name.
 Projection ()
 The default constructor.
virtual ~Projection ()
 The destructor.
- Public Member Functions inherited from Rivet::ProjectionApplier
 ProjectionApplier ()
 Constructor.
std::set< ConstProjectionPtrgetProjections () const
 Get the contained projections, including recursion.
template<typename PROJ >
const PROJ & getProjection (const std::string &name) const
 Get the named projection, specifying return type via a template argument.
const ProjectiongetProjection (const std::string &name) const
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const PROJ &proj) const
 Apply the supplied projection on event.
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const Projection &proj) const
 Apply the supplied projection on event.
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const std::string &name) const
 Apply the named projection on event.

Protected Member Functions

void project (const Event &e)
 Apply the projection to the event.
int compare (const Projection &p) const
 Compare projections.
- Protected Member Functions inherited from Rivet::Projection
Cmp< ProjectionmkNamedPCmp (const Projection &otherparent, const std::string &pname) const
Cmp< ProjectionmkPCmp (const Projection &otherparent, const std::string &pname) const
- Protected Member Functions inherited from Rivet::ProjectionApplier
ProjectionHandlergetProjHandler () const
 Get a reference to the ProjectionHandler for this thread.
template<typename PROJ >
const PROJ & addProjection (const PROJ &proj, const std::string &name)

Detailed Description

Calculate the jet shape.

Calculate the differential and integral jet shapes in \form#54 for a given
set of jets. This particular jet shape projection calculates jet shapes relative
to jet centroids, using only the particles associated to each jet, for the hardest

$ n $ jets.

The rapidity scheme ( \form#4 or \form#6) has to be specified when
invoking the constructor.

The differential jet shape around a given jet axis at distance interval

$ r \pm \delta{r}/2 $ is defined as

\[ \rho(r) = \frac{1}{\delta r} \frac{1}{N_\mathrm{jets}} \sum_\mathrm{jets} \frac{P_\perp(r - \delta r/2, r+\delta r/2)}{p_\perp(0, R)} \]

with $ 0 \le r \le R $ and $ P_\perp(r_1, r_2) = \sum_{\in [r_1, r_2)} p_\perp $.

The integral jet shape around a given jet axes until distance $ r $ is defined as

\[ \Psi(r) = \frac{1}{N_\mathrm{jets}} \sum_\mathrm{jets} \frac{P_\perp(0, r)}{p_\perp(0, R)} \]

with $ 0 \le r \le R $ and $ P_\perp(r_1, r_2) = \sum_{\in [r_1, r_2)} p_\perp $.

The constructor expects also the binning in radius $ r $ to be supplied.


Member Function Documentation

void Rivet::JetShape::calc ( const Jets jets)

Do the calculation directly on a supplied collection of Jet objects.

Todo:
Introduce a better (i.e. more safe and general) eta/y selection mechanism: MomentumFilter

References clear(), Rivet::FourVector::eta(), Rivet::index_between(), Rivet::inRange(), Rivet::integral(), Rivet::Particle::momentum(), Rivet::Jet::momentum(), numBins(), Rivet::Jet::particles(), Rivet::FourMomentum::pT(), and Rivet::FourMomentum::rapidity().

Referenced by project().

void Rivet::JetShape::project ( const Event e)
protectedvirtual

Apply the projection to the event.

Todo:
Provide int and diff jet shapes with some sort of area normalisation?

Implements Rivet::Projection.

References calc().


The documentation for this class was generated from the following files: