Rivet  3.1.4
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 
8 namespace Rivet {
9 
10 
15  public:
16 
18 
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
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:142
Definition: MC_Cent_pPb.hh:10
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
GammaGammaFinalState(const Cut &c, const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition: GammaGammaFinalState.hh:30
GammaGammaFinalState(const GammaGammaKinematics &kinematicsp)
Definition: GammaGammaFinalState.hh:42
Get the gamma gamma kinematic variables and relevant boosts for an event.
Definition: GammaGammaKinematics.hh:15
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
void project(const Event &e)
Apply the projection on the supplied event.
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
DEFAULT_RIVET_PROJ_CLONE(GammaGammaFinalState)
Clone on the heap.
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Final state particles boosted to the hadronic center of mass system.
Definition: GammaGammaFinalState.hh:14
CmpState compare(const Projection &p) const
Compare projections.
Definition: GammaGammaFinalState.hh:59
GammaGammaFinalState(const FinalState &fs=FinalState(), const GammaGammaKinematics &kinematicsp=GammaGammaKinematics())
Definition: GammaGammaFinalState.hh:21
Base class for all Rivet projections.
Definition: Projection.hh:29