rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
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
18
19
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
43 : GammaGammaFinalState(FinalState(), kinematicsp)
44 { }
45
46
49
51
52
53 protected:
54
56 void project(const Event& e);
57
59 CmpState compare(const Projection& p) const {
60 return mkNamedPCmp(p, "Kinematics") || mkNamedPCmp(p, "FS");
61 }
62
63
64 };
65
66
67}
68
69#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
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Final state particles boosted to the hadronic center of mass system.
Definition: GammaGammaFinalState.hh:14
GammaGammaFinalState(const GammaGammaKinematics &kinematicsp)
Definition: GammaGammaFinalState.hh:42
GammaGammaFinalState(const Cut &c, const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition: GammaGammaFinalState.hh:30
DEFAULT_RIVET_PROJ_CLONE(GammaGammaFinalState)
Clone on the heap.
GammaGammaFinalState(const FinalState &fs=FinalState(), const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition: GammaGammaFinalState.hh:21
void project(const Event &e)
Apply the projection on the supplied event.
CmpState compare(const Projection &p) const
Compare projections.
Definition: GammaGammaFinalState.hh:59
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)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10