rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

ALICE_2012_I1116147

pT of neutral pions and $\eta$ mesons in $pp$ collisions at $7\,$TeV and $0.9\,$TeV
Experiment: ALICE (LHC)
Inspire ID: 1116147
Status: VALIDATED
Authors:
  • Hendrik Poppenborg hendrik.poppenborg@cern.ch
References: Beams: p+ p+
Beam energies: (450.0, 450.0); (3500.0, 3500.0) GeV
Run details:
  • Generic $pp$ collision events.

Transverse momentum spectra of neutral pions and $\eta$ mesons and the ratio $\pi^0/\eta$, obtained at mid-rapidity in pp collisions at $\sqrt{s} = 7\,$TeV with ALICE at the LHC. The transverse momentum spectrum of neutral pions is also given for $\sqrt{s} = 0.9\,$TeV.

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

namespace Rivet {


  class ALICE_2012_I1116147 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(ALICE_2012_I1116147);


    /// Initialise projections and histograms
    void init() {

      const UnstableFinalState ufs(Cuts::absrap < RAPMAX);
      addProjection(ufs, "UFS");

      // Check if cm energy is 7 TeV or 0.9 TeV
      if (fuzzyEquals(sqrtS()/GeV, 900, 1E-3))       _cm_energy_case = 1;
      else if (fuzzyEquals(sqrtS()/GeV, 7000, 1E-3)) _cm_energy_case = 2;
      if (_cm_energy_case == 0)
        throw UserError("Center of mass energy of the given input is neither 900 nor 7000 GeV.");

      // Book histos
      if (_cm_energy_case == 1) {
        _h_pi0 = bookHisto1D(2,1,1);
      } else {
        _h_pi0 = bookHisto1D(1,1,1);
        _h_eta = bookHisto1D(3,1,1);
        _h_etaToPion = bookScatter2D(4,1,1);
      }

      // Temporary plots with the binning of _h_etaToPion to construct the eta/pi0 ratio
      _temp_h_pion = bookHisto1D("TMP/h_pion", refData(4,1,1));
      _temp_h_eta = bookHisto1D("TMP/h_eta", refData(4,1,1));
    }


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

      const FinalState& ufs = apply<UnstableFinalState>(event, "UFS");
      for (const Particle& p : ufs.particles()) {
        const double normfactor = TWOPI*p.pT()/GeV*2*RAPMAX;
        if (p.pid() == 111) {
          // Neutral pion; ALICE corrects for pi0 feed-down from K_0_s and Lambda
          if (p.hasAncestor(310) || p.hasAncestor(3122) || p.hasAncestor(-3122)) continue; //< K_0_s, Lambda, Anti-Lambda
          _h_pi0->fill(p.pT()/GeV, weight/normfactor);
          _temp_h_pion->fill(p.pT()/GeV, weight);
        } else if (p.pid() == 221 && _cm_energy_case == 2) {
          // eta meson (only for 7 TeV)
          _h_eta->fill(p.pT()/GeV, weight/normfactor);
          _temp_h_eta->fill(p.pT()/GeV, weight);
        }
      }
    }


    /// Normalize histos and construct ratio
    void finalize() {
      scale(_h_pi0, crossSection()/microbarn/sumOfWeights());
      if (_cm_energy_case == 2) {
        divide(_temp_h_eta, _temp_h_pion, _h_etaToPion);
        scale(_h_eta, crossSection()/microbarn/sumOfWeights());
      }
    }


  private:

    const double RAPMAX = 0.8;
    int _cm_energy_case = 0;

    Histo1DPtr _h_pi0, _h_eta;
    Histo1DPtr _temp_h_pion, _temp_h_eta;
    Scatter2DPtr _h_etaToPion;

  };


  DECLARE_RIVET_PLUGIN(ALICE_2012_I1116147);

}