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
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
void project(const Event &e)
Apply the projection to the event.
Definition: TotalVisibleMomentum.cc:14
Definition: Event.hh:22
TotalVisibleMomentum(const FinalState &fsp)
Constructor. Make sure you supply an appropriately vetoed FS!
Definition: TotalVisibleMomentum.hh:21
FourMomentum & momentum()
The projected four-momentum vector.
Definition: TotalVisibleMomentum.hh:37
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Get the total energy vector, allowing missing etc. to be calculated.
Definition: TotalVisibleMomentum.hh:16
virtual const Projection * clone() const
Clone on the heap.
Definition: TotalVisibleMomentum.hh:30
Base class for all Rivet projections.
Definition: Projection.hh:28
double scalarET() const
The projected scalar transverse energy.
Definition: TotalVisibleMomentum.hh:43
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:324
Log & getLog() const
Get a Log object based on the getName() property of the calling projection object.
Definition: Projection.hh:114
const FourMomentum & momentum() const
The projected four-momentum vector.
Definition: TotalVisibleMomentum.hh:40
int compare(const Projection &p) const
Compare projections.
Definition: TotalVisibleMomentum.cc:9