rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESIII_2018_I1633425

Cross-section for $e^+e^-\to\pi^0\pi^0\psi(2S)$ for energies between 4.009 to 4.600 GeV
Experiment: BESIII (BEPC)
Inspire ID: 1633425
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D97 (2018) no.5, 052001
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+ e- to hadrons

Cross section for $e^+e^-\to\pi^+\pi^-h_c$ for energies between 3.89 and 4.6 GeV measured by the BESIII collaboration.

Source code: BESIII_2018_I1633425.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 Cross-section for $e^+e^-\to\pi^0\pi^0\psi(2S)$ for energies between 4.009 to 4.600 GeV
 10  class BESIII_2018_I1633425 : public Analysis {
 11  public:
 12
 13    /// Constructor
 14    RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2018_I1633425);
 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(_nPsi2, "TMP/Psi2S");
 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    /// Perform the per-event analysis
 39    void analyze(const Event& event) {
 40      const FinalState& fs = apply<FinalState>(event, "FS");
 41      map<long,int> nCount;
 42      int ntotal(0);
 43      for (const Particle& p : fs.particles()) {
 44        nCount[p.pid()] += 1;
 45        ++ntotal;
 46      }
 47      const FinalState& ufs = apply<FinalState>(event, "UFS");
 48      for (const Particle& p : ufs.particles()) {
 49        if(p.children().empty()) continue;
 50        // find the psi(2S)
 51        if(p.pid()==100443) {
 52          map<long,int> nRes = nCount;
 53          int ncount = ntotal;
 54          findChildren(p,nRes,ncount);
 55          // omega pi+pi-
 56          if(ncount!=2) continue;
 57          bool matched = true;
 58          for(auto const & val : nRes) {
 59            if(abs(val.first)==111) {
 60              if(val.second !=2) {
 61                matched = false;
 62                break;
 63              }
 64            }
 65            else if(val.second!=0) {
 66              matched = false;
 67              break;
 68            }
 69          }
 70          if(matched) {
 71            _nPsi2->fill();
 72            break;
 73          }
 74        }
 75      }
 76    }
 77
 78    /// Normalise histograms etc., after the run
 79    void finalize() {
 80      double sigma = _nPsi2->val();
 81      double error = _nPsi2->err();
 82      sigma *= crossSection()/ sumOfWeights() /picobarn;
 83      error *= crossSection()/ sumOfWeights() /picobarn;
 84      Estimate1DPtr  mult;
 85      book(mult, 1, 1, 1);
 86      for (auto& b : mult->bins()) {
 87        if (inRange(sqrtS()/GeV, b.xMin(), b.xMax())) {
 88          b.set(sigma, error);
 89        }
 90      }
 91    }
 92    /// @}
 93
 94
 95    /// @name Histograms
 96    /// @{
 97    CounterPtr _nPsi2;
 98    /// @}
 99
100  };
101
102
103  RIVET_DECLARE_PLUGIN(BESIII_2018_I1633425);
104
105}