NeutralFinalState.hh
// -*- C++ -*-
#ifndef RIVET_NeutralFinalState_HH
#define RIVET_NeutralFinalState_HH
#include "Rivet/Tools/Logging.hh"
#include "Rivet/Rivet.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
namespace Rivet {
class NeutralFinalState : public FinalState {
public:
NeutralFinalState(const FinalState& fsp) : _Etmin(0.0*GeV) {
setName("NeutralFinalState");
addProjection(fsp, "FS");
}
NeutralFinalState(double mineta = -MAXRAPIDITY,
double maxeta = MAXRAPIDITY,
double minEt = 0.0*GeV) : _Etmin(minEt)
{
setName("NeutralFinalState");
addProjection(FinalState(mineta, maxeta, 0.0*GeV), "FS");
}
virtual const Projection* clone() const {
return new NeutralFinalState(*this);
}
protected:
void project(const Event& e);
double _Etmin;
int compare(const Projection& p) const;
};
}
#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::NeutralFinalState
Project only neutral final state particles.
Definition: NeutralFinalState.hh:16
Rivet::NeutralFinalState::compare
int compare(const Projection &p) const
Compare projections.
Definition: NeutralFinalState.cc:11
Rivet::Event
Definition: Event.hh:22
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::NeutralFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Definition: NeutralFinalState.cc:17
Rivet::FinalState::FinalState
FinalState(double mineta=-MAXRAPIDITY, double maxeta=MAXRAPIDITY, double minpt=0.0 *GeV)
Definition: FinalState.cc:9
Rivet::MAXRAPIDITY
static const double MAXRAPIDITY
A sensible default maximum value of rapidity for Rivet analyses to use.
Definition: Rivet.hh:24
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::NeutralFinalState::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: NeutralFinalState.hh:36