Rivet analyses

Charged hadron multiplicity

Experiment: JADE (PETRA)

Inspire ID: 142874

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett. B88 (1979) 171-176, 1979

Beams: e- e+

Beam energies: (11.0, 11.0); (13.8, 13.8); (15.0, 15.0); (15.8, 15.8)GeV

Run details: - e+e- to hadrons

Charged hadron multiplicity at a range of energies, use with care as its not clear if KS0 decays are included of not, within the systematic error of 1.5

Source code:JADE_1979_I142874.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"

namespace Rivet {


  /// @brief Add a short analysis description here
  class JADE_1979_I142874 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(JADE_1979_I142874);


    /// @name Analysis methods
    /// @{

    /// Book histograms and initialise projections before the run
    void init() {

      // Initialise and register projections
      declare(ChargedFinalState(), "FS");
      book(_mult, 2, 1, 1);
      for (const string& en : _mult.binning().edges<0>()) {
        const double eval = stod(en)*GeV;
        if (isCompatibleWithSqrtS(eval)) {
          _sqs = en; break;
        }
      }
      raiseBeamErrorIf(_sqs.empty());
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
      _mult->fill(_sqs, fs.particles().size());
    }

    /// @}


    /// @name Histograms
    /// @{
    BinnedProfilePtr<string> _mult;
    string _sqs = "";
    /// @}


  };


  RIVET_DECLARE_PLUGIN(JADE_1979_I142874);
}