Rivet analyses

Cross section for γγ → K+Kπ+ππ0 $\sqrt{s}=2\to3.6\,$GeV

Experiment: ARGUS (DORIS)

Inspire ID: 260828

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett.B 210 (1988) 273-277

Beams: 22 22

Beam energies: ANY

Run details: - gamma gamma -> hadrons

Measurement of the cross section for γγ → K+Kπ+ππ0 with $\sqrt{s}=2\to3.6\,$GeV.

Source code:ARGUS_1988_I260828.cc

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

namespace Rivet {


  /// @brief gamma gamma -> K+ K- pi+ pi-
  class ARGUS_1988_I260828 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(ARGUS_1988_I260828);


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

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

      for (const string& edge : _h.binning().edges<0>()) {
        if (isCompatibleWithSqrtS(stod(edge)*GeV)) {
          _sqs = edge;
        }
      }
      raiseBeamErrorIf(_sqs.empty());
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      const FinalState& fs = apply<FinalState>(event, "FS");
      // find the final-state particles
      map<long,int> nCount;
      int ntotal(0);
      for (const Particle& p : fs.particles()) {
        nCount[p.pid()] += 1;
        ++ntotal;
      }
      if (ntotal==5 && nCount[211]==1 && nCount[-211]==1 &&
          nCount[321]==1 && nCount[-321]==1 && nCount[111]==1) _h->fill(_sqs);
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_h, crossSection()/nanobarn/sumOfWeights());
    }

    /// @}


    /// @name Histograms
    /// @{
    BinnedHistoPtr<string> _h;
    string _sqs = "";
    /// @}


  };


  RIVET_DECLARE_PLUGIN(ARGUS_1988_I260828);

}