Rivet Analyses Reference

D0_2008_S7662670

Measurement of D0 Run II differential jet cross sections
Experiment: D0 (Tevatron Run 2)
Inspire ID: 779574
Status: VALIDATED
Authors:
  • Andy Buckley
  • Gavin Hesketh
References:Beams: p- p+
Beam energies: (980.0, 980.0) GeV
Run details:
  • QCD events at $\sqrt{s} = 1960 \text{GeV}$. A $p_\perp^\text{min} cut is probably necessary since the lowest jet $p_\perp$ bin is at 50 GeV

Measurement of the inclusive jet cross section in $p \bar{p}$ collisions at center-of-mass energy $\sqrt{s} = 1.96 \text{TeV}$. The data cover jet transverse momenta from 50--600 GeV and jet rapidities in the range -2.4 to 2.4.

Source code: D0_2008_S7662670.cc
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/LeadingParticlesFinalState.hh"
#include "Rivet/Projections/VetoedFinalState.hh"
#include "Rivet/Projections/FastJets.hh"

namespace Rivet {


  /// @brief D0 differential jet cross sections
  ///
  /// @author Andy Buckley
  /// @author Gavin Hesketh
  class D0_2008_S7662670 : public Analysis {
  public:

    RIVET_DEFAULT_ANALYSIS_CTOR(D0_2008_S7662670);


    /// @name Analysis methods
    /// @{

    void init() {
      // Full final state
      FinalState fs;
      declare(fs, "FS");

      // Jets
      FastJets jetpro(fs, FastJets::D0ILCONE, 0.7);
      declare(jetpro, "Jets");

      // Book histograms
      book(_h_dsigdptdy_y00_04 ,1, 1, 1);
      book(_h_dsigdptdy_y04_08 ,2, 1, 1);
      book(_h_dsigdptdy_y08_12 ,3, 1, 1);
      book(_h_dsigdptdy_y12_16 ,4, 1, 1);
      book(_h_dsigdptdy_y16_20 ,5, 1, 1);
      book(_h_dsigdptdy_y20_24 ,6, 1, 1);
    }


    /// Do the analysis
    void analyze(const Event& event) {
      // Skip if the event is empty
      const FinalState& fs = apply<FinalState>(event, "FS");
      if (fs.empty()) {
        MSG_DEBUG("Empty event!");
        vetoEvent;
      }

      // Find the jets
      const JetAlg& jetpro = apply<JetAlg>(event, "Jets");
      // Fill histo for each jet
      for (const Jet& j : jetpro.jets(Cuts::pT > 50*GeV)) {
        const double pt = j.pT();
        const double y = j.absrap();
        MSG_TRACE("Filling histos: pT = " << pt/GeV << ", |y| = " << y);
        if (y < 0.4) {
          _h_dsigdptdy_y00_04->fill(pt/GeV);
        } else if (y < 0.8) {
          _h_dsigdptdy_y04_08->fill(pt/GeV);
        } else if (y < 1.2) {
          _h_dsigdptdy_y08_12->fill(pt/GeV);
        } else if (y < 1.6) {
          _h_dsigdptdy_y12_16->fill(pt/GeV);
        } else if (y < 2.0) {
          _h_dsigdptdy_y16_20->fill(pt/GeV);
        } else if (y < 2.4) {
          _h_dsigdptdy_y20_24->fill(pt/GeV);
        }
      }

    }


    /// Finalize
    void finalize() {
      /// Scale by L_eff = sig_MC * L_exp / num_MC
      const double lumi_mc = sumOfWeights() / crossSection();
      const double scalefactor =  1 / lumi_mc;
      scale(_h_dsigdptdy_y00_04, scalefactor);
      scale(_h_dsigdptdy_y04_08, scalefactor);
      scale(_h_dsigdptdy_y08_12, scalefactor);
      scale(_h_dsigdptdy_y12_16, scalefactor);
      scale(_h_dsigdptdy_y16_20, scalefactor);
      scale(_h_dsigdptdy_y20_24, scalefactor);
    }

    /// @}


  private:

    /// @name Histograms
    /// @{
    Histo1DPtr _h_dsigdptdy_y00_04;
    Histo1DPtr _h_dsigdptdy_y04_08;
    Histo1DPtr _h_dsigdptdy_y08_12;
    Histo1DPtr _h_dsigdptdy_y12_16;
    Histo1DPtr _h_dsigdptdy_y16_20;
    Histo1DPtr _h_dsigdptdy_y20_24;
    /// @}

  };



  RIVET_DECLARE_ALIASED_PLUGIN(D0_2008_S7662670, D0_2008_I779574);

}