rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEOII_1995_I404590

Spectrum for $\Xi_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 $\Xi_c^{+}$ production at 10.58 GeV measured by CLEOII.

Source code: CLEOII_1995_I404590.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/Beam.hh"
 4#include "Rivet/Projections/UnstableParticles.hh"
 5
 6namespace Rivet {
 7
 8
 9  /// @brief Xi_c+ spectrum
10  class CLEOII_1995_I404590 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(CLEOII_1995_I404590);
15
16
17    /// @name Analysis methods
18    /// @{
19
20    /// Book histograms and initialise projections before the run
21    void init() {
22      // projections
23      declare(Beam(), "Beams");
24      declare(UnstableParticles(), "UFS");
25      // book histos
26      book(_h_x,2,1,1);
27    }
28
29
30    /// Perform the per-event analysis
31    void analyze(const Event& event) {
32      static const int idXi = 4232;
33      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
34      const double Emax = ( beams.first.p3().mod() + beams.second.p3().mod() ) / 2.0;
35      const double Pmax = sqrt(sqr(Emax)-sqr(2.468));
36      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
37      for (const Particle& p : ufs.particles(Cuts::abspid==idXi)) {
38	double xp = p.momentum().p3().mod()/Pmax;
39	_h_x->fill(xp);
40      }
41    }
42
43
44    /// Normalise histograms etc., after the run
45    void finalize() {
46      normalize(_h_x,1,false);
47    }
48
49    /// @}
50
51
52    /// @name Histograms
53    /// @{
54    Histo1DPtr _h_x;
55    /// @}
56
57
58  };
59
60
61  RIVET_DECLARE_PLUGIN(CLEOII_1995_I404590);
62
63}