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/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 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 = -MAXDOUBLE, 00024 double maxeta = MAXDOUBLE, 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 DEFAULT_RIVET_PROJ_CLONE(VisibleFinalState); 00040 00041 //@} 00042 00043 00044 protected: 00045 00046 /// Apply the projection on the supplied event. 00047 void project(const Event& e); 00048 00049 /// Compare projections. 00050 int compare(const Projection& p) const; 00051 00052 }; 00053 00054 00055 } 00056 00057 #endif Generated on Tue Dec 13 2016 16:32:41 for The Rivet MC analysis system by ![]() |