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   /// @warning This is a very dangerous and specific projection! Use
00015   ///   e.g. PID::hasBottom and friends instead whenever possible
00016   class InitialQuarks : public Projection {
00017   public:
00018 
00019     /// @name Standard constructors and destructors.
00020     //@{
00021     /// The default constructor. May specify the minimum and maximum
00022     /// pseudorapidity \f$ \eta \f$ and the min \f$ p_T \f$ (in GeV).
00023     InitialQuarks() {
00024       setName("InitialQuarks");
00025     }
00026 
00027 
00028     /// Clone on the heap.
00029     virtual const Projection* clone() const {
00030       return new InitialQuarks(*this);
00031     }
00032     //@}
00033 
00034     /// Access the projected final-state particles.
00035     virtual const Particles& particles() const { return _theParticles; }
00036 
00037     /// Is this final state empty?
00038     virtual bool empty() const { return _theParticles.empty(); }
00039 
00040 
00041   protected:
00042 
00043     /// Apply the projection to the event.
00044     virtual void project(const Event& e);
00045 
00046     /// Compare projections.
00047     virtual int compare(const Projection& p) const;
00048 
00049 
00050   protected:
00051 
00052     /// The final-state particles.
00053     Particles _theParticles;
00054 
00055   };
00056 
00057 }
00058 
00059 
00060 #endif