ParisiTensor.hh
// -*- C++ -*-
#ifndef RIVET_ParisiTensor_HH
#define RIVET_ParisiTensor_HH
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/Sphericity.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class ParisiTensor : public Projection {
public:
ParisiTensor(const FinalState& fsp)
{
setName("ParisiTensor");
addProjection(fsp, "FS");
addProjection(Sphericity(fsp, 1.0), "Sphericity");
clear();
}
virtual const Projection* clone() const {
return new ParisiTensor(*this);
}
protected:
void project(const Event& e);
int compare(const Projection& p) const;
public:
void clear();
public:
double C() const { return _C; }
double D() const { return _D; }
double lambda1() const { return _lambda[0]; }
double lambda2() const { return _lambda[1]; }
double lambda3() const { return _lambda[2]; }
private:
double _C, _D;
double _lambda[3];
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::ParisiTensor::ParisiTensor
ParisiTensor(const FinalState &fsp)
Constructor. The provided FinalState projection must live throughout the run.
Definition: ParisiTensor.hh:44
Rivet::ParisiTensor::project
void project(const Event &e)
Perform the projection on the Event.
Definition: ParisiTensor.cc:23
Rivet::ParisiTensor::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: ParisiTensor.hh:53
Rivet::Sphericity
Calculate the sphericity event shape.
Definition: Sphericity.hh:51
Rivet::Event
Definition: Event.hh:22
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::ParisiTensor
Calculate the Parisi event shape tensor (or linear momentum tensor).
Definition: ParisiTensor.hh:40
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::ParisiTensor::clear
void clear()
Clear the projection.
Definition: ParisiTensor.cc:14
Rivet::ParisiTensor::compare
int compare(const Projection &p) const
Compare with other projections.
Definition: ParisiTensor.cc:9