CDF_2008_S7828950.cc
Go to the documentation of this file.00001
00002 #include "Rivet/Analysis.hh"
00003 #include "Rivet/RivetAIDA.hh"
00004 #include "Rivet/Tools/Logging.hh"
00005 #include "Rivet/Tools/BinnedHistogram.hh"
00006 #include "Rivet/Projections/FastJets.hh"
00007
00008 namespace Rivet {
00009
00010
00011
00012
00013
00014
00015
00016 class CDF_2008_S7828950 : public Analysis {
00017 public:
00018
00019
00020 CDF_2008_S7828950()
00021 : Analysis("CDF_2008_S7828950")
00022 { }
00023
00024
00025
00026
00027
00028
00029 void init() {
00030 const FinalState fs;
00031 addProjection(FastJets(fs, FastJets::CDFMIDPOINT, 0.7), "JetsM07");
00032
00033 _binnedHistosR07.addHistogram( 0, 0.1, bookHistogram1D(1, 1, 1));
00034 _binnedHistosR07.addHistogram(0.1, 0.7, bookHistogram1D(2, 1, 1));
00035 _binnedHistosR07.addHistogram(0.7, 1.1, bookHistogram1D(3, 1, 1));
00036 _binnedHistosR07.addHistogram(1.1, 1.6, bookHistogram1D(4, 1, 1));
00037 _binnedHistosR07.addHistogram(1.6, 2.1, bookHistogram1D(5, 1, 1));
00038
00039 }
00040
00041
00042
00043 void analyze(const Event& event) {
00044 const double weight = event.weight();
00045 foreach (const Jet& jet, applyProjection<FastJets>(event, "JetsM07").jets(62.0*GeV)) {
00046 _binnedHistosR07.fill(fabs(jet.momentum().rapidity()), jet.momentum().pT(), weight);
00047 }
00048 }
00049
00050
00051
00052 void finalize() {
00053 _binnedHistosR07.scale(crossSection()/nanobarn/sumOfWeights()/2.0, this);
00054 }
00055
00056
00057
00058
00059 private:
00060
00061
00062 BinnedHistogram<double> _binnedHistosR07;
00063
00064 };
00065
00066
00067
00068
00069 DECLARE_RIVET_PLUGIN(CDF_2008_S7828950);
00070
00071 }