rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

MARKII_1988_I261194

$\eta$ production at 29 GeV
Experiment: MARKII (PEP)
Inspire ID: 261194
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 61 (1988) 1057
Beams: e+ e-
Beam energies: (14.5, 14.5) GeV
Run details:
  • e+ e- to hadrons at 29 GeV

Rate and spectrum for $\eta$ meson production at 29 GeV measured by the MARKII collaboration.

Source code: MARKII_1988_I261194.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/UnstableParticles.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief eta production at 29 GeV
 9  class MARKII_1988_I261194 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(MARKII_1988_I261194);
14
15
16    /// @name Analysis methods
17    ///@{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21      // Initialise and register projections
22      declare(UnstableParticles(), "UFS");
23      //Histograms
24      book(_h_spect,1,1,1);
25    }
26
27
28    /// Perform the per-event analysis
29    void analyze(const Event& event) {
30      if (_edges.empty())  _edges = _h_spect->xEdges();
31      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
32      for (const Particle& p : ufs.particles(Cuts::abspid==221)) {
33        const double xp = 2.*p.E()/sqrtS();
34        const double beta = p.p3().mod() / p.E();
35        _h_spect->fill(map2string(xp), 1./beta);
36      }
37    }
38
39    string map2string(const double value) const {
40      const size_t idx = _axis.index(value);
41      if (idx && idx <= _edges.size())  return _edges[idx-1];
42      return "OTHER";
43    }
44
45
46    /// Normalise histograms etc., after the run
47    void finalize() {
48      scale(_h_spect, sqr(sqrtS())*crossSection()/microbarn/sumOfWeights());
49    }
50
51    ///@}
52
53
54    /// @name Histograms
55    ///@{
56    BinnedHistoPtr<string> _h_spect;
57    vector<string> _edges;
58    YODA::Axis<double> _axis{0.2, 0.3, 0.35, 0.4, 0.45, 0.525, 0.625, 0.725};
59    ///@}
60
61
62  };
63
64
65  RIVET_DECLARE_PLUGIN(MARKII_1988_I261194);
66
67}