00001
00002 #ifndef RIVET_FinalState_HH
00003 #define RIVET_FinalState_HH
00004
00005 #include "Rivet/Projection.hh"
00006 #include "Rivet/Particle.hh"
00007 #include "Rivet/Event.hh"
00008
00009
00010 namespace Rivet {
00011
00012
00013 class FinalState: public Projection {
00014
00015 public:
00016
00017
00018
00019
00020
00021 inline FinalState(double mineta = -MaxRapidity,
00022 double maxeta = MaxRapidity,
00023 double minpt = 0.0)
00024 : _etamin(mineta), _etamax(maxeta), _ptmin(minpt)
00025 {
00026 addCut("eta", MORE_EQ, mineta);
00027 addCut("eta", LESS_EQ, maxeta);
00028 addCut("pT", MORE_EQ, minpt);
00029 }
00030
00031
00032 inline string getName() const {
00033 return "FinalState";
00034 }
00035
00036
00037 inline const ParticleVector& particles() const { return _theParticles; }
00038
00039
00040 inline const bool isEmpty() const { return _theParticles.empty(); }
00041
00042 protected:
00043
00044
00045 void project(const Event& e);
00046
00047
00048 int compare(const Projection& p) const;
00049
00050
00051 private:
00052
00053
00054 double _etamin;
00055
00056
00057 double _etamax;
00058
00059
00060 double _ptmin;
00061
00062 protected:
00063
00064
00065 ParticleVector _theParticles;
00066
00067 };
00068
00069 }
00070
00071
00072 #endif