HadronicFinalState.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_HadronicFinalState_HH 00003 #define RIVET_HadronicFinalState_HH 00004 00005 #include "Rivet/Tools/Logging.hh" 00006 #include "Rivet/Config/RivetCommon.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 hadronic final state particles. 00016 class HadronicFinalState : public FinalState { 00017 public: 00018 00019 /// Constructor: the supplied FinalState projection is assumed to live through the run. 00020 HadronicFinalState(const FinalState& fsp) 00021 { 00022 setName("HadronicFinalState"); 00023 addProjection(fsp, "FS"); 00024 } 00025 00026 HadronicFinalState(double mineta = -MAXDOUBLE, 00027 double maxeta = MAXDOUBLE, 00028 double minpt = 0.0*GeV) 00029 { 00030 setName("HadronicFinalState"); 00031 addProjection(FinalState(mineta, maxeta, minpt), "FS"); 00032 } 00033 00034 /// Clone on the heap. 00035 DEFAULT_RIVET_PROJ_CLONE(HadronicFinalState); 00036 00037 protected: 00038 00039 /// Apply the projection on the supplied event. 00040 void project(const Event& e); 00041 00042 /// Compare projections. 00043 int compare(const Projection& p) const; 00044 00045 }; 00046 00047 00048 } 00049 00050 00051 #endif Generated on Tue Dec 13 2016 16:32:38 for The Rivet MC analysis system by ![]() |