rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESIII_2023_I2696635

Dalitz decay $D^+\to K^0_S\pi^+\eta$
Experiment: BESIII (BEPC)
Inspire ID: 2696635
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References: Beams: * *
Beam energies: ANY
Run details:
  • Any process producing D+ mesons

Measurement of the mass distributions in the decay $D^+\to K^0_S\pi^+\eta$ by BES. The data were read from the plots in the paper. It is also not clear that any resolution effects have been unfolded.

Source code: BESIII_2023_I2696635.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+ -> K0S pi+ eta
10  class BESIII_2023_I2696635 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2023_I2696635);
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 DP(ufs);
26      DP.addStable(PID::PI0);
27      DP.addStable(PID::K0S);
28      DP.addStable(PID::ETA);
29      declare(DP,"DP");
30      // histograms#
31      for (unsigned int ix=0; ix<3; ++ix) {
32        book(_h[ix],1,1,1+ix);
33      }
34    }
35
36
37    /// Perform the per-event analysis
38    void analyze(const Event& event) {
39      DecayedParticles DP = apply<DecayedParticles>(event, "DP");
40      // loop over particles
41      for (unsigned int ix=0; ix<DP.decaying().size(); ++ix) {
42        int sign = 1;
43        if (DP.decaying()[ix].pid()>0 && DP.modeMatches(ix,3,mode)) {
44          sign=1;
45        }
46        else if  (DP.decaying()[ix].pid()<0 && DP.modeMatches(ix,3,modeCC)) {
47          sign=-1;
48        }
49        else {
50          continue;
51        }
52        const Particle& pip = DP.decayProducts()[ix].at( sign*211)[0];
53        const Particle& KS0 = DP.decayProducts()[ix].at(      310)[0];
54        const Particle& eta = DP.decayProducts()[ix].at(      221)[0];
55        _h[0]->fill((pip.mom()+KS0.mom()).mass()/GeV);
56        _h[1]->fill((eta.mom()+KS0.mom()).mass()/GeV);
57        _h[2]->fill((pip.mom()+eta.mom()).mass()/GeV);
58      }
59    }
60
61
62    /// Normalise histograms etc., after the run
63    void finalize() {
64      normalize(_h, 1.0, false);
65    }
66
67    /// @}
68
69
70    /// @name Histograms
71    /// @{
72    Histo1DPtr _h[3];
73    const map<PdgId,unsigned int> mode   = { { 211,1}, { 310,1}, { 221,1}};
74    const map<PdgId,unsigned int> modeCC = { {-211,1}, { 310,1}, { 221,1}};
75    /// @}
76
77
78  };
79
80
81  RIVET_DECLARE_PLUGIN(BESIII_2023_I2696635);
82
83}