2#ifndef RIVET_DISKinematics_HH
3#define RIVET_DISKinematics_HH
5#include "Rivet/Particle.hh"
6#include "Rivet/Event.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Projections/DISLepton.hh"
9#include "Rivet/Projections/Beam.hh"
20 const std::map<std::string,std::string> & opts =
21 std::map<std::string,std::string>())
22 : _theQ2(-1.0), _theW2(-1.0), _theX(-1.0), _theY(-1.0), _theS(-1.0), _theGH(-1.0)
46 double Q2()
const {
return _theQ2; }
49 double W2()
const {
return _theW2; }
52 double x()
const {
return _theX; }
55 double y()
const {
return _theY; }
58 double s()
const {
return _theS; }
71 const LorentzTransform& boostBreit()
const {
76 const Particle& beamHadron()
const {
81 const Particle& beamLepton()
const {
86 const Particle& scatteredLepton()
const {
93 int orientation()
const {
94 return sign(_inHadron.pz());
119 Particle _inHadron, _inLepton, _outLepton;
122 LorentzTransform _hcm;
125 LorentzTransform _breit;
Project out the incoming beams.
Definition: Beam.hh:129
Get the DIS kinematic variables and relevant boosts for an event.
Definition: DISKinematics.hh:15
virtual CmpState compare(const Projection &p) const
Compare with other projections.
DEFAULT_RIVET_PROJ_CLONE(DISKinematics)
Clone on the heap.
double y() const
The inelasticity .
Definition: DISKinematics.hh:55
double Q2() const
The .
Definition: DISKinematics.hh:46
double W2() const
The .
Definition: DISKinematics.hh:49
double x() const
The Bjorken .
Definition: DISKinematics.hh:52
DISKinematics(const DISLepton &lepton=DISLepton(), const std::map< std::string, std::string > &opts=std::map< std::string, std::string >())
The default constructor.
Definition: DISKinematics.hh:19
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
double gammahad() const
The angle $f\gamma_{had}.
Definition: DISKinematics.hh:61
double s() const
The centre of mass energy .
Definition: DISKinematics.hh:58
Get the incoming and outgoing leptons in a DIS event.
Definition: DISLepton.hh:18
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10
std::enable_if< std::is_arithmetic< NUM >::value, int >::type sign(NUM val)
Find the sign of a number.
Definition: MathUtils.hh:266