TotalVisibleMomentum.hh
// -*- C++ -*-
#ifndef RIVET_TotalVisibleMomentum_HH
#define RIVET_TotalVisibleMomentum_HH
#include "Rivet/Rivet.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class TotalVisibleMomentum : public Projection {
public:
TotalVisibleMomentum(const FinalState& fsp)
{
setName("TotalVisibleMomentum");
addProjection(fsp, "FS");
getLog() << Log::WARNING << "TotalVisibleMomentum projection is deprecated: "
<< "please use the MissingMomentum projection instead." << endl;
}
virtual const Projection* clone() const {
return new TotalVisibleMomentum(*this);
}
public:
FourMomentum& momentum() { return _momentum; }
const FourMomentum& momentum() const { return _momentum; }
double scalarET() const { return _set; }
protected:
void project(const Event& e);
int compare(const Projection& p) const;
private:
FourMomentum _momentum;
double _set;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::TotalVisibleMomentum::project
void project(const Event &e)
Apply the projection to the event.
Definition: TotalVisibleMomentum.cc:14
Rivet::TotalVisibleMomentum::scalarET
double scalarET() const
The projected scalar transverse energy.
Definition: TotalVisibleMomentum.hh:43
Rivet::Event
Definition: Event.hh:22
Rivet::TotalVisibleMomentum::compare
int compare(const Projection &p) const
Compare projections.
Definition: TotalVisibleMomentum.cc:9
Rivet::TotalVisibleMomentum::TotalVisibleMomentum
TotalVisibleMomentum(const FinalState &fsp)
Constructor. Make sure you supply an appropriately vetoed FS!
Definition: TotalVisibleMomentum.hh:21
Rivet::TotalVisibleMomentum::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: TotalVisibleMomentum.hh:30
Rivet::TotalVisibleMomentum::momentum
const FourMomentum & momentum() const
The projected four-momentum vector.
Definition: TotalVisibleMomentum.hh:40
Rivet::TotalVisibleMomentum::momentum
FourMomentum & momentum()
The projected four-momentum vector.
Definition: TotalVisibleMomentum.hh:37
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::TotalVisibleMomentum
Get the total energy vector, allowing missing etc. to be calculated.
Definition: TotalVisibleMomentum.hh:16
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::Projection::getLog
Log & getLog() const
Get a Log object based on the getName() property of the calling projection object.
Definition: Projection.hh:114
Rivet::FourMomentum
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:324