rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
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 
9 namespace Rivet {
10 
11 
12  class FParameter : public Projection {
13  public:
14 
16 
17 
19  FParameter(const FinalState& fsp);
20 
23 
25 
26 
27  protected:
28 
30  void project(const Event& e);
31 
33  //int compare(const Projection& p) const;
34  // Taken from Thrust.hh
35  int compare(const Projection& p) const {
36  return mkNamedPCmp(p, "FS");
37  }
38  public:
39 
41  void clear();
42 
46  double F() const { return lambda1() >= lambda2() ? lambda2()/lambda1() : lambda1()/lambda2(); }
48 
51  double lambda1() const { return _lambdas[0]; }
52  double lambda2() const { return _lambdas[1]; }
54 
55 
58 
59 
61  void calc(const FinalState& fs);
62 
64  void calc(const vector<Particle>& fsparticles);
65 
67  void calc(const vector<FourMomentum>& fsmomenta);
68 
70  void calc(const vector<Vector3>& fsmomenta);
71 
73  private:
75  vector<double> _lambdas;
76 
77  private:
78 
80  void _calcFParameter(const vector<Vector3>& fsmomenta);
81 
82  };
83 }
84 
85 
86 #endif
Definition: ALICE_2010_I880049.cc:13
int compare(const Projection &p) const
Compare with other projections.
Definition: FParameter.hh:35
void project(const Event &e)
Perform the projection on the Event.
Definition: FParameter.cc:19
Definition: Event.hh:22
Definition: FParameter.hh:12
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
void calc(const FinalState &fs)
Manually calculate the sphericity, without engaging the caching system.
Definition: FParameter.cc:25
DEFAULT_RIVET_PROJ_CLONE(FParameter)
Clone on the heap.
Base class for all Rivet projections.
Definition: Projection.hh:29
FParameter(const FinalState &fsp)
Constructor.
Definition: FParameter.cc:7
void clear()
Reset the projection.
Definition: FParameter.cc:14