Rivet analyses


title: CMD3_2016_I1395968

Cross section for $e^+e^-\to K^+K^-\pi^+\pi^-$ between 1.44 and 2.01 GeV

Experiment: CMD3 (VEPP-2M)

Inspire ID: 1395968

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett. B759 (2016) 634-640, 2016

Beams: e+ e-

Beam energies: ANY

Run details: - e+e- to hadrons

Source code:CMD3_2016_I1395968.cc

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

include "Rivet/Analysis.hh"

include "Rivet/Projections/FinalState.hh"

namespace Rivet {

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

/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(CMD3_2016_I1395968);


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

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

  // Initialise and register projections
  declare(FinalState(), "FS");
  book(_cKpKmpippim, "TMP/KpKmpippim", refData(1, 1, 6));
}


/// 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 (ntotal != 4) vetoEvent;
  if (nCount[321] == 1 && nCount[-321] == 1 && nCount[211] == 1 && nCount[-211] == 1)
    _cKpKmpippim->fill(sqrtS() / MeV);
}


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

/// @}


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

};

RIVET_DECLARE_PLUGIN(CMD3_2016_I1395968);

} ```