rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
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  public:
17 
20  : _theQ2(-1.0), _theW2(-1.0), _theX(-1.0), _theY(-1.0), _theS(-1.0)
21  {
22  setName("DISKinematics");
23  //addPdgIdPair(ANY, hadid);
24  addProjection(Beam(), "Beam");
25  addProjection(DISLepton(), "Lepton");
26  }
27 
30 
31 
32  protected:
33 
35  virtual void project(const Event& e);
36 
38  virtual int compare(const Projection& p) const;
39 
40 
41  public:
42 
44  double Q2() const { return _theQ2; }
45 
47  double W2() const { return _theW2; }
48 
50  double x() const { return _theX; }
51 
53  double y() const { return _theY; }
54 
56  double s() const { return _theS; }
57 
58 
59 
61  const LorentzTransform& boostHCM() const {
62  return _hcm;
63  }
64 
66  const LorentzTransform& boostBreit() const {
67  return _breit;
68  }
69 
71  const Particle& beamHadron() const {
72  return _inHadron;
73  }
74 
76  const Particle& beamLepton() const {
77  return _inLepton;
78  }
79 
81  const Particle& scatteredLepton() const {
82  return _outLepton;
83  }
84 
88  const int orientation() const {
89  return sign(_inHadron.pz());
90  }
91 
92 
93  private:
94 
96  double _theQ2;
97 
99  double _theW2;
100 
102  double _theX;
103 
105  double _theY;
106 
108  double _theS;
109 
111  Particle _inHadron, _inLepton, _outLepton;
112 
114  LorentzTransform _hcm;
115 
117  LorentzTransform _breit;
118 
119  };
120 
121 
122 }
123 
124 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
double s() const
The centre of mass energy .
Definition: DISKinematics.hh:56
const LorentzTransform & boostHCM() const
The LorentzRotation needed to boost a particle to the hadronic CM frame.
Definition: DISKinematics.hh:61
double y() const
The inelasticity .
Definition: DISKinematics.hh:53
const int orientation() const
1/-1 multiplier indicating (respectively) whether the event has conventional orientation or not ...
Definition: DISKinematics.hh:88
Get the DIS kinematic variables and relevant boosts for an event.
Definition: DISKinematics.hh:15
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition: Particle.hh:18
double Q2() const
The .
Definition: DISKinematics.hh:44
const Particle & scatteredLepton() const
The scattered DIS lepton.
Definition: DISKinematics.hh:81
DISKinematics()
The default constructor.
Definition: DISKinematics.hh:19
double x() const
The Bjorken .
Definition: DISKinematics.hh:50
double W2() const
The .
Definition: DISKinematics.hh:47
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:8
const Particle & beamHadron() const
The incoming hadron beam particle.
Definition: DISKinematics.hh:71
DEFAULT_RIVET_PROJ_CLONE(DISKinematics)
Clone on the heap.
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
Project out the incoming beams.
Definition: Beam.hh:129
const LorentzTransform & boostBreit() const
The LorentzRotation needed to boost a particle to the hadronic Breit frame.
Definition: DISKinematics.hh:66
virtual int compare(const Projection &p) const
Compare with other projections.
Definition: DISKinematics.cc:74
const Particle & beamLepton() const
The incoming lepton beam particle.
Definition: DISKinematics.hh:76
Get the incoming and outgoing leptons in a DIS event.
Definition: DISLepton.hh:14
Base class for all Rivet projections.
Definition: Projection.hh:29
std::enable_if< std::is_arithmetic< NUM >::value, int >::type sign(NUM val)
Find the sign of a number.
Definition: MathUtils.hh:236