ChargedLeptons.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_ChargedLeptons_HH 00003 #define RIVET_ChargedLeptons_HH 00004 00005 #include "Rivet/Projection.hh" 00006 #include "Rivet/Projections/ChargedFinalState.hh" 00007 #include "Rivet/Particle.hh" 00008 #include "Rivet/Event.hh" 00009 00010 namespace Rivet { 00011 00012 00013 /// @brief Get charged final-state leptons 00014 /// 00015 /// @todo This is just electrons and muons, unless you set taus stable! 00016 class ChargedLeptons : public FinalState { 00017 public: 00018 00019 /// Constructor 00020 ChargedLeptons(const FinalState& fsp) 00021 { 00022 setName("ChargedLeptons"); 00023 addProjection(ChargedFinalState(fsp), "ChFS"); 00024 } 00025 00026 /// Clone on the heap. 00027 DEFAULT_RIVET_PROJ_CLONE(ChargedLeptons); 00028 00029 00030 protected: 00031 00032 /// Apply the projection to the event. 00033 void project(const Event& evt); 00034 00035 /// Compare projections. 00036 int compare(const Projection& other) const; 00037 00038 public: 00039 00040 /// Access the projected leptons. 00041 const Particles& chargedLeptons() const { 00042 return _theParticles; 00043 } 00044 00045 }; 00046 00047 00048 } 00049 00050 #endif Generated on Tue Dec 13 2016 16:32:36 for The Rivet MC analysis system by ![]() |