rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

HRS_1992_I339573

Spectrum for $\Lambda$ production at 29 GeV
Experiment: HRS (PEP)
Inspire ID: 339573
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D45 (1992) 3949-3954, 1992
Beams: e+ e-
Beam energies: (14.5, 14.5) GeV
Run details:
  • Hadronic e+e- events at $\sqrt{s} = 29.$ GeV

Spectrum for the production of $\Lambda$ baryons at 29 GeV measured by the HRS experiment.

Source code: HRS_1992_I339573.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4#include "Rivet/Projections/UnstableParticles.hh"
 5#include "Rivet/Projections/Beam.hh"
 6
 7namespace Rivet {
 8
 9
10  /// @brief Add a short analysis description here
11  class HRS_1992_I339573 : public Analysis {
12  public:
13
14    /// Constructor
15    RIVET_DEFAULT_ANALYSIS_CTOR(HRS_1992_I339573);
16
17
18    /// @name Analysis methods
19    /// @{
20
21    /// Book histograms and initialise projections before the run
22    void init() {
23      declare(Beam(), "Beams");
24      declare(FinalState(), "FS");
25      declare(UnstableParticles(), "UFS");
26
27      // Book histograms
28      book(_h_lambda, 1 , 1, 1);
29    }
30
31
32    /// Perform the per-event analysis
33    void analyze(const Event& event) {
34      if (_edges.empty())  _edges = _h_lambda->xEdges();
35      // First, veto on leptonic events by requiring at least 4 charged FS particles
36      const FinalState& fs = apply<FinalState>(event, "FS");
37      const size_t numParticles = fs.particles().size();
38
39      // Even if we only generate hadronic events, we still need a cut on numCharged >= 2.
40      if (numParticles < 2) {
41        MSG_DEBUG("Failed leptonic event cut");
42        vetoEvent;
43      }
44      MSG_DEBUG("Passed leptonic event cut");
45
46      // Get beams and average beam momentum
47      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
48      const double meanBeamMom = ( beams.first.p3().mod() +
49                                   beams.second.p3().mod() ) / 2.0;
50      MSG_DEBUG("Avg beam momentum = " << meanBeamMom);
51
52      // Final state to get particle spectra
53      for (const Particle& p : apply<UnstableParticles>(event, "UFS").particles(Cuts::abspid==3122)) {
54        double xE = p.E()/meanBeamMom;
55        _h_lambda->fill(map2string(xE));
56      }
57
58    }
59
60    string map2string(const double val) const {
61      const size_t idx = _axis.index(val)-1;
62      if (idx < _edges.size())  return _edges[idx];
63      return "OTHER";
64    }
65
66
67    /// Normalise histograms etc., after the run
68    void finalize() {
69
70      const double fact = sqr(sqrtS())/GeV2*crossSection()/nanobarn/sumOfWeights();
71      scale(_h_lambda, fact);
72    }
73
74    /// @}
75
76
77    /// @name Histograms
78    /// @{
79    BinnedHistoPtr<string> _h_lambda;
80    YODA::Axis<double> _axis{0.0, 0.15, 0.2, 0.25, 0.3, 0.4, 0.55, 0.75};
81    vector<string> _edges;
82    /// @}
83
84
85  };
86
87
88  RIVET_DECLARE_PLUGIN(HRS_1992_I339573);
89
90
91}