Rivet analyses

Hadronic cross section at 3.773 GeV

Experiment: CLEO (CESR)

Inspire ID: 1650066

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Rev.Lett. 96 (2006) 092002, 2006

Beams: e- e+

Beam energies: (1.9, 1.9)GeV

Run details: - e+ e- to hadrons

Haronic cross section at 3.773 measured by CLEO.

Source code:CLEO_2006_I1650066.cc

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

namespace Rivet {


  /// @brief Hadronic cross section at 3.773
  class CLEO_2006_I1650066 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_2006_I1650066);


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

    /// Book histograms and initialise projections before the run
    void init() {
      declare(FinalState(), "FS");
      book(_c_hadrons, 1,1,1);
      for (const string& en : _c_hadrons.binning().edges<0>()) {
        double eval = stod(en);
        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;
      }
      // mu+mu- + photons
      if (nCount[-13]==1 and nCount[13]==1 &&  ntotal==2+nCount[22]) vetoEvent;
      else { // everything else
        _c_hadrons->fill(_sqs);
      }
    }


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

    /// @}


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


  };


  RIVET_DECLARE_PLUGIN(CLEO_2006_I1650066);


}