rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
ParisiTensor.hh
1 // -*- C++ -*-
2 #ifndef RIVET_ParisiTensor_HH
3 #define RIVET_ParisiTensor_HH
4 
5 #include "Rivet/Projection.hh"
6 #include "Rivet/Projections/FinalState.hh"
7 #include "Rivet/Projections/Sphericity.hh"
8 #include "Rivet/Event.hh"
9 
10 namespace Rivet {
11 
12 
39  class ParisiTensor : public Projection {
40  public:
41 
44  {
45  setName("ParisiTensor");
46  addProjection(fsp, "FS");
47  addProjection(Sphericity(fsp, 1.0), "Sphericity");
48  clear();
49  }
50 
53 
54 
55  protected:
56 
58  void project(const Event& e);
59 
61  int compare(const Projection& p) const;
62 
63 
64  public:
65 
67  void clear();
68 
69 
70  public:
71 
74  double C() const { return _C; }
75  double D() const { return _D; }
77 
80  double lambda1() const { return _lambda[0]; }
81  double lambda2() const { return _lambda[1]; }
82  double lambda3() const { return _lambda[2]; }
84 
85 
86  private:
87 
89  double _C, _D;
90 
92  double _lambda[3];
93 
94  };
95 
96 
97 }
98 
99 
100 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
ParisiTensor(const FinalState &fsp)
Constructor. The provided FinalState projection must live throughout the run.
Definition: ParisiTensor.hh:43
void project(const Event &e)
Perform the projection on the Event.
Definition: ParisiTensor.cc:21
Calculate the sphericity event shape.
Definition: Sphericity.hh:52
Definition: Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
Calculate the Parisi event shape tensor (or linear momentum tensor).
Definition: ParisiTensor.hh:39
Base class for all Rivet projections.
Definition: Projection.hh:29
DEFAULT_RIVET_PROJ_CLONE(ParisiTensor)
Clone on the heap.
void clear()
Clear the projection.
Definition: ParisiTensor.cc:12
int compare(const Projection &p) const
Compare with other projections.
Definition: ParisiTensor.cc:7