rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESIII_2023_I2662580

Mass distributions in $D^+\to K^0_S\pi^+\pi^0\pi^0$ decays
Experiment: BESIII (BEPC)
Inspire ID: 2662580
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References: Beams: * *
Beam energies: ANY
Run details:
  • Any process producting D+ mesons, originally psi(3770) decay

Measurement of the mass distributions in $D^+\to K^0_S\pi^+\pi^0\pi^0$ decays by the BESIII collaboration. The data were read from the plots in the paper and therefore for some points the error bars are the size of the point. It is also not clear that any resolution effects have been unfolded.

Source code: BESIII_2023_I2662580.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/UnstableParticles.hh"
 4#include "Rivet/Projections/DecayedParticles.hh"
 5
 6namespace Rivet {
 7
 8
 9  /// @brief D+ -> KS0 pi+ pi0 pi0
10  class BESIII_2023_I2662580 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2023_I2662580);
15
16
17    /// @name Analysis methods
18    /// @{
19
20    /// Book histograms and initialise projections before the run
21    void init() {
22      // Initialise and register projections
23      UnstableParticles ufs = UnstableParticles(Cuts::abspid==411);
24      declare(ufs, "UFS");
25      DecayedParticles DD(ufs);
26      DD.addStable(PID::PI0);
27      DD.addStable(PID::K0S);
28      declare(DD, "DD");
29      // histograms
30      for (unsigned int ix=0; ix<7; ++ix) {
31        book(_h[ix], 1, 1, 1+ix);
32      }
33    }
34
35
36    /// Perform the per-event analysis
37    void analyze(const Event& event) {
38      DecayedParticles DD = apply<DecayedParticles>(event, "DD");
39      // loop over particles
40      for (unsigned int ix=0; ix<DD.decaying().size(); ++ix) {
41        int sign = DD.decaying()[ix].pid()/DD.decaying()[ix].abspid();
42        if (!DD.modeMatches(ix,4,mode) && !DD.modeMatches(ix,4,modeCC)) continue;
43        const Particle & KS0 = DD.decayProducts()[ix].at(      310)[0];
44        const Particle & pip = DD.decayProducts()[ix].at( sign*211)[0];
45        const Particles& pi0 = DD.decayProducts()[ix].at(      111);
46        const double mpipi = (pi0[0].mom()+pi0[1].mom()).mass();
47        if (mpipi>0.46 && mpipi<0.52) continue;
48        _h[3]->fill(mpipi);
49        _h[2]->fill((KS0.mom()+pip.mom()).mass());
50        _h[5]->fill((KS0.mom()+pi0[0].mom()+pi0[1].mom()).mass());
51        _h[6]->fill((pip.mom()+pi0[0].mom()+pi0[1].mom()).mass());
52        for(unsigned int ix=0; ix<2; ++ix) {
53          _h[0]->fill((KS0.mom()+pi0[ix].mom()).mass());
54          _h[1]->fill((pip.mom()+pi0[ix].mom()).mass());
55          _h[4]->fill((KS0.mom()+pip.mom()+pi0[ix].mom()).mass());
56        }
57      }
58    }
59
60
61    /// Normalise histograms etc., after the run
62    void finalize() {
63	    normalize(_h);
64    }
65
66    /// @}
67
68
69    /// @name Histograms
70    /// @{
71    Histo1DPtr _h[7];
72    const map<PdgId,unsigned int> mode   = { {310,1}, { 211,1}, { 111,2} };
73    const map<PdgId,unsigned int> modeCC = { {310,1}, {-211,1}, { 111,2} };
74    /// @}
75
76
77  };
78
79
80  RIVET_DECLARE_PLUGIN(BESIII_2023_I2662580);
81
82}