ChargedFinalState.hh
// -*- C++ -*-
#ifndef RIVET_ChargedFinalState_HH
#define RIVET_ChargedFinalState_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 ChargedFinalState : public FinalState {
public:
ChargedFinalState(const FinalState& fsp);
ChargedFinalState(double mineta = -MAXRAPIDITY,
double maxeta = MAXRAPIDITY,
double minpt = 0.0*GeV);
ChargedFinalState(const vector<pair<double, double> >& etaRanges,
double minpt = 0.0*GeV);
virtual const Projection* clone() const {
return new ChargedFinalState(*this);
}
protected:
void project(const Event& e);
int compare(const Projection& p) const;
};
}
#endif
Rivet::ChargedFinalState::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: ChargedFinalState.hh:34
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::ChargedFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Definition: ChargedFinalState.cc:40
Rivet::ChargedFinalState
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
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::ChargedFinalState::compare
int compare(const Projection &p) const
Compare projections.
Definition: ChargedFinalState.cc:30