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/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 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 DEFAULT_RIVET_PROJ_CLONE(MergedFinalState); 00030 00031 //@} 00032 00033 protected: 00034 00035 /// Apply the projection on the supplied event. 00036 void project(const Event& e); 00037 00038 /// Compare projections. 00039 int compare(const Projection& p) const; 00040 }; 00041 00042 00043 } 00044 00045 00046 #endif Generated on Tue Dec 13 2016 16:32:39 for The Rivet MC analysis system by ![]() |