rivet is hosted by Hepforge, IPPP Durham
MC_KTSPLITTINGS.cc
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #include "Rivet/Analyses/MC_JetSplittings.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_KTSPLITTINGS : public MC_JetSplittings {
00011   public:
00012 
00013     MC_KTSPLITTINGS()
00014       : MC_JetSplittings("MC_KTSPLITTINGS", 4, "Jets")
00015     {    }
00016 
00017 
00018   public:
00019 
00020     void init() {
00021       FastJets jetpro(FinalState(), FastJets::KT, 0.6);
00022       addProjection(jetpro, "Jets");
00023       MC_JetSplittings::init();
00024     }
00025 
00026 
00027     void analyze(const Event& event) {
00028       MC_JetSplittings::analyze(event);
00029     }
00030 
00031 
00032     void finalize() {
00033       MC_JetSplittings::finalize();
00034     }
00035 
00036   };
00037 
00038 
00039   // The hook for the plugin system
00040   DECLARE_RIVET_PLUGIN(MC_KTSPLITTINGS);
00041 
00042 }