Rivet analyses


title: BELLE_2015_I1336624

Measurements of $R$ for $b\bar{b}$ and $\Upsilon(1,2,3S)\pi^+\pi^-$ between 10.63 and 11.05 GeV

Experiment: BELLE (KEKB)

Inspire ID: 1336624

Status: VALIDATED

Authors: - Peter Richardson

References: - Phys.Rev. D93 (2016) no.1, 011101

Beams: e+ e-

Beam energies: (5.3, 5.3); (5.3, 5.3); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.4, 5.4); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5); (5.5, 5.5)GeV

Run details: - e+e- to hadrons and muons (for normalisation)

Measurement of the ratio of the cross sections for $e^+e^-\to\Upsilon(1,2,3S)\pi^+\pi^-$ and $e^+e^-\to b\bar{b}$ to the muon cross section for energies between 10.63 and 11.05 GeV by the BELLE collaboration.

Source code:BELLE_2015_I1336624.cc

```c++ // -- C++ --

include "Rivet/Analysis.hh"

include "Rivet/Projections/FinalState.hh"

include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {

/// @brief e+e- > bbar and Upsilon(1,2,3) pi+pi- class BELLE_2015_I1336624 : public Analysis { public:

/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2015_I1336624);


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

/// Book histograms and initialise projections before the run
void init() {

  // Initialise and register projections
  declare(FinalState(), "FS");
  declare(UnstableParticles(), "UFS");

  // Book histograms
  const YODA::BinnedEstimate<string>& ref = refData<YODA::BinnedEstimate<string>>(2, 1, 1);
  book(_c_hadrons, "TMP/c_hadrons", ref);
  book(_c_muons[0], "/TMP/sigma_muons_1", ref);
  book(_c_muons[1], "/TMP/sigma_muons_2", refData<YODA::BinnedEstimate<string>>(1, 1, 1));
  for (size_t ix = 0; ix < 3; ++ix) {
    book(_c_Ups[ix], "/TMP/c_Ups_" + toString(ix + 1),
         refData<YODA::BinnedEstimate<string>>(1, 1, 1 + ix));
  }
  for (size_t ix = 0; ix < _sqs.size(); ++ix) {
    for (const string& en : _c_muons[ix].binning().edges<0>()) {
      const double eval = stod(en) * MeV;
      if (isCompatibleWithSqrtS(eval)) {
        _sqs[ix] = eval;
        break;
      }
    }
  }
  raiseBeamErrorIf(_sqs[0].empty() && _sqs[1].empty());
}

void findChildren(const Particle& p, map<long, int>& nRes, int& ncount) const {
  for (const Particle& child : p.children()) {
    if (child.children().empty()) {
      --nRes[child.pid()];
      --ncount;
    }
    else {
      findChildren(child, nRes, ncount);
    }
  }
}

/// Perform the per-event analysis
void analyze(const Event& event) {
  // analyse the final state
  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;
  }
  // intermediates
  bool isBottom(false);
  const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
  for (const Particle& p : ufs.particles()) {
    // check for bottom hadrons
    if (PID::isBottomHadron(p.pid()) && (p.abspid() % 1000) / 10 != 55) {
      isBottom = true;
      break;
    }
    // upsilon + pi+pi-
    if (p.children().empty()) continue;
    if (p.pid() != 553 && p.pid() != 100553 && p.pid() != 200553) continue;
    map<long, int> nRes = nCount;
    int ncount = ntotal;
    findChildren(p, nRes, ncount);
    if (ncount != 2) continue;
    bool matched = true;
    for (const auto& val : nRes) {
      if (abs(val.first) == 211) {
        continue;
      }
      else if (val.second != 0) {
        matched = false;
        break;
      }
    }
    if (matched) {
      if (nRes[211] == 1 && nRes[-211] == 1) {
        if (p.pid() == 553) _c_Ups[0]->fill(_sqs[1]);
        if (p.pid() == 100553) _c_Ups[1]->fill(_sqs[1]);
        if (p.pid() == 200553) _c_Ups[2]->fill(_sqs[1]);
      }
    }
  }
  // mu+mu- + photons
  if (nCount[-13] == 1 && nCount[13] == 1 && ntotal == 2 + nCount[22]) {
    _c_muons[0]->fill(_sqs[0]);
    _c_muons[1]->fill(_sqs[1]);
  }
  // open bottom
  else if (isBottom) {
    _c_hadrons->fill(_sqs[0]);
  }
}


/// Normalise histograms etc., after the run
void finalize() {

  BinnedEstimatePtr<string> tmp;
  book(tmp, 2, 1, 1);
  divide(_c_hadrons, _c_muons[0], tmp);

  for (size_t ix = 0; ix < 3; ++ix) {
    book(tmp, 1, 1, 1 + ix);
    divide(_c_Ups[ix], _c_muons[1], tmp);
  }
}

/// @}


/// @name Histograms
/// @{
BinnedHistoPtr<string> _c_hadrons, _c_muons[2], _c_Ups[3];
vector<string> _sqs = {"", ""};
/// @}

};

RIVET_DECLARE_PLUGIN(BELLE_2015_I1336624);

} ```