rivet is hosted by Hepforge, IPPP Durham
MC_JETS.cc
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #include "Rivet/Analyses/MC_JetAnalysis.hh"
00003 #include "Rivet/Projections/FinalState.hh"
00004 #include "Rivet/Projections/FastJets.hh"
00005 
00006 namespace Rivet {
00007 
00008 
00009   /// @brief MC validation analysis for jet events
00010   class MC_JETS : public MC_JetAnalysis {
00011   public:
00012 
00013     MC_JETS()
00014       : MC_JetAnalysis("MC_JETS", 4, "Jets")
00015     {    }
00016 
00017 
00018   public:
00019 
00020     void init() {
00021       FinalState fs;
00022       FastJets jetpro(fs, FastJets::ANTIKT, 0.4);
00023       addProjection(jetpro, "Jets");
00024 
00025       MC_JetAnalysis::init();
00026     }
00027 
00028 
00029     void analyze(const Event& event) {
00030       MC_JetAnalysis::analyze(event);
00031     }
00032 
00033 
00034     void finalize() {
00035       MC_JetAnalysis::finalize();
00036     }
00037 
00038   };
00039 
00040 
00041   // The hook for the plugin system
00042   DECLARE_RIVET_PLUGIN(MC_JETS);
00043 
00044 }