Rivet analyses


title: GAMMAGAMMA_1980_I153382

Cross section for $e^+e^-\to\pi^+\pi^+\pi^-\pi^+$ between 1.456 and 2.15 GeV

Experiment: GAMMAGAMMA (ADONE)

Inspire ID: 153382

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett. B95 (1980) 139-142, 1980

Beams: e+ e-

Beam energies: ANY

Run details: - e+e- to hadrons

Measurement of the cross section for $e^+e^-\to\pi^+\pi^+\pi^-\pi^+$ for energies between 1.456 and 2.15 GeV

Source code:GAMMAGAMMA_1980_I153382.cc

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

include "Rivet/Analysis.hh"

include "Rivet/Projections/FinalState.hh"

namespace Rivet {

/// @brief e+e- > 2pi+2pi- class GAMMAGAMMA_1980_I153382 : public Analysis { public:

/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(GAMMAGAMMA_1980_I153382);


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

/// Book histograms and initialise projections before the run
void init() {
  // Initialise and register projections
  declare(FinalState(), "FS");
  // Book histograms
  book(_npion, "TMP/pion", refData(1, 1, 1));
}


/// Perform the per-event analysis
void analyze(const Event& event) {
  const FinalState& fs = apply<FinalState>(event, "FS");
  if (fs.particles().size() != 4) vetoEvent;
  for (const Particle& p : fs.particles()) {
    if (abs(p.pid()) != PID::PIPLUS) vetoEvent;
  }
  _npion->fill(sqrtS() / GeV);
}


/// Normalise histograms etc., after the run
void finalize() {
  scale(_npion, crossSection() / sumOfWeights() / nanobarn);
  Estimate1DPtr mult;
  book(mult, 1, 1, 1);
  barchart(_npion, mult);
}

/// @}


/// @name Histograms
/// @{
Histo1DPtr _npion;
/// @}

};

RIVET_DECLARE_PLUGIN(GAMMAGAMMA_1980_I153382);

} ```