Rivet  1.8.3
DISKinematics.hh
1 // -*- C++ -*-
2 #ifndef RIVET_DISKinematics_HH
3 #define RIVET_DISKinematics_HH
4 
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"
10 
11 namespace Rivet {
12 
13 
15  class DISKinematics : public Projection {
16 
17  public:
18 
21  : _theQ2(-1.0), _theW2(-1.0), _theX(-1.0), _theY(-1.0), _theS(-1.0)
22  {
23  setName("DISKinematics");
24  //addPdgIdPair(ANY, hadid);
25  addProjection(Beam(), "Beam");
26  addProjection(DISLepton(), "Lepton");
27  }
28 
30  virtual const Projection* clone() const {
31  return new DISKinematics(*this);
32  }
33 
34 
35  protected:
36 
38  virtual void project(const Event& e);
39 
41  virtual int compare(const Projection& p) const;
42 
43 
44  public:
45 
47  double Q2() const { return _theQ2; }
48 
50  double W2() const { return _theW2; }
51 
53  double x() const { return _theX; }
54 
56  double y() const { return _theY; }
57 
59  double s() const { return _theS; }
60 
61 
62 
64  const LorentzTransform& boostHCM() const {
65  return _hcm;
66  }
67 
69  const LorentzTransform& boostBreit() const {
70  return _breit;
71  }
72 
74  const Particle& beamHadron() const {
75  return _inHadron;
76  }
77 
78  private:
79 
81  double _theQ2;
82 
84  double _theW2;
85 
87  double _theX;
88 
90  double _theY;
91 
93  double _theS;
94 
95  Particle _inHadron;
96 
98  LorentzTransform _hcm;
99 
101  LorentzTransform _breit;
102  };
103 
104 
105 }
106 
107 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
double s() const
The centre of mass energy .
Definition: DISKinematics.hh:59
const LorentzTransform & boostHCM() const
The LorentzRotation needed to boost a particle to the hadronic CM frame.
Definition: DISKinematics.hh:64
double y() const
The Inelasticity .
Definition: DISKinematics.hh:56
Get the DIS kinematic variables and relevant boosts for an event.
Definition: DISKinematics.hh:15
Representation of particles from a HepMC::GenEvent.
Definition: Particle.hh:16
double Q2() const
The .
Definition: DISKinematics.hh:47
DISKinematics()
The default constructor.
Definition: DISKinematics.hh:20
double x() const
The Bjorken .
Definition: DISKinematics.hh:53
double W2() const
The .
Definition: DISKinematics.hh:50
Definition: Event.hh:22
Object implementing Lorentz transform calculations and boosts.
Definition: LorentzTrans.hh:21
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
Definition: DISKinematics.cc:12
const Particle & beamHadron() const
The incoming Hadron beam particle.
Definition: DISKinematics.hh:74
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Project out the incoming beams.
Definition: Beam.hh:39
const LorentzTransform & boostBreit() const
The LorentzRotation needed to boost a particle to the hadronic Breit frame.
Definition: DISKinematics.hh:69
virtual int compare(const Projection &p) const
Compare with other projections.
Definition: DISKinematics.cc:73
virtual const Projection * clone() const
Clone on the heap.
Definition: DISKinematics.hh:30
Get the incoming and outgoing leptons in a DIS event.
Definition: DISLepton.hh:14
Base class for all Rivet projections.
Definition: Projection.hh:28