Rivet analyses referenceMARKII_1988_I261194$\eta$ production at 29 GeVExperiment: MARKII (PEP) Inspire ID: 261194 Status: VALIDATED Authors:
Beam energies: (14.5, 14.5) GeV Run details:
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 const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
31 for (const Particle& p : ufs.particles(Cuts::abspid==221)) {
32 const double xp = 2.*p.E()/sqrtS();
33 const double beta = p.p3().mod() / p.E();
34 _h_spect->fill(xp,1./beta);
35 }
36 }
37
38
39 /// Normalise histograms etc., after the run
40 void finalize() {
41 scale(_h_spect, sqr(sqrtS())*crossSection()/microbarn/sumOfWeights());
42 }
43
44 ///@}
45
46
47 /// @name Histograms
48 ///@{
49 Histo1DPtr _h_spect;
50 ///@}
51
52
53 };
54
55
56 RIVET_DECLARE_PLUGIN(MARKII_1988_I261194);
57
58}
|