Rivet analyses

UA5 charged multiplicity measurements

Experiment: UA5 (CERN SPS)

Inspire ID: 267179

Status: VALIDATED

Authors: - Holger Schulz - Christophe L. J. Vaillant - Andy Buckley

References: - Z. Phys. C - Particles and Fields 43, 357-374 (1989) - DOI: 10.1007/BF01506531

Beams: p- p+

Beam energies: (100.0, 100.0); (450.0, 450.0)GeV

Run details: - Minimum bias events at $\sqrt{s} = 200$ and 900 GeV. Enable single and double diffractive events in addition to non-diffractive processes.

Multiplicity distributions of charged particles produced in non-single-diffractive collisions between protons and antiprotons at centre-of-mass energies of 200 and 900 GeV. The data were recorded in the UA5 streamer chambers at the CERN collider, which was operated in a pulsed mode between the two energies. This analysis confirms the violation of KNO scaling in full phase space found by the UA5 group at an energy of 546 GeV, with similar measurements at 200 and 900 GeV.

Source code:UA5_1989_I267179.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Projections/TriggerUA5.hh"

namespace Rivet {


  /// UA5 min bias charged multiplicities in central \f$ \eta \f$ ranges
  class UA5_1989_I267179 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(UA5_1989_I267179);


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

    /// Book histograms and projections
    void init() {
      declare(TriggerUA5(), "Trigger");
      declare(ChargedFinalState(Cuts::abseta < 0.5), "CFS05");
      declare(ChargedFinalState(Cuts::abseta < 1.5), "CFS15");
      declare(ChargedFinalState(Cuts::abseta < 3.0), "CFS30");
      declare(ChargedFinalState(Cuts::abseta < 5.0), "CFS50");

      // NB. _hist_nch and _hist_ncheta50 use the same data but different binning
      vector<double> tmp;
      for (double eVal : allowedEnergies()) {
        int en = round(eVal);
        if (isCompatibleWithSqrtS(eVal))  _sqs = en;
        const string suff = toString(en);
        if (en == 200) {
          book(_h["nch"+suff],        1, 1, 1);
          book(_h["nch_eta05"+suff],  3, 1, 1);
          book(_h["nch_eta15"+suff],  4, 1, 1);
          book(_h["nch_eta30"+suff],  5, 1, 1);
          book(_h["nch_eta50"+suff],  6, 1, 1);
          book(_d[0], 11, 1, 1);
          // _hist_nch axis
          tmp.clear(); tmp.reserve(32);
          for (size_t i = 1; i < 30; ++i)  tmp.push_back(2*i-1);
          tmp.push_back(60); tmp.push_back(62); tmp.push_back(74);
          _axes[en+0] = YODA::Axis<double>(tmp);

          // _hist_nch_eta05 axis
          _axes[en+1] = YODA::Axis<double>({-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5,
                                         7.5, 8.5, 9.5, 10.5, 11.5, 13.0, 19.0});

          // _hist_nch_eta15 axis
          tmp.clear(); tmp.reserve(33);
          for (size_t i = 1; i < 31; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(31); tmp.push_back(32); tmp.push_back(45);
          _axes[en+2] = YODA::Axis<double>(tmp);

          // _hist_nch_eta30 axis
          tmp.clear(); tmp.reserve(54);
          for (size_t i = 0; i < 49; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(49); tmp.push_back(50);
          tmp.push_back(51); tmp.push_back(53);
          tmp.push_back(81);
          _axes[en+3] = YODA::Axis<double>(tmp);

          // _hist_nch_eta50 axis
          tmp.clear(); tmp.reserve(59);
          tmp.push_back(0);
          for (size_t i = 3; i < 56; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(56); tmp.push_back(57);
          tmp.push_back(58); tmp.push_back(60);
          tmp.push_back(74);
          _axes[en+4] = YODA::Axis<double>(tmp);
        }
        else if (en == 900) {
          book(_h["nch"+suff],        2, 1, 1);
          book(_h["nch_eta05"+suff],  7, 1, 1);
          book(_h["nch_eta15"+suff],  8, 1, 1);
          book(_h["nch_eta30"+suff],  9, 1, 1);
          book(_h["nch_eta50"+suff], 10, 1, 1);
          book(_d[1], 12, 1, 1);

          // _hist_nch axis
          tmp.clear(); tmp.reserve(55);
          for (size_t i = 4; i < 53; ++i)  tmp.push_back(2*i-1);
          tmp.push_back(106); tmp.push_back(108); tmp.push_back(110);
          tmp.push_back(112); tmp.push_back(116);
          _axes[en+0] = YODA::Axis<double>(tmp);

          // _hist_nch_eta05 axis
          tmp.clear(); tmp.reserve(23);
          for (size_t i = 0; i < 21; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(21); tmp.push_back(23); tmp.push_back(30);
          _axes[en+1] = YODA::Axis<double>(tmp);

          // _hist_nch_eta15 axis
          tmp.clear(); tmp.reserve(53);
          for (size_t i = 0; i < 47; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(47); tmp.push_back(48); tmp.push_back(49);
          tmp.push_back(51); tmp.push_back(55); tmp.push_back(71);
          _axes[en+2] = YODA::Axis<double>(tmp);

          // _hist_nch_eta30 axis
          tmp.clear(); tmp.reserve(84);
          for (size_t i = 0; i < 76; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(76); tmp.push_back(77); tmp.push_back(78);
          tmp.push_back(79); tmp.push_back(81); tmp.push_back(84);
          tmp.push_back(90); tmp.push_back(113);
          _axes[en+3] = YODA::Axis<double>(tmp);

          // _hist_nch_eta50 axis
          tmp.clear(); tmp.reserve(102);
          tmp.push_back(0); tmp.push_back(2);
          for (size_t i = 4; i < 95; ++i)  tmp.push_back(i-0.5);
          tmp.push_back(95);  tmp.push_back(96);  tmp.push_back(97);
          tmp.push_back(98);  tmp.push_back(99);  tmp.push_back(102);
          tmp.push_back(106); tmp.push_back(112); tmp.push_back(130);
          _axes[en+4] = YODA::Axis<double>(tmp);
        }
        book(_c[en], "_SumW" + toString(en));
      }
      raiseBeamErrorIf(_sqs < 0);
      /// @todo Moments of distributions
    }


    /// Do the analysis
    void analyze(const Event& event) {
      // Trigger
      const TriggerUA5& trigger = apply<TriggerUA5>(event, "Trigger");
      if (!trigger.nsdDecision()) vetoEvent;

      _c[_sqs]->fill();

      // Count final state particles in several eta regions
      const int numP05 = apply<ChargedFinalState>(event, "CFS05").size();
      const int numP15 = apply<ChargedFinalState>(event, "CFS15").size();
      const int numP30 = apply<ChargedFinalState>(event, "CFS30").size();
      const int numP50 = apply<ChargedFinalState>(event, "CFS50").size();

      // Fill histograms
      const string suff = toString(_sqs);
      _h["nch"+suff]->fill(map2string(numP50, 0));
      _h["nch_eta05"+suff]->fill(map2string(numP05, 1));
      _h["nch_eta15"+suff]->fill(map2string(numP15, 2));
      _h["nch_eta30"+suff]->fill(map2string(numP30, 3));
      _h["nch_eta50"+suff]->fill(map2string(numP50, 4));
      _d[_sqs == 900]->fill(_sqs, numP50);
    }

    string map2string(const int n, const int b) const {
      if (_sqs == 200) {
        if (b == 0) {
          if (64 <= n && n <= 76)  return "64.0 - 76.0";
          if (60 <= n && n <= 62)  return "60.0 - 62.0";
          if (58 == n)             return "58";
        }
        if (b == 1) {
          if (13 <= n && n <= 19)  return "13.0 - 19.0";
        }
        if (b == 2) {
          if (33 <= n && n <= 45)  return "33.0 - 45.0";
          if (31 <= n && n <= 32)  return "31.0 - 32.0";
          if (30 == n)             return "30.0";
        }
        if (b == 3) {
          if (56 <= n && n <= 74)  return "56.0 - 74.0";
          if (53 <= n && n <= 55)  return "53.0 - 55.0";
          if (51 <= n && n <= 52)  return "51.0 - 52.0";
          if (49 <= n && n <= 50)  return "49.0 - 50.0";
          if (48 == n)             return "48.0";
        }
        if (b == 4) {
          if (63 <= n && n <= 77)  return "63.0 - 77.0";
          if (60 <= n && n <= 62)  return "60.0 - 62.0";
          if (58 <= n && n <= 59)  return "58.0 - 59.0";
          if (56 <= n && n <= 57)  return "56.0 - 57.0";
          if (55 == n)             return "55.0";
          if ( 0 <= n && n <=  2)  return "0.0 - 2.0";
        }
      }
      if (_sqs == 600) {
        if (b == 0) {
          if (122 <= n && n <= 136)  return "122.0 - 136.0";
          if (114 <= n && n <= 120)  return "114.0 - 120.0";
          if (106 <= n && n <= 108)  return "106.0 - 108.0";
          if (104 == n)              return "104.0";
          if (  2 <= n && n <=   6)  return "2.0 - 6.0";
        }
        if (b == 1) {
          if (24 <= n && n <= 31)  return "24.0 - 31.0";
          if (21 <= n && n <= 23)  return "21.0 - 23.0";
          if (20 == n)             return "20.0";
        }
        if (b == 2) {
          if (59 <= n && n <= 75)  return "59.0 - 75.0";
          if (54 <= n && n <= 58)  return "54.0 - 58.0";
          if (51 <= n && n <= 53)  return "51.0 - 53.0";
          if (49 <= n && n <= 50)  return "49.0 - 50.0";
          if (47 <= n && n <= 48)  return "47.0 - 48.0";
          if (46 == n)             return "46.0";
        }
        if (b == 3) {
          if (96 <= n && n <= 119)  return "69.0 - 119.0";
          if (89 <= n && n <=  95)  return "89.0 - 95.0";
          if (85 <= n && n <=  88)  return "85.0 - 88.0";
          if (82 <= n && n <=  84)  return "82.0 - 84.0";
          if (80 <= n && n <=  81)  return "80.0 - 81.0";
          if (78 <= n && n <=  79)  return "78.0 - 79.0";
          if (76 <= n && n <=  77)  return "76.0 - 77.0";
          if (75 == n)              return "75.0";
        }
        if (b == 4) {
          if (119 <= n && n <=  137)  return "119.0 - 137.0";
          if (112 <= n && n <=  118)  return "112.0 - 118.0";
          if (107 <= n && n <=  111)  return "107.0 - 111.0";
          if (103 <= n && n <=  106)  return "103.0 - 106.0";
          if (101 <= n && n <=  102)  return "101.0 - 102.0";
          if ( 99 <= n && n <=  100)  return "99.0 - 100.0";
          if ( 97 <= n && n <=   98)  return "97.0 - 98.0";
          if ( 95 <= n && n <=   96)  return "95.0 - 96.0";
          if ( 94 == n)               return "94.0";
          if (  0 <= n && n <=    2)  return "0.0 - 2.0";
        }
      }
      const size_t idx = _axes.at(_sqs+b).index((double)n);
      double val = _axes.at(_sqs+b).mid(idx);
      val = val + 0.5 - (val<0);
      return to_string((int)val) + ".0";
    }

    void finalize() {
      scale(_c, crossSectionPerEvent());
      scale(_h, crossSectionPerEvent());
      scale(_d, crossSectionPerEvent());
      for (const auto& item : _c) {
        if (isZero(item.second->sumW())) continue;
        const string suff = toString(item.first);
        scale(_h["nch"+suff], 1.0/item.second->sumW());
        scale(_h["nch_eta05"+suff],  1.0/item.second->sumW());
        scale(_h["nch_eta15"+suff],  1.0/item.second->sumW());
        scale(_h["nch_eta30"+suff],  1.0/item.second->sumW());
        scale(_h["nch_eta50"+suff],  1.0/item.second->sumW());
        scale(_d[item.first == 900], 1.0/item.second->sumW());
        for (auto& b: _h["nch"+suff]->bins()) {
          const size_t idx = b.index();
          double sf = _axes[item.first+0].width(idx);
          b.scaleW(1.0/sf);
        }
        for (auto& b: _h["nch_eta05"+suff]->bins()) {
          const size_t idx = b.index();
          double sf = _axes[item.first+1].width(idx);
          b.scaleW(1.0/sf);
        }
        for (auto& b: _h["nch_eta15"+suff]->bins()) {
          const size_t idx = b.index();
          double sf = _axes[item.first+2].width(idx);
          b.scaleW(1.0/sf);
        }
        for (auto& b: _h["nch_eta30"+suff]->bins()) {
          const size_t idx = b.index();
          double sf = _axes[item.first+3].width(idx);
          b.scaleW(1.0/sf);
        }
        for (auto& b: _h["nch_eta50"+suff]->bins()) {
          const size_t idx = b.index();
          double sf = _axes[item.first+4].width(idx);
          b.scaleW(1.0/sf);
        }
      }
    }

    /// @}


  private:

    /// Weight counter
    map<int,CounterPtr> _c;

    /// @name Histograms
    /// @{
    map<string,BinnedHistoPtr<string>> _h;
    BinnedHistoPtr<int> _d[2];
    map<int,YODA::Axis<double>> _axes;
    int _sqs = -1;
    /// @}

  };

  RIVET_DECLARE_ALIASED_PLUGIN(UA5_1989_I267179, UA5_1989_S1926373);
}

Aliases: - UA5_1989_S1926373