HepEx0112029.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #include "Rivet/Tools/Logging.hh"
00003 #include "Rivet/Analyses/HepEx0112029.hh"
00004 using namespace Rivet;
00005 
00006 #include "Rivet/RivetAIDA.hh"
00007 using namespace AIDA;
00008 
00009 #include "HepPDT/ParticleID.hh"
00010 using namespace HepMC;
00011 
00012 
00013 /////////////////////////////////////////////////
00014 
00015 
00016 // Book histograms
00017 void HepEx0112029::init() {
00018   /// @todo This doesn't seem to correspond to the plots in the paper (SPIRES 4730372)
00019   _histJetEt1 = bookHistogram1D("JetET1", "Jet transverse energy", 11, 14.0, 75.0);
00020 }
00021 
00022 
00023 // Do the analysis
00024 void HepEx0112029::analyze(const Event& event) {
00025   Log& log = getLog();
00026   log << Log::DEBUG << "Starting analyzing" << endl;
00027 
00028   // Analyse and print some info
00029   const KtJets& jets = event.applyProjection(_ktjetsproj);
00030   const int nj = jets.getNJets();
00031   log << Log::INFO << "Jet multiplicity = " << nj << endl;
00032 
00033   // Fill histograms
00034   vector<KtJet::KtLorentzVector> jetList = jets.getJetsEt();
00035   for (vector<KtJet::KtLorentzVector>::iterator j = jetList.begin(); j != jetList.end(); ++j) {
00036     _histJetEt1->fill(j->perp(), event.weight() );
00037   }
00038   
00039   // Finished
00040   log << Log::DEBUG << "Finished analyzing" << endl;
00041 }
00042 
00043 
00044 // Finalize
00045 void HepEx0112029::finalize() 
00046 { }