rivet is hosted by Hepforge, IPPP Durham
ChargedFinalState.hh
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef RIVET_ChargedFinalState_HH
00003 #define RIVET_ChargedFinalState_HH
00004 
00005 #include "Rivet/Tools/Logging.hh"
00006 #include "Rivet/Rivet.hh"
00007 #include "Rivet/Particle.hh"
00008 #include "Rivet/Event.hh"
00009 #include "Rivet/Projection.hh"
00010 #include "Rivet/Projections/FinalState.hh"
00011 
00012 namespace Rivet {
00013 
00014 
00015   /// @brief Project only charged final state particles.
00016   class ChargedFinalState : public FinalState {
00017   public:
00018 
00019     /// @name Constructors
00020     //@{
00021     ChargedFinalState(const FinalState& fsp);
00022 
00023     /// Single eta-range constructor.
00024     ChargedFinalState(double mineta = -MAXRAPIDITY,
00025                       double maxeta =  MAXRAPIDITY,
00026                       double minpt  =  0.0*GeV);
00027 
00028     /// Clone on the heap.
00029     virtual const Projection* clone() const {
00030       return new ChargedFinalState(*this);
00031     }
00032     //@}
00033 
00034 
00035   protected:
00036 
00037     /// Apply the projection on the supplied event.
00038     void project(const Event& e);
00039 
00040     /// Compare projections.
00041     int compare(const Projection& p) const;
00042   };
00043 
00044 
00045 }
00046 
00047 
00048 #endif