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 00008 /// @brief MC validation analysis for taus 00009 class MC_TAUS : public MC_ParticleAnalysis { 00010 public: 00011 00012 MC_TAUS() 00013 : MC_ParticleAnalysis("MC_TAUS", 2, "tau") 00014 { } 00015 00016 00017 public: 00018 00019 void init() { 00020 IdentifiedFinalState taus; 00021 taus.acceptIdPair(PID::TAU); 00022 addProjection(taus, "Taus"); 00023 00024 MC_ParticleAnalysis::init(); 00025 } 00026 00027 00028 void analyze(const Event& event) { 00029 const Particles taus = applyProjection<TauFinder>(event, "Taus").particlesByPt(0.5*GeV); 00030 MC_ParticleAnalysis::_analyze(event, taus); 00031 } 00032 00033 00034 void finalize() { 00035 MC_ParticleAnalysis::finalize(); 00036 } 00037 00038 }; 00039 00040 00041 // The hook for the plugin system 00042 DECLARE_RIVET_PLUGIN(MC_TAUS); 00043 00044 } Generated on Tue Mar 24 2015 17:35:27 for The Rivet MC analysis system by ![]() |