Rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

STAR_2006_S6870392

Inclusive jet cross-section in pp at 200 GeV
Experiment: STAR (RHIC pp 200 GeV)
Inspire ID: 723509
Status: VALIDATED
Authors:
  • Hendrik Hoeth
References:
  • Phys. Rev. Lett. 97, 252001
  • hep-ex/0608030
Beams: p+ p+
Beam energies: (100.0, 100.0) GeV
Run details:
  • pp at 200 GeV

Inclusive jet cross section as a function of pT in pp collisions at $\sqrt{s} = 200$ GeV, measured by the STAR experiment at RHIC.

Source code: STAR_2006_S6870392.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
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/FastJets.hh"

namespace Rivet {


  /// @brief STAR inclusive jet cross-section in pp at 200 GeV
  class STAR_2006_S6870392 : public Analysis {
  public:

    /// Constructor
    STAR_2006_S6870392()
      : Analysis("STAR_2006_S6870392")
    {    }


    /// @name Analysis methods
    //@{

    /// Book projections and histograms
    void init() {
      FinalState fs(-2.0, 2.0);
      declare(fs, "FS");
      declare(FastJets(fs, FastJets::CDFMIDPOINT, 0.4,
                             JetAlg::ALL_MUONS, JetAlg::NO_INVISIBLES,
                             nullptr, 0.5), "MidpointJets");

      _h_jet_pT_MB = bookHisto1D(1, 1, 1);
      _h_jet_pT_HT = bookHisto1D(2, 1, 1);
    }


    /// Do the analysis
    void analyze(const Event& event) {
      const double weight = event.weight();

      // Skip if the event is empty
      const FinalState& fs = apply<FinalState>(event, "FS");
      if (fs.empty()) {
        MSG_DEBUG("Skipping event " << numEvents() << " because no final state found ");
        vetoEvent;
      }

      // Find jets
      const FastJets& jetpro = apply<FastJets>(event, "MidpointJets");
      const Jets& jets = jetpro.jetsByPt();
      if (!jets.empty()) {
        const Jet& j1 = jets.front();
        if (inRange(fabs(j1.eta()), 0.2, 0.8)) {
          foreach (const Jet& j, jets) {
            const FourMomentum pj = j.momentum();
            _h_jet_pT_MB->fill(pj.pT(), weight);
            _h_jet_pT_HT->fill(pj.pT(), weight);
          }
        }
      }
    }



    /// Finalize
    void finalize() {
      double normalisation = crossSection()/picobarn/sumOfWeights()/(2*0.6*2*M_PI);
      scale(_h_jet_pT_MB, normalisation);
      scale(_h_jet_pT_HT, normalisation);
    }

    //@}


  private:

    /// @name Histograms
    //@{
    Histo1DPtr _h_jet_pT_MB;
    Histo1DPtr _h_jet_pT_HT;
    //@}

  };



  // The hook for the plugin system
  DECLARE_RIVET_PLUGIN(STAR_2006_S6870392);

}