Rivet analyses
Cross section for e+e− → ϕη′ between 3.508 and 4.6 GeV
Experiment: BESIII (BEPC)
Inspire ID: 2165175
Status: VALIDATED NOHEPDATA
Authors: - Peter Richardson
References: - arXiv: 2210.06988
Beams: e+ e-
Beam energies: (1.8, 1.8); (1.8, 1.8); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (2.0, 2.0); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.2, 2.2); (2.2, 2.2); (2.3, 2.3)GeV
Run details: - e+ e-
Cross section for e+e− → ϕη′ between 3.508 and 4.6 GeV.
Source
code:BESIII_2022_I2165175.cc
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/UnstableParticles.hh"
namespace Rivet {
/// @brief e+ e- > phi eta'
class BESIII_2022_I2165175 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2022_I2165175);
/// @name Analysis methods
/// @{
/// Book histograms and initialise projections before the run
void init() {
// projections
declare(FinalState(), "FS");
declare(UnstableParticles(Cuts::pid==331 or Cuts::pid==333), "UFS");
book(_sigma,1,1,1);
for (const string& en : _sigma.binning().edges<0>()) {
const double eval = stod(en);
if (isCompatibleWithSqrtS(eval)) {
_sqs = en; break;
}
}
raiseBeamErrorIf(_sqs.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) {
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;
}
const FinalState& ufs = apply<FinalState>(event, "UFS");
// loop over any phi mesons
for (const Particle& phi : ufs.particles(Cuts::pid==333)) {
bool matched = false;
if (phi.children().empty()) continue;
map<long,int> nRes = nCount;
int ncount = ntotal;
findChildren(phi,nRes,ncount);
for (const Particle & chi : ufs.particles(Cuts::pid==331)) {
if (chi.children().empty()) continue;
map<long,int> nRes2 = nRes;
int ncount2 = ncount;
findChildren(chi,nRes2,ncount2);
matched = true;
for (const auto& val : nRes2) {
if (val.second!=0) {
matched = false;
break;
}
}
if (!matched) continue;
_sigma->fill(_sqs);
break;
}
if (matched) break;
}
}
/// Normalise histograms etc., after the run
void finalize() {
scale(_sigma,crossSection()/ sumOfWeights() /picobarn);
}
/// @}
/// @name Histograms
/// @{
BinnedHistoPtr<string> _sigma;
string _sqs = "";
/// @}
};
RIVET_DECLARE_PLUGIN(BESIII_2022_I2165175);
}