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 #include "Rivet/Tools/Logging.hh"
00006 #include "Rivet/RivetAIDA.hh"
00007 
00008 namespace Rivet {
00009 
00010 
00011   /// @brief MC validation analysis for jet events
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::ANTIKT, 0.4);
00026       FastJets jetpro(fs, FastJets::KT, 0.7);
00027       addProjection(jetpro, "Jets");
00028 
00029       MC_JetAnalysis::init();
00030     }
00031 
00032 
00033     void analyze(const Event& event) {
00034       MC_JetAnalysis::analyze(event);
00035     }
00036 
00037 
00038     void finalize() {
00039       MC_JetAnalysis::finalize();
00040     }
00041 
00042   };
00043 
00044   AnalysisBuilder<MC_JETS> plugin_MC_JETS;
00045 
00046 }