rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BELLE_2014_I1282602

Cross section for $e^+e^-\to J/\psi K^+K^-$ at energies between 4.175 and 5.975 GeV
Experiment: BELLE (KEKB)
Inspire ID: 1282602
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D89 (2014) 072015, 2014
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

Measurement of the cross section for $e^+e^-\to J/\psi K^+K^-$ at energies between 4.175 and 5.975 GeV using radiative return by BELLE. The paper also includes $J\psi K^0_SK^0_S$ but the data is a confidence limit and is therefore not implemented

Source code: BELLE_2014_I1282602.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/FinalState.hh"
  4#include "Rivet/Projections/UnstableParticles.hh"
  5
  6namespace Rivet {
  7
  8
  9  /// @brief Add a short analysis description here
 10  class BELLE_2014_I1282602 : public Analysis {
 11  public:
 12
 13    /// Constructor
 14    RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2014_I1282602);
 15
 16
 17    /// @name Analysis methods
 18    //@{
 19
 20    /// Book histograms and initialise projections before the run
 21    void init() {
 22      declare(FinalState(), "FS");
 23      declare(UnstableParticles(), "UFS");
 24      book(_nJPsi, "TMP/jpsi");
 25    }
 26
 27    void findChildren(const Particle & p,map<long,int> & nRes, int &ncount) {
 28      for (const Particle &child : p.children()) {
 29	if(child.children().empty()) {
 30	  --nRes[child.pid()];
 31	  --ncount;
 32	}
 33	else
 34	  findChildren(child,nRes,ncount);
 35      }
 36    }
 37
 38
 39    /// Perform the per-event analysis
 40    void analyze(const Event& event) {
 41      const FinalState& fs = apply<FinalState>(event, "FS");
 42      map<long,int> nCount;
 43      int ntotal(0);
 44      for (const Particle& p : fs.particles()) {
 45	nCount[p.pid()] += 1;
 46	++ntotal;
 47      }
 48      const FinalState& ufs = apply<FinalState>(event, "UFS");
 49      for (const Particle& p : ufs.particles()) {
 50	if(p.children().empty()) continue;
 51	// find the j/psi
 52	if(p.pid()==443) {
 53	  map<long,int> nRes = nCount;
 54	  int ncount = ntotal;
 55	  findChildren(p,nRes,ncount);
 56	  // J/psi pi+pi-
 57	  if(ncount!=2) continue;
 58	  bool matched = true;
 59	  for(auto const & val : nRes) {
 60	    if(abs(val.first)==321) {
 61	      if(val.second !=1) {
 62		matched = false;
 63		break;
 64	      }
 65	    }
 66	    else if(val.second!=0) {
 67	      matched = false;
 68	      break;
 69	    }
 70	  }
 71	  if(matched) {
 72	    _nJPsi->fill();
 73	    break;
 74	  }
 75	}
 76      }
 77    }
 78
 79
 80    /// Normalise histograms etc., after the run
 81    void finalize() {
 82      double sigma =  _nJPsi->val();
 83      double error = _nJPsi->err();
 84      sigma *= crossSection()/ sumOfWeights() /picobarn;
 85      error *= crossSection()/ sumOfWeights() /picobarn; 
 86      Scatter2D temphisto(refData(1, 1, 1));
 87      Scatter2DPtr  mult;
 88      book(mult, 1, 1, 1);
 89      for (size_t b = 0; b < temphisto.numPoints(); b++) {
 90	const double x  = temphisto.point(b).x();
 91	pair<double,double> ex = temphisto.point(b).xErrs();
 92	pair<double,double> ex2 = ex;
 93	if(ex2.first ==0.) ex2. first=0.0001;
 94	if(ex2.second==0.) ex2.second=0.0001;
 95	if (inRange(sqrtS()/GeV, x-ex2.first, x+ex2.second)) {
 96	  mult->addPoint(x, sigma, ex, make_pair(error,error));
 97	}
 98	else {
 99	  mult->addPoint(x, 0., ex, make_pair(0.,.0));
100	}
101      }
102    }
103
104    //@}
105
106
107    /// @name Histograms
108    //@{
109    CounterPtr _nJPsi;
110    //@}
111
112
113  };
114
115
116  // The hook for the plugin system
117  RIVET_DECLARE_PLUGIN(BELLE_2014_I1282602);
118
119
120}