MC_JETS.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #include "Rivet/Analysis.hh"
00003 #include "Rivet/RivetAIDA.hh"
00004 #include "Rivet/Tools/Logging.hh"
00005 #include "Rivet/Analyses/MC_JetAnalysis.hh"
00006 #include "Rivet/Projections/FinalState.hh"
00007 #include "Rivet/Projections/FastJets.hh"
00008 
00009 namespace Rivet {
00010 
00011 
00012   class MC_JETS : public MC_JetAnalysis {
00013   public:
00014 
00015     MC_JETS() : MC_JetAnalysis("MC_JETS", 4, "Jets") 
00016     {
00017       setNeedsCrossSection(true);
00018     }
00019 
00020 
00021   public:
00022 
00023     void init() {
00024       FinalState fs;
00025       FastJets jetpro(fs, FastJets::KT, 0.7);
00026       addProjection(jetpro, "Jets");
00027       
00028       MC_JetAnalysis::init();
00029     }
00030 
00031 
00032     void analyze(const Event& event) {
00033       MC_JetAnalysis::analyze(event);
00034     }
00035 
00036 
00037     void finalize() {
00038       MC_JetAnalysis::finalize();
00039     }
00040 
00041   };
00042 
00043   AnalysisBuilder<MC_JETS> plugin_MC_JETS;
00044 
00045 }