MergedFinalState.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_MergedFinalState_HH 00003 #define RIVET_MergedFinalState_HH 00004 00005 #include "Rivet/Tools/Logging.hh" 00006 #include "Rivet/Rivet.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 Get final state particles merged from two FinalState projections. 00016 class MergedFinalState : public FinalState { 00017 00018 public: 00019 00020 /// @name Constructors 00021 //@{ 00022 MergedFinalState(const FinalState& fspa, const FinalState& fspb) { 00023 setName("MergedFinalState"); 00024 addProjection(fspa, "FSA"); 00025 addProjection(fspb, "FSB"); 00026 } 00027 00028 /// Clone on the heap. 00029 virtual const Projection* clone() const { 00030 return new MergedFinalState(*this); 00031 } 00032 //@} 00033 00034 protected: 00035 00036 /// Apply the projection on the supplied event. 00037 void project(const Event& e); 00038 00039 /// Compare projections. 00040 int compare(const Projection& p) const; 00041 }; 00042 00043 00044 } 00045 00046 00047 #endif Generated on Thu Feb 6 2014 17:38:45 for The Rivet MC analysis system by ![]() |