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

| Rivet 3.1.9

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
14 class GammaGammaFinalState: public FinalState {
15 public:
16
18
19
21 GammaGammaFinalState(const FinalState& fs=FinalState(), const GammaGammaKinematics& kinematicsp=GammaGammaKinematics())
22 {
23 setName("GammaGammaFinalState");
24 declare(fs, "FS");
25 declare(kinematicsp, "Kinematics");
26 }
27
30 GammaGammaFinalState(const Cut& c, const GammaGammaKinematics& kinematicsp=GammaGammaKinematics())
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
42 GammaGammaFinalState(const GammaGammaKinematics& kinematicsp)
43 : GammaGammaFinalState(FinalState(), kinematicsp)
44 { }
45
46
48 DEFAULT_RIVET_PROJ_CLONE(GammaGammaFinalState);
49
51
52
54 using Projection::operator =;
55
56
57 protected:
58
60 void project(const Event& e);
61
63 CmpState compare(const Projection& p) const {
64 return mkNamedPCmp(p, "Kinematics") || mkNamedPCmp(p, "FS");
65 }
66
67
68 };
69
70
71}
72
73#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::GammaGammaFinalState
Final state particles boosted to the hadronic center of mass system.
Definition GammaGammaFinalState.hh:14
Rivet::GammaGammaFinalState::GammaGammaFinalState
GammaGammaFinalState(const GammaGammaKinematics &kinematicsp)
Definition GammaGammaFinalState.hh:42
Rivet::GammaGammaFinalState::GammaGammaFinalState
GammaGammaFinalState(const Cut &c, const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition GammaGammaFinalState.hh:30
Rivet::GammaGammaFinalState::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(GammaGammaFinalState)
Clone on the heap.
Rivet::GammaGammaFinalState::GammaGammaFinalState
GammaGammaFinalState(const FinalState &fs=FinalState(), const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition GammaGammaFinalState.hh:21
Rivet::GammaGammaFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Rivet::GammaGammaFinalState::compare
CmpState compare(const Projection &p) const
Compare projections.
Definition GammaGammaFinalState.hh:63
Rivet::GammaGammaKinematics
Get the gamma gamma kinematic variables and relevant boosts for an event.
Definition GammaGammaKinematics.hh:15
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