Rivet API documentation

Rivet 4.1.3
FParameter.hh
1// -*- C++ -*-
2#ifndef RIVET_FParameter_HH
3#define RIVET_FParameter_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Projection.hh"
7#include "Rivet/Projections/FinalState.hh"
8
9namespace Rivet {
10
11
13 class FParameter : public Projection {
14 public:
15
18
21
24
26
28 using Projection::operator=;
29
30
31 protected:
32
34 void project(const Event& e);
35
37 //CmpState compare(const Projection& p) const;
38 // Taken from Thrust.hh
39 CmpState compare(const Projection& p) const {
40 return mkNamedPCmp(p, "FS");
41 }
42
43
44 public:
45
47 void clear();
48
52 double F() const {
53 return lambda1() >= lambda2() ? lambda2() / lambda1() : lambda1() / lambda2();
54 }
56
59 double lambda1() const {
60 return _lambdas[0];
61 }
62 double lambda2() const {
63 return _lambdas[1];
64 }
66
67
71
73 void calc(const FinalState& fs);
74
76 void calc(const vector<Particle>& fsparticles);
77
79 void calc(const vector<FourMomentum>& fsmomenta);
80
82 void calc(const vector<Vector3>& fsmomenta);
83
85
86
87 protected:
88
90 vector<double> _lambdas;
91
92
93 protected:
94
96 void _calcFParameter(const vector<Vector3>& fsmomenta);
97 };
98
99
100}
101
102#endif
void calc(const vector< Vector3 > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
FParameter(const FinalState &fsp)
Constructor.
RIVET_DEFAULT_PROJ_CLONE(FParameter)
Clone on the heap.
void calc(const vector< Particle > &fsparticles)
Manually calculate the sphericity, without engaging the caching system.
CmpState compare(const Projection &p) const
Compare with other projections.
Definition FParameter.hh:39
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
void project(const Event &e)
Perform the projection on the Event.
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
void clear()
Reset the projection.
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Projection()
The default constructor.
friend class Event
Event is a friend.
Definition Projection.hh:33
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
Definition LHCbCommon.hh:9