rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
FParameter.hh
1// -*- C++ -*-
2#ifndef RIVET_FParameter_HH
3#define RIVET_FParameter_HH
4
5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/FinalState.hh"
7#include "Rivet/Event.hh"
8
9namespace Rivet {
10
11
13 class FParameter : public Projection {
14 public:
15
17
18
21
24
26
27
28 protected:
29
31 void project(const Event& e);
32
34 //CmpState compare(const Projection& p) const;
35 // Taken from Thrust.hh
36 CmpState compare(const Projection& p) const {
37 return mkNamedPCmp(p, "FS");
38 }
39
40
41 public:
42
44 void clear();
45
49 double F() const { return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
51
54 double lambda1() const { return _lambdas[0]; }
55 double lambda2() const { return _lambdas[1]; }
57
58
61
62
64 void calc(const FinalState& fs);
65
67 void calc(const vector<Particle>& fsparticles);
68
70 void calc(const vector<FourMomentum>& fsmomenta);
71
73 void calc(const vector<Vector3>& fsmomenta);
74
76 private:
78 vector<double> _lambdas;
79
80 private:
81
83 void _calcFParameter(const vector<Vector3>& fsmomenta);
84
85 };
86}
87
88
89#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
Calculator of the -parameter observable.
Definition: FParameter.hh:13
DEFAULT_RIVET_PROJ_CLONE(FParameter)
Clone on the heap.
void calc(const vector< Vector3 > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
FParameter(const FinalState &fsp)
Constructor.
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:36
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
Base class for all Rivet projections.
Definition: Projection.hh:29
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10