rivet is hosted by Hepforge, IPPP Durham
VisibleFinalState.hh
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef RIVET_VisibleFinalState_HH
00003 #define RIVET_VisibleFinalState_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 Final state modifier excluding particles which are not experimentally visible
00016   class VisibleFinalState : public FinalState {
00017   public:
00018 
00019     /// @name Constructors
00020     //@{
00021 
00022     /// Constructor with min and max pseudorapidity \f$ \eta \f$ and min \f$ p_T \f$ (in GeV).
00023     VisibleFinalState(double mineta = -MAXRAPIDITY,
00024                       double maxeta =  MAXRAPIDITY,
00025                       double minpt  =  0.0*GeV)
00026     {
00027       setName("VisibleFinalState");
00028       addProjection(FinalState(mineta, maxeta, minpt), "FS");
00029     }
00030 
00031     /// Constructor with specific FinalState.
00032     VisibleFinalState(const FinalState& fsp)
00033     {
00034       setName("VisibleFinalState");
00035       addProjection(fsp, "FS");
00036     }
00037 
00038     /// Clone on the heap.
00039     virtual const Projection* clone() const {
00040       return new VisibleFinalState(*this);
00041     }
00042 
00043     //@}
00044 
00045 
00046   protected:
00047 
00048     /// Apply the projection on the supplied event.
00049     void project(const Event& e);
00050 
00051     /// Compare projections.
00052     int compare(const Projection& p) const;
00053 
00054   };
00055 
00056 
00057 }
00058 
00059 #endif