Rivet API documentation

Rivet 4.1.3
ParisiTensor.hh
1// -*- C++ -*-
2#ifndef RIVET_ParisiTensor_HH
3#define RIVET_ParisiTensor_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Projection.hh"
7#include "Rivet/Projections/FinalState.hh"
8#include "Rivet/Projections/Sphericity.hh"
9
10namespace Rivet {
11
12
39 class ParisiTensor : public Projection {
40 public:
41
44 setName("ParisiTensor");
45 declare(fsp, "FS");
46 declare(Sphericity(fsp, 1.0), "Sphericity");
47 clear();
48 }
49
52
54 using Projection::operator=;
55
56
57 protected:
58
60 void project(const Event& e);
61
63 CmpState compare(const Projection& p) const;
64
65
66 public:
67
69 void clear();
70
71
72 public:
73
76 double C() const {
77 return _C;
78 }
79 double D() const {
80 return _D;
81 }
83
86 double lambda1() const {
87 return _lambda[0];
88 }
89 double lambda2() const {
90 return _lambda[1];
91 }
92 double lambda3() const {
93 return _lambda[2];
94 }
96
97
98 protected:
99
101 double _C, _D;
102
104 double _lambda[3];
105 };
106
107
108}
109
110#endif
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
void project(const Event &e)
Perform the projection on the Event.
RIVET_DEFAULT_PROJ_CLONE(ParisiTensor)
Clone on the heap.
void clear()
Clear the projection.
CmpState compare(const Projection &p) const
Compare with other projections.
ParisiTensor(const FinalState &fsp)
Constructor. The provided FinalState projection must live throughout the run.
Definition ParisiTensor.hh:43
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:205
Projection()
The default constructor.
friend class Event
Event is a friend.
Definition Projection.hh:33
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
Calculate the sphericity event shape.
Definition Sphericity.hh:51
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
Definition LHCbCommon.hh:9