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

| Rivet 3.1.9

ParisiTensor.hh
1// -*- C++ -*-
2#ifndef RIVET_ParisiTensor_HH
3#define RIVET_ParisiTensor_HH
4
5#include "Rivet/Projection.hh"
6#include "Rivet/Projections/FinalState.hh"
7#include "Rivet/Projections/Sphericity.hh"
8#include "Rivet/Event.hh"
9
10namespace Rivet {
11
12
39 class ParisiTensor : public Projection {
40 public:
41
43 ParisiTensor(const FinalState& fsp)
44 {
45 setName("ParisiTensor");
46 declare(fsp, "FS");
47 declare(Sphericity(fsp, 1.0), "Sphericity");
48 clear();
49 }
50
52 DEFAULT_RIVET_PROJ_CLONE(ParisiTensor);
53
55 using Projection::operator =;
56
57
58 protected:
59
61 void project(const Event& e);
62
64 CmpState compare(const Projection& p) const;
65
66
67 public:
68
70 void clear();
71
72
73 public:
74
77 double C() const { return _C; }
78 double D() const { return _D; }
80
83 double lambda1() const { return _lambda[0]; }
84 double lambda2() const { return _lambda[1]; }
85 double lambda3() const { return _lambda[2]; }
87
88
89 protected:
90
92 double _C, _D;
93
95 double _lambda[3];
96
97 };
98
99
100}
101
102#endif
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Rivet::ParisiTensor
Calculate the Parisi event shape tensor (or linear momentum tensor).
Definition ParisiTensor.hh:39
Rivet::ParisiTensor::project
void project(const Event &e)
Perform the projection on the Event.
Rivet::ParisiTensor::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(ParisiTensor)
Clone on the heap.
Rivet::ParisiTensor::clear
void clear()
Clear the projection.
Rivet::ParisiTensor::compare
CmpState compare(const Projection &p) const
Compare with other projections.
Rivet::ParisiTensor::ParisiTensor
ParisiTensor(const FinalState &fsp)
Constructor. The provided FinalState projection must live throughout the run.
Definition ParisiTensor.hh:43
Rivet::ProjectionApplier::declare
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Rivet::Sphericity
Calculate the sphericity event shape.
Definition Sphericity.hh:52
Rivet::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet
Definition MC_Cent_pPb.hh:10