rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CMSTOTEM_2014_I1294140

Charged particle pseudorapidity distribution at $\sqrt{s}$=8 TeV
Experiment: CMS, TOTEM (LHC)
Inspire ID: 1294140
Status: VALIDATED
Authors:
  • Panos Katsas (Panos.Katsas@desy.de)
References:
  • CERN-PH-EP-2014-063
  • arXiv: 1405.0722
  • Submitted to EPJ C
Beams: p+ p+
Beam energies: (4000.0, 4000.0) GeV
Run details:
  • Inclusive, NSD-enhanced and SD-enhanced pp events.

The pseudorapidity distribution of charged particles produced in proton-proton collisions at a centre-of-mass energy of 8 TeV are measured in the ranges $|\eta| < 2.2$ and $5.3 < |\eta| < 6.4$, with the CMS and TOTEM detectors, respectively. The measurement is performed with a one-side TOTEM trigger, which is sensitive to 99\% of non-diffractive interactions and diffractive interactions with masses above 3.6 GeV, for three different event selections. An inclusive sample with the least selection bias, a sample enhanced in non-single diffractive events, and a sample enhanced in single-diffractive events were selected.

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

namespace Rivet {


  class CMSTOTEM_2014_I1294140 : public Analysis {
  public:

    CMSTOTEM_2014_I1294140()
      : Analysis("CMSTOTEM_2014_I1294140")
    {     }


    void init() {
      ChargedFinalState cfs(-7.0, 7.0, 0.0*GeV);
      declare(cfs, "CFS");

      _Nevt_after_cuts_or = 0;
      _Nevt_after_cuts_and = 0;
      _Nevt_after_cuts_xor = 0;

      if (fuzzyEquals(sqrtS(), 8000*GeV, 1E-3)) {
        _h_dNch_dEta_OR = bookHisto1D(1, 1, 1);
        _h_dNch_dEta_AND = bookHisto1D(2, 1, 1);
        _h_dNch_dEta_XOR = bookHisto1D(3, 1, 1);
      }
    }


    void analyze(const Event& event) {
      // Count forward and backward charged particles
      const ChargedFinalState& charged = apply<ChargedFinalState>(event, "CFS");
      int count_plus = 0, count_minus = 0;
      foreach (const Particle& p, charged.particles()) {
        if (inRange(p.eta(),  5.3,  6.5)) count_plus++;
        if (inRange(p.eta(), -6.5, -5.3)) count_minus++;
      }

      // Cut combinations
      const bool cutsor  = (count_plus > 0 || count_minus > 0);
      const bool cutsand = (count_plus > 0 && count_minus > 0);
      const bool cutsxor = ( (count_plus > 0 && count_minus == 0) || (count_plus == 0 && count_minus > 0) );

      // Increment counters and fill histos
      const double weight = event.weight();
      if (cutsor)  _Nevt_after_cuts_or  += weight;
      if (cutsand) _Nevt_after_cuts_and += weight;
      if (cutsxor) _Nevt_after_cuts_xor += weight;
      foreach (const Particle& p, charged.particles()) {
        if (cutsor)  _h_dNch_dEta_OR ->fill(p.abseta(), weight);
        if (cutsand) _h_dNch_dEta_AND->fill(p.abseta(), weight);
        if (cutsxor) _h_dNch_dEta_XOR->fill(p.abseta(), weight);
      }

    }


    void finalize() {
      scale(_h_dNch_dEta_OR,  0.5/_Nevt_after_cuts_or);
      scale(_h_dNch_dEta_AND, 0.5/_Nevt_after_cuts_and);
      scale(_h_dNch_dEta_XOR, 0.5/_Nevt_after_cuts_xor);
    }


  private:

    Histo1DPtr _h_dNch_dEta_OR, _h_dNch_dEta_AND, _h_dNch_dEta_XOR;
    double _Nevt_after_cuts_or, _Nevt_after_cuts_and, _Nevt_after_cuts_xor;

  };


  // Hook for the plugin system
  DECLARE_RIVET_PLUGIN(CMSTOTEM_2014_I1294140);

}