rivet is hosted by Hepforge, IPPP Durham
InitialQuarks.hh
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef RIVET_InitialQuarks_HH
00003 #define RIVET_InitialQuarks_HH
00004 
00005 #include "Rivet/Projection.hh"
00006 #include "Rivet/Particle.hh"
00007 #include "Rivet/Event.hh"
00008 
00009 namespace Rivet {
00010 
00011 
00012   /// @brief Project out quarks from the hard process in \f$ e^+ e^- \to Z^0 \f$ events
00013   ///
00014   /// @deprecated We're not sure exactly when we'lll get rid of this, but it's going to happen...
00015   ///
00016   /// @warning This is a very dangerous and specific projection!
00017   class InitialQuarks : public Projection {
00018   public:
00019 
00020     /// @name Standard constructors and destructors.
00021     //@{
00022     /// The default constructor. May specify the minimum and maximum
00023     /// pseudorapidity \f$ \eta \f$ and the min \f$ p_T \f$ (in GeV).
00024     InitialQuarks() {
00025       setName("InitialQuarks");
00026     }
00027 
00028     /// Clone on the heap.
00029     DEFAULT_RIVET_PROJ_CLONE(InitialQuarks);
00030 
00031     //@}
00032 
00033     /// Access the projected final-state particles.
00034     virtual const Particles& particles() const { return _theParticles; }
00035 
00036     /// Is this final state empty?
00037     virtual bool empty() const { return _theParticles.empty(); }
00038 
00039 
00040   protected:
00041 
00042     /// Apply the projection to the event.
00043     virtual void project(const Event& e);
00044 
00045     /// Compare projections.
00046     virtual int compare(const Projection& p) const;
00047 
00048 
00049   protected:
00050 
00051     /// The final-state particles.
00052     Particles _theParticles;
00053 
00054   };
00055 
00056 }
00057 
00058 
00059 #endif