Rivet analyses


title: BES_2003_I563492

Mass distributions in $\psi(2S)\to\gamma\pi^+\pi^-$ and $\psi(2S)\to\gamma K^+K^-$

Experiment: BES (BEPC)

Inspire ID: 563492

Status: VALIDATED NOHEPDATA

Authors: - Peter Richardson

References: - Phys.Rev.D 67 (2003) 032004

Beams: * *

Beam energies: ANY

Run details: - Any process producing psi(2S), originally e+e-

Measurement of the pion pair mass distribution in $\psi(2S)\to\gamma\pi^+\pi^-$ and $\psi(2S)\to\gamma K^+K^-$. The background subtracted data were read from the plots in the paper.

Source code:BES_2003_I563492.cc

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

include "Rivet/Analysis.hh"

include "Rivet/Projections/DecayedParticles.hh"

include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {

/// @brief psi(2S) -> gamma pi+pi- / K+K- class BES_2003_I563492 : public Analysis { public:

/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(BES_2003_I563492);


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

/// Book histograms and initialise projections before the run
void init() {
  // Initialise and register projections
  UnstableParticles ufs = UnstableParticles(Cuts::abspid == 100443);
  declare(ufs, "UFS");
  DecayedParticles PSI(ufs);
  PSI.addStable(PID::ETA);
  PSI.addStable(PID::PI0);
  declare(PSI, "PSI");
  // histos
  for (unsigned int ix = 0; ix < 2; ++ix) {
    book(_h[ix], 1 + ix, 1, 1);
  }
}


/// Perform the per-event analysis
void analyze(const Event& event) {
  // find the J/psi decays
  DecayedParticles PSI = apply<DecayedParticles>(event, "PSI");
  // loop over particles
  for (unsigned int ix = 0; ix < PSI.decaying().size(); ++ix) {
    unsigned int imode = 0;
    if (PSI.modeMatches(ix, 3, mode1))
      imode = 0;
    else if (PSI.modeMatches(ix, 3, mode2))
      imode = 1;
    else
      continue;
    const Particle& gam = PSI.decayProducts()[0].at(22)[0];
    _h[imode]->fill((PSI.decaying()[ix].mom() - gam.mom()).mass());
  }
}


/// Normalise histograms etc., after the run
void finalize() {
  normalize(_h, 1.0, false);
}

/// @}


/// @name Histograms
/// @{
Histo1DPtr _h[2];
const map<PdgId, unsigned int> mode1 = {{211, 1}, {-211, 1}, {22, 1}};
const map<PdgId, unsigned int> mode2 = {{321, 1}, {-321, 1}, {22, 1}};
/// @}

};

RIVET_DECLARE_PLUGIN(BES_2003_I563492);

} ```