Rivet  1.8.3
TotalVisibleMomentum.hh
1 // -*- C++ -*-
2 #ifndef RIVET_TotalVisibleMomentum_HH
3 #define RIVET_TotalVisibleMomentum_HH
4 
5 #include "Rivet/Rivet.hh"
6 #include "Rivet/Projection.hh"
7 #include "Rivet/Projections/FinalState.hh"
8 #include "Rivet/Particle.hh"
9 #include "Rivet/Event.hh"
10 
11 namespace Rivet {
12 
13 
17 
18  public:
19 
22  {
23  setName("TotalVisibleMomentum");
24  addProjection(fsp, "FS");
25  getLog() << Log::WARNING << "TotalVisibleMomentum projection is deprecated: "
26  << "please use the MissingMomentum projection instead." << endl;
27  }
28 
30  virtual const Projection* clone() const {
31  return new TotalVisibleMomentum(*this);
32  }
33 
34 
35  public:
37  FourMomentum& momentum() { return _momentum; }
38 
40  const FourMomentum& momentum() const { return _momentum; }
41 
43  double scalarET() const { return _set; }
44 
45 
46  protected:
47 
49  void project(const Event& e);
50 
52  int compare(const Projection& p) const;
53 
54  private:
55 
57  FourMomentum _momentum;
58 
60  double _set;
61 
62  };
63 
64 }
65 
66 
67 #endif