Rivet analyses

Inclusive production of charged pions in p+p collisions at 158 GeV/c beam momentum

Experiment: NA49 (SPS)

Inspire ID: 694016

Status: UNVALIDATED

Authors: - Viktar Kireyeu

References: - https://link.springer.com/article/10.1140/epjc/s2005-02391-9

Beams: p+ p+

Beam energies: (8.7, 8.7)GeV

Run details: - pp collisions at 17.3~GeV. Minimum bias events.

Charged pion production in fixed target, $p_{} = $158 GeV/c. The elastic trigger is implemented by looking for elastic final states with only 2 particles, instead of attempting to reproduce the experimental trigger, which cannot be directly unfolded.

Source code:NA49_2006_I694016.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Particle.hh"

namespace Rivet {


  class NA49_2006_I694016 : public Analysis {
  public:

    /// @name Constructors etc.
    /// @{
    /// Constructor
    NA49_2006_I694016() : Analysis("NA49_2006_I694016"){}



    void init() {
      declare(FinalState(), "FS");
      book(_h_dndxf, 1,1,1);
      book(_p_mptxf, 2,1,1);
      book(_h_dndy,  3,1,1);
      book(_c_ninel, "nInelastic");
    }



    void analyze(const Event& event) {
      const FinalState& fs = apply<FinalState>(event, "FS");
      const size_t numParticles = fs.particles().size();
      const float SRT = event.sqrtS();

      // Inelastic events selection
      if (numParticles <= 2) {
        MSG_DEBUG("Elastic event");
        vetoEvent;
      }
      _c_ninel -> fill();

      // Plot distributions
      for(const Particle& p : fs.particles()) {
        if(p.pid() == PID::PIPLUS){
          double xF = p.pz() / (SRT/2.);
          _h_dndxf -> fill(xF);
          _h_dndy  -> fill(p.rapidity());
          _p_mptxf -> fill(xF, p.pt());
        }
      }
    }



    void finalize() {
      // Scale by the number of inelastic events
      scale(_h_dndxf, 1./ *_c_ninel);
      scale(_h_dndy, 1./ *_c_ninel);
    }



  private:
    CounterPtr   _c_ninel;  // Counter of inelastic events
    Histo1DPtr   _h_dndxf;  // dn/dxf histogram
    Histo1DPtr   _h_dndy;   // dn/dy histogram
    Profile1DPtr _p_mptxf;  // mean pT vs xF profile
  };


  RIVET_DECLARE_PLUGIN(NA49_2006_I694016);
}