PrimaryHadrons.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_PrimaryHadrons_HH 00003 #define RIVET_PrimaryHadrons_HH 00004 00005 #include "Rivet/Projections/FinalState.hh" 00006 #include "Rivet/Projections/UnstableFinalState.hh" 00007 #include "Rivet/Particle.hh" 00008 #include "Rivet/Event.hh" 00009 00010 namespace Rivet { 00011 00012 00013 /// @brief Project out the first hadrons from hadronisation. 00014 /// 00015 /// @todo Also be able to return taus? Prefer a separate tau finder. 00016 /// @todo This assumes that the primary hadrons are unstable... should we also look for stable primary hadrons? 00017 class PrimaryHadrons : public FinalState { 00018 public: 00019 00020 /// @name Constructors and destructors. 00021 //@{ 00022 00023 /// Constructor with specification of the minimum and maximum pseudorapidity 00024 /// \f$ \eta \f$ and the min \f$ p_T \f$ (in GeV). 00025 PrimaryHadrons(double mineta = -MAXRAPIDITY, 00026 double maxeta = MAXRAPIDITY, 00027 double minpt = 0.0*GeV) { 00028 setName("PrimaryHadrons"); 00029 addProjection(UnstableFinalState(mineta, maxeta, minpt), "UFS"); 00030 } 00031 00032 00033 /// Clone on the heap. 00034 virtual const Projection* clone() const { 00035 return new PrimaryHadrons(*this); 00036 } 00037 00038 //@} 00039 00040 protected: 00041 00042 /// Apply the projection to the event. 00043 virtual void project(const Event& e); 00044 00045 }; 00046 00047 00048 } 00049 00050 00051 #endif Generated on Thu Feb 6 2014 17:38:46 for The Rivet MC analysis system by ![]() |