MissingMomentum.hh
// -*- C++ -*-
#ifndef RIVET_MissingMomentum_HH
#define RIVET_MissingMomentum_HH
#include "Rivet/Rivet.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/VisibleFinalState.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class MissingMomentum : public Projection {
public:
MissingMomentum()
{
setName("MissingMomentum");
FinalState fs;
addProjection(fs, "FS");
addProjection(VisibleFinalState(fs), "VisibleFS");
}
MissingMomentum(const FinalState& fs)
{
setName("MissingMomentum");
addProjection(fs, "FS");
addProjection(VisibleFinalState(fs), "VisibleFS");
}
virtual const Projection* clone() const {
return new MissingMomentum(*this);
}
public:
const FourMomentum& visibleMomentum() const { return _momentum; }
const Vector3& vectorEt() const { return _vet; }
double scalarEt() const { return _set; }
protected:
void project(const Event& e);
int compare(const Projection& p) const;
public:
void clear();
private:
FourMomentum _momentum;
double _set;
Vector3 _vet;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet::MissingMomentum::vectorEt
const Vector3 & vectorEt() const
The vector-summed (in)visible transverse energy in the event.
Definition: MissingMomentum.hh:53
Rivet::MissingMomentum::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: MissingMomentum.hh:42
Rivet::MissingMomentum::MissingMomentum
MissingMomentum()
Default constructor with uncritical FS.
Definition: MissingMomentum.hh:23
Rivet::MissingMomentum::MissingMomentum
MissingMomentum(const FinalState &fs)
Constructor.
Definition: MissingMomentum.hh:33
Rivet::Event
Definition: Event.hh:22
Rivet::MissingMomentum::scalarEt
double scalarEt() const
The scalar-summed visible transverse energy in the event.
Definition: MissingMomentum.hh:56
Rivet::MissingMomentum::clear
void clear()
Clear the projection results.
Definition: MissingMomentum.cc:14
Rivet::MissingMomentum
Calculate missing , etc.
Definition: MissingMomentum.hh:19
Rivet::MissingMomentum::compare
int compare(const Projection &p) const
Compare projections.
Definition: MissingMomentum.cc:9
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::MissingMomentum::project
void project(const Event &e)
Apply the projection to the event.
Definition: MissingMomentum.cc:21
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::Vector3
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
Rivet::FourMomentum
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:324
Rivet::MissingMomentum::visibleMomentum
const FourMomentum & visibleMomentum() const
The vector-summed visible four-momentum in the event.
Definition: MissingMomentum.hh:50
Rivet::VisibleFinalState
Final state modifier excluding particles which are not experimentally visible.
Definition: VisibleFinalState.hh:16