rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESIII_2021_I1849747

Mass distributions in the decay $D^+_s\to K^+K^-\pi^+\pi^0$
Experiment: BESIII (BEPC)
Inspire ID: 1849747
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 104 (2021) 3, 032011
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing D_s+ mesons

Measurement of the mass distributions in the decay $D^+_s\to K^+K^-\pi^+\pi^0$ by BES. 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_2021_I1849747.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 Ds -> K+K-pi+pi0
10  class BESIII_2021_I1849747 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2021_I1849747);
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==431);
24      declare(ufs, "UFS");
25      DecayedParticles DS(ufs);
26      DS.addStable(PID::PI0);
27      DS.addStable(PID::K0S);
28      declare(DS,"DS");
29      // histos
30      for(unsigned int ix=0;ix<10;++ix)
31	book(_h[ix],1,1,1+ix);
32    }
33
34    /// Perform the per-event analysis
35    void analyze(const Event& event) {
36      static const map<PdgId,unsigned int> & mode   = { { 321,1}, {-321,1}, { 211,1}, {111,1}};
37      static const map<PdgId,unsigned int> & modeCC = { { 321,1}, {-321,1}, {-211,1}, {111,1}};
38      DecayedParticles DS = apply<DecayedParticles>(event, "DS");
39      // loop over particles
40      for(unsigned int ix=0;ix<DS.decaying().size();++ix) {
41	int sign = 1;
42	if (DS.decaying()[ix].pid()>0 && DS.modeMatches(ix,4,mode)) {
43	  sign=1;
44	}
45	else if  (DS.decaying()[ix].pid()<0 && DS.modeMatches(ix,4,modeCC)) {
46	  sign=-1;
47	}
48	else
49	  continue;
50	const Particle & Kp  = DS.decayProducts()[ix].at( sign*321)[0];
51	const Particle & Km  = DS.decayProducts()[ix].at(-sign*321)[0];
52	const Particle & pip = DS.decayProducts()[ix].at( sign*211)[0];
53	const Particle & pi0 = DS.decayProducts()[ix].at(      111)[0];
54	double mKK = (Kp.momentum()+Km.momentum()).mass();
55	_h[0]->fill(mKK);
56	_h[1]->fill(mKK);
57	_h[2]->fill((Kp .momentum()+pi0.momentum()).mass());
58	_h[3]->fill((Km .momentum()+pi0.momentum()).mass());
59	_h[4]->fill((pip.momentum()+pi0.momentum()).mass());
60	_h[5]->fill((Km .momentum()+pip.momentum()).mass());
61	_h[6]->fill((Km .momentum()+pip.momentum()+pi0.momentum()).mass());
62	_h[7]->fill((Km .momentum()+ Kp.momentum()+pip.momentum()).mass());
63	_h[8]->fill((Kp .momentum()+pip.momentum()+pi0.momentum()).mass());
64	_h[9]->fill((Km .momentum()+ Kp.momentum()+pi0.momentum()).mass());
65      }
66    }
67
68
69    /// Normalise histograms etc., after the run
70    void finalize() {
71      for(unsigned int ix=0;ix<10;++ix)
72	normalize(_h[ix],1.,false);
73    }
74
75    /// @}
76
77
78    /// @name Histograms
79    /// @{
80    Histo1DPtr _h[10];
81    /// @}
82
83
84  };
85
86
87  RIVET_DECLARE_PLUGIN(BESIII_2021_I1849747);
88
89}