Rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

UA5_1987_S1640666

UA5 charged multiplicity measurements at 546 GeV
Experiment: UA5 (CERN SPS)
Inspire ID: 244829
Status: VALIDATED
Authors:
  • Holger Schulz
References:
  • Phys.Rept.154:247-383,1987
Beams: p- p+
Beam energies: (273.0, 273.0) GeV
Run details:
  • QCD and diffractive events at 546 GeV

Charged particle multiplicity measurement.

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

namespace Rivet {


  class UA5_1987_S1640666 : public Analysis {
  public:

    /// Constructor
    UA5_1987_S1640666()
      : Analysis("UA5_1987_S1640666")
    {
      _sumWPassed = 0;

    }

    /// Book histograms and initialise projections before the run
    void init() {
      declare(TriggerUA5(), "Trigger");
      declare(ChargedFinalState(-5.0, 5.0), "CFS");

      _hist_mean_nch = bookHisto1D(1, 1, 1);
      _hist_nch      = bookHisto1D(3, 1, 1);

    }


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

      const double weight = event.weight();
      _sumWPassed += weight;

      // Count final state particles in several eta regions
      const int Nch = apply<ChargedFinalState>(event, "CFS").size();

      // Fill histograms
      _hist_nch->fill(Nch, weight);
      _hist_mean_nch->fill(_hist_mean_nch->bin(0).xMid(), Nch*weight);

    }


    /// Normalise histograms etc., after the run
    void finalize() {

      scale(_hist_nch, 1.0/_sumWPassed);
      scale(_hist_mean_nch, 1.0/_sumWPassed);

    }

  private:

    double _sumWPassed;

    Histo1DPtr _hist_mean_nch;
    Histo1DPtr _hist_nch;

  };



  // The hook for the plugin system
  DECLARE_RIVET_PLUGIN(UA5_1987_S1640666);


}