rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.2
GammaGammaFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_GammaGammaFinalState_HH
3#define RIVET_GammaGammaFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/GammaGammaKinematics.hh"
7
8namespace Rivet {
9
10
15 public:
16
22 {
23 setName("GammaGammaFinalState");
24 declare(fs, "FS");
25 declare(kinematicsp, "Kinematics");
26 }
27
31 : GammaGammaFinalState(FinalState(c), kinematicsp)
32 { }
33
34 // /// @brief Constructor with default FinalState
35 // /// @note The GammaGammaKinematics has no parameters, hence explicitly passing it as an arg shouldn't be necessary.
36 // GammaGammaFinalState(const GammaGammaKinematics& kinematicsp=GammaGammaKinematics())
37 // : GammaGammaFinalState(FinalState(), kinematicsp)
38 // { }
39
40
43
45
46
48 using Projection::operator =;
49
50
51 protected:
52
54 void project(const Event& e);
55
57 CmpState compare(const Projection& p) const {
58 return mkNamedPCmp(p, "Kinematics") || mkNamedPCmp(p, "FS");
59 }
60
61
62 };
63
64
65}
66
67#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Final state particles boosted to the hadronic center of mass system.
Definition GammaGammaFinalState.hh:14
GammaGammaFinalState(const Cut &c, const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition GammaGammaFinalState.hh:30
RIVET_DEFAULT_PROJ_CLONE(GammaGammaFinalState)
Clone on the heap.
void project(const Event &e)
Apply the projection on the supplied event.
CmpState compare(const Projection &p) const
Compare projections.
Definition GammaGammaFinalState.hh:57
Get the gamma gamma kinematic variables and relevant boosts for an event.
Definition GammaGammaKinematics.hh:15
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition MC_CENT_PPB_Projections.hh:10