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

| Rivet 3.1.9

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
15 class GammaGammaKinematics : public Projection {
16 public:
17
19 GammaGammaKinematics(const GammaGammaLeptons & lepton = GammaGammaLeptons(),
20 const std::map<std::string,std::string> & opts =
21 std::map<std::string,std::string>())
22 : _theQ2(make_pair(-1.0,-1.0)), _theW2(-1.0) //,_theX(-1.0), _theY(-1.0), _theS(-1.0)
23 {
24 setName("GammaGammaKinematics");
25 //addPdgIdPair(ANY, hadid);
26 declare(Beam(), "Beam");
27 declare(lepton, "Lepton");
28 }
29
31 DEFAULT_RIVET_PROJ_CLONE(GammaGammaKinematics);
32
33
35 using Projection::operator =;
36
37
38 protected:
39
41 virtual void project(const Event& e);
42
44 virtual CmpState compare(const Projection& p) const;
45
46
47 public:
48
50 pair<double,double> Q2() const { return _theQ2; }
51
53 double W2() const { return _theW2; }
54
56 const ParticlePair& beamLeptons() const {
57 return _inLepton;
58 }
59
61 const ParticlePair & scatteredLeptons() const {
62 return _outLepton;
63 }
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
83#endif
Rivet::Beam
Project out the incoming beams.
Definition Beam.hh:129
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::GammaGammaKinematics
Get the gamma gamma kinematic variables and relevant boosts for an event.
Definition GammaGammaKinematics.hh:15
Rivet::GammaGammaKinematics::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(GammaGammaKinematics)
Clone on the heap.
Rivet::GammaGammaKinematics::scatteredLeptons
const ParticlePair & scatteredLeptons() const
The scattered GammaGamma lepton.
Definition GammaGammaKinematics.hh:61
Rivet::GammaGammaKinematics::beamLeptons
const ParticlePair & beamLeptons() const
The incoming lepton beam particle.
Definition GammaGammaKinematics.hh:56
Rivet::GammaGammaKinematics::project
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
Rivet::GammaGammaKinematics::compare
virtual CmpState compare(const Projection &p) const
Compare with other projections.
Rivet::GammaGammaKinematics::Q2
pair< double, double > Q2() const
The .
Definition GammaGammaKinematics.hh:50
Rivet::GammaGammaKinematics::W2
double W2() const
The .
Definition GammaGammaKinematics.hh:53
Rivet::GammaGammaKinematics::GammaGammaKinematics
GammaGammaKinematics(const GammaGammaLeptons &lepton=GammaGammaLeptons(), const std::map< std::string, std::string > &opts=std::map< std::string, std::string >())
The default constructor.
Definition GammaGammaKinematics.hh:19
Rivet::GammaGammaLeptons
Get the incoming and outgoing leptons in a gamma gamma collision event in e+e-.
Definition GammaGammaLeptons.hh:18
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::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet
Definition MC_Cent_pPb.hh:10
Rivet::ParticlePair
std::pair< Particle, Particle > ParticlePair
Typedef for a pair of Particle objects.
Definition Particle.hh:42