Rivet: /Users/chrisg/software/rivet/include/Rivet/Projections/FParameter.hh Source File

| Rivet 3.1.9

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
20 FParameter(const FinalState& fsp);
21
23 DEFAULT_RIVET_PROJ_CLONE(FParameter);
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 { return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
54
57 double lambda1() const { return _lambdas[0]; }
58 double lambda2() const { return _lambdas[1]; }
60
61
64
65
67 void calc(const FinalState& fs);
68
70 void calc(const vector<Particle>& fsparticles);
71
73 void calc(const vector<FourMomentum>& fsmomenta);
74
76 void calc(const vector<Vector3>& fsmomenta);
77
79
80
81 protected:
82
84 vector<double> _lambdas;
85
86
87 protected:
88
90 void _calcFParameter(const vector<Vector3>& fsmomenta);
91
92 };
93
94
95}
96
97#endif
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::FParameter
Calculator of the -parameter observable.
Definition FParameter.hh:13
Rivet::FParameter::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(FParameter)
Clone on the heap.
Rivet::FParameter::calc
void calc(const vector< Vector3 > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
Rivet::FParameter::FParameter
FParameter(const FinalState &fsp)
Constructor.
Rivet::FParameter::calc
void calc(const vector< Particle > &fsparticles)
Manually calculate the sphericity, without engaging the caching system.
Rivet::FParameter::compare
CmpState compare(const Projection &p) const
Compare with other projections.
Definition FParameter.hh:39
Rivet::FParameter::calc
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the sphericity, without engaging the caching system.
Rivet::FParameter::project
void project(const Event &e)
Perform the projection on the Event.
Rivet::FParameter::calc
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
Rivet::FParameter::clear
void clear()
Reset the projection.
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Rivet::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet
Definition MC_Cent_pPb.hh:10