Rivet analyses


title: TOPAZ_1993_I353845

Cross section in $e^+e^-\to$hadrons for energies between 57.37 and 59.84 GeV

Experiment: TOPAZ (Tristan)

Inspire ID: 353845

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett. B304 (1993) 373-380, 1993

Beams: e- e+

Beam energies: (28.7, 28.7); (28.9, 28.9); (29.0, 29.0); (29.1, 29.1); (29.2, 29.2); (29.4, 29.4); (29.5, 29.5); (29.6, 29.6); (29.7, 29.7); (29.9, 29.9)GeV

Run details: - e+ e- to hadrons and e+ e- to mu+ mu-

Measurement of the hadronic cross section in $e^+e^-$ collisions by TOPAZ for energies between 57.37 and 59.84 GeV. The individual hadronic and muonic cross sections are also outputted to the yoda file so that ratio $R$ can be recalculated if runs are combined.

Source code:TOPAZ_1993_I353845.cc

```c++ // -- C++ --

include "Rivet/Analysis.hh"

include "Rivet/Projections/FinalState.hh"

namespace Rivet {

/// @brief R measurement class TOPAZ_1993_I353845 : public Analysis { public:

/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(TOPAZ_1993_I353845);


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

/// Book histograms and initialise projections before the run
void init() {
  // Initialise and register projections
  declare(FinalState(), "FS");

  // Book histograms
  book(_c_hadrons, 2, 1, 1);
  book(_c_muons, 4, 1, 1);
  for (const string& en : _c_hadrons.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 FinalState& fs = apply<FinalState>(event, "FS");

  map<long, int> nCount;
  int ntotal(0);
  for (const Particle& p : fs.particles()) {
    nCount[p.pid()] += 1;
    ++ntotal;
  }
  if (nCount[-13] == 1 and nCount[13] == 1 && ntotal == 2 + nCount[22]) {
    // mu+mu- + photons
    _c_muons->fill(_sqs);
  }
  else
    _c_hadrons->fill(_sqs); // everything else
}


/// Normalise histograms etc., after the run
void finalize() {
  const double fact = crossSection() / sumOfWeights() / picobarn;
  scale(_c_hadrons, fact);
  scale(_c_muons, fact);
}

/// @}


/// @name Histograms
/// @{
BinnedHistoPtr<string> _c_hadrons, _c_muons;
string _sqs = "";
/// @}

};

RIVET_DECLARE_PLUGIN(TOPAZ_1993_I353845); } ```