rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
GammaGammaKinematics.hh
1// -*- C++ -*-
2#ifndef RIVET_GammaGammaKinematics_HH
3#define RIVET_GammaGammaKinematics_HH
4
5#include "Rivet/Particle.hh"
6#include "Rivet/Event.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Projections/GammaGammaLeptons.hh"
9#include "Rivet/Projections/Beam.hh"
10
11namespace Rivet {
12
13
16 public:
17
20 : _theQ2(make_pair(-1.0,-1.0)), _theW2(-1.0)
21 {
22 setName("GammaGammaKinematics");
23 //addPdgIdPair(ANY, hadid);
24 declare(Beam(), "Beam");
25 declare(lepton, "Lepton");
26 }
27
30
31
33 using Projection::operator =;
34
35
36 protected:
37
39 virtual void project(const Event& e);
40
42 virtual CmpState compare(const Projection& p) const;
43
44
45 public:
46
48 pair<double,double> Q2() const { return _theQ2; }
49
51 double W2() const { return _theW2; }
52
54 const ParticlePair& beamLeptons() const {
55 return _inLepton;
56 }
57
60 return _outLepton;
61 }
62
63
64
65 protected:
66
68 pair<double,double> _theQ2;
69
71 double _theW2;
72
74 ParticlePair _inLepton, _outLepton;
75
76 };
77
78
79}
80
81#endif
Project out the incoming beams.
Definition Beam.hh:15
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Get the gamma gamma kinematic variables and relevant boosts for an event.
Definition GammaGammaKinematics.hh:15
const ParticlePair & scatteredLeptons() const
The scattered GammaGamma lepton.
Definition GammaGammaKinematics.hh:59
const ParticlePair & beamLeptons() const
The incoming lepton beam particle.
Definition GammaGammaKinematics.hh:54
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
virtual CmpState compare(const Projection &p) const
Compare with other projections.
RIVET_DEFAULT_PROJ_CLONE(GammaGammaKinematics)
Clone on the heap.
pair< double, double > Q2() const
The .
Definition GammaGammaKinematics.hh:48
double W2() const
The .
Definition GammaGammaKinematics.hh:51
GammaGammaKinematics(const GammaGammaLeptons &lepton=GammaGammaLeptons())
The default constructor.
Definition GammaGammaKinematics.hh:19
Get the incoming and outgoing leptons in a gamma gamma collision event in e+e-.
Definition GammaGammaLeptons.hh:17
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
Definition MC_CENT_PPB_Projections.hh:10
std::pair< Particle, Particle > ParticlePair
Typedef for a pair of Particle objects.
Definition Particle.hh:38