MC_TAUS.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Analyses/MC_ParticleAnalysis.hh" 00003 #include "Rivet/Projections/TauFinder.hh" 00004 00005 namespace Rivet { 00006 00007 using namespace Cuts; 00008 00009 00010 /// @brief MC validation analysis for electrons 00011 class MC_TAUS : public MC_ParticleAnalysis { 00012 public: 00013 00014 MC_TAUS() 00015 : MC_ParticleAnalysis("MC_TAUS", 2, "tau") 00016 { } 00017 00018 00019 public: 00020 00021 void init() { 00022 IdentifiedFinalState taus; 00023 taus.acceptIdPair(PID::TAU); 00024 addProjection(taus, "Taus"); 00025 00026 MC_ParticleAnalysis::init(); 00027 } 00028 00029 00030 void analyze(const Event& event) { 00031 const Particles taus = applyProjection<TauFinder>(event, "Taus").particlesByPt(0.5*GeV); 00032 MC_ParticleAnalysis::_analyze(event, taus); 00033 } 00034 00035 00036 void finalize() { 00037 MC_ParticleAnalysis::finalize(); 00038 } 00039 00040 }; 00041 00042 00043 // The hook for the plugin system 00044 DECLARE_RIVET_PLUGIN(MC_TAUS); 00045 00046 } Generated on Tue Sep 30 2014 19:45:45 for The Rivet MC analysis system by ![]() |