Rivet analyses


title: STAR_2006_I723509

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_I723509.cc

```c++ // -- C++ --

include "Rivet/Analysis.hh"

include "Rivet/Projections/FastJets.hh"

include "Rivet/Projections/FinalState.hh"

namespace Rivet {

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

RIVET_DEFAULT_ANALYSIS_CTOR(STAR_2006_I723509);


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

/// Book projections and histograms
void init() {
  FinalState fs((Cuts::etaIn(-2.0, 2.0)));
  declare(fs, "FS");
  FJPluginPtr cdfMidPointPlugin = FastJets::mkPlugin<JetAlg::CDFMIDPOINT>(0.4, 0.5, 0.5);
  declare(FastJets(fs, cdfMidPointPlugin), "MidpointJets");

  book(_h_jet_pT_MB, 1, 1, 1);
  book(_h_jet_pT_HT, 2, 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("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)) {
      for (const Jet& j : jets) {
        const FourMomentum pj = j.momentum();
        _h_jet_pT_MB->fill(pj.pT());
        _h_jet_pT_HT->fill(pj.pT());
      }
    }
  }
}


/// 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;
/// @}

};

RIVET_DECLARE_ALIASED_PLUGIN(STAR_2006_I723509, STAR_2006_S6870392);

} ```

Aliases: - STAR_2006_S6870392