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// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/TriggerUA5.hh"
 4#include "Rivet/Projections/ChargedFinalState.hh"
 5
 6namespace Rivet {
 7
 8
 9  /// UA5 charged multiplicity measurements at 546 GeV
10  class UA5_1987_S1640666 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(UA5_1987_S1640666);
15
16
17    /// Book histograms and initialise projections before the run
18    void init() {
19      declare(TriggerUA5(), "Trigger");
20      declare(ChargedFinalState((Cuts::etaIn(-5.0, 5.0))), "CFS");
21
22      book(_hist_mean_nch ,1, 1, 1);
23      book(_hist_nch      ,3, 1, 1);
24      book(_sumWPassed, "SumW");
25
26    }
27
28
29    /// Perform the per-event analysis
30    void analyze(const Event& event) {
31      // Trigger
32      const TriggerUA5& trigger = apply<TriggerUA5>(event, "Trigger");
33      if (!trigger.nsdDecision()) vetoEvent;
34
35      _sumWPassed->fill();
36
37      // Count final state particles in several eta regions
38      const int Nch = apply<ChargedFinalState>(event, "CFS").size();
39
40      // Fill histograms
41      _hist_nch->fill(Nch);
42      _hist_mean_nch->fill(_hist_mean_nch->bin(0).xMid(), Nch);
43
44    }
45
46
47    /// Normalise histograms etc., after the run
48    void finalize() {
49
50      scale(_hist_nch, 1.0 / *_sumWPassed);
51      scale(_hist_mean_nch, 1.0 / *_sumWPassed);
52
53    }
54
55
56  private:
57
58    CounterPtr _sumWPassed;
59
60    Histo1DPtr _hist_mean_nch;
61    Histo1DPtr _hist_nch;
62
63  };
64
65
66
67  RIVET_DECLARE_ALIASED_PLUGIN(UA5_1987_S1640666, UA5_1987_I244829);
68
69}