Rivet analyses

Spectrum for Ξc+ production at 10.58 GeV

Experiment: CLEOII (CESR)

Inspire ID: 404590

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Lett. B373 (1996) 261-266

Beams: e+ e-

Beam energies: (5.3, 5.3)GeV

Run details: - e+e- to hadrons

Spectrum for Ξc+ production at 10.58 GeV measured by CLEOII.

Source code:CLEOII_1995_I404590.cc

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

namespace Rivet {


  /// @brief Xi_c+ spectrum
  class CLEOII_1995_I404590 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(CLEOII_1995_I404590);


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

    /// Book histograms and initialise projections before the run
    void init() {
      // projections
      declare(Beam(), "Beams");
      declare(UnstableParticles(), "UFS");
      // book histos
      book(_h_x,2,1,1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      static const int idXi = 4232;
      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
      const double Emax = ( beams.first.p3().mod() + beams.second.p3().mod() ) / 2.0;
      const double Pmax = sqrt(sqr(Emax)-sqr(2.468));
      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
      for (const Particle& p : ufs.particles(Cuts::abspid==idXi)) {
    double xp = p.momentum().p3().mod()/Pmax;
    _h_x->fill(xp);
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      normalize(_h_x,1,false);
    }

    /// @}


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


  };


  RIVET_DECLARE_PLUGIN(CLEOII_1995_I404590);

}