Rivet API documentation

Rivet 4.1.3
GammaGammaKinematics.hh
1// -*- C++ -*-
2#ifndef RIVET_GammaGammaKinematics_HH
3#define RIVET_GammaGammaKinematics_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Particle.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Projections/Beam.hh"
9#include "Rivet/Projections/GammaGammaLeptons.hh"
10
11namespace Rivet {
12
13
16 public:
17
20 : _theQ2(make_pair(-1.0, -1.0)), _theW2(-1.0) {
21 setName("GammaGammaKinematics");
22 //addPdgIdPair(ANY, hadid);
23 declare(Beam(), "Beam");
24 declare(lepton, "Lepton");
25 }
26
29
30
32 using Projection::operator=;
33
34
35 protected:
36
38 virtual void project(const Event& e);
39
41 virtual CmpState compare(const Projection& p) const;
42
43
44 public:
45
47 pair<double, double> Q2() const {
48 return _theQ2;
49 }
50
52 double W2() const {
53 return _theW2;
54 }
55
57 const ParticlePair& beamLeptons() const {
58 return _inLepton;
59 }
60
63 return _outLepton;
64 }
65
66
67 protected:
68
70 pair<double, double> _theQ2;
71
73 double _theW2;
74
76 ParticlePair _inLepton, _outLepton;
77 };
78
79
80}
81
82#endif
Project out the incoming beams.
Definition Beam.hh:15
const ParticlePair & scatteredLeptons() const
The scattered GammaGamma lepton.
Definition GammaGammaKinematics.hh:62
const ParticlePair & beamLeptons() const
The incoming lepton beam particle.
Definition GammaGammaKinematics.hh:57
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:47
double W2() const
The .
Definition GammaGammaKinematics.hh:52
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:205
Projection()
The default constructor.
friend class Event
Event is a friend.
Definition Projection.hh:33
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
Definition LHCbCommon.hh:9
std::pair< Particle, Particle > ParticlePair
Typedef for a pair of Particle objects.
Definition Particle.hh:43