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

| Rivet 3.1.9

BeamThrust.hh
1// -*- C++ -*-
2#ifndef RIVET_BeamThrust_HH
3#define RIVET_BeamThrust_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 BeamThrust : public Projection {
14 public:
15
17 BeamThrust() {}
18
19 BeamThrust(const FinalState& fsp) {
20 setName("BeamThrust");
21 declare(fsp, "FS");
22 }
23
25 DEFAULT_RIVET_PROJ_CLONE(BeamThrust);
26
28 using Projection::operator =;
29
30
31 protected:
32
34 void project(const Event& e) {
35 const vector<Particle> ps
36 = applyProjection<FinalState>(e, "FS").particles();
37 calc(ps);
38 }
39
41 CmpState compare(const Projection& p) const {
42 return mkNamedPCmp(p, "FS");
43 }
44
45 public:
46
47 double beamthrust() const { return _beamthrust; }
48
51
52
54 void calc(const FinalState& fs);
55
57 void calc(const vector<Particle>& fsparticles);
58
60 void calc(const vector<FourMomentum>& fsmomenta);
61
63
64
65 protected:
66
68 double _beamthrust;
69
70
71 protected:
72
74 void _calcBeamThrust(const vector<FourMomentum>& fsmomenta);
75
76 };
77
78}
79
80#endif
Rivet::BeamThrust
Calculator of the beam-thrust observable.
Definition BeamThrust.hh:13
Rivet::BeamThrust::calc
void calc(const vector< Particle > &fsparticles)
Manually calculate the beamthrust, without engaging the caching system.
Rivet::BeamThrust::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(BeamThrust)
Clone on the heap.
Rivet::BeamThrust::compare
CmpState compare(const Projection &p) const
Compare projections.
Definition BeamThrust.hh:41
Rivet::BeamThrust::calc
void calc(const vector< FourMomentum > &fsmomenta)
Manually calculate the beamthrust, without engaging the caching system.
Rivet::BeamThrust::BeamThrust
BeamThrust()
Constructor.
Definition BeamThrust.hh:17
Rivet::BeamThrust::calc
void calc(const FinalState &fs)
Manually calculate the beamthrust, without engaging the caching system.
Rivet::BeamThrust::project
void project(const Event &e)
Perform the projection on the Event.
Definition BeamThrust.hh:34
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::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::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