Rivet analyses referenceBESIII_2022_I2070086Dalitz decay of D+s→K0SK+π0Experiment: BESIII () Inspire ID: 2070086 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the mass distributions in the decay D+s→K0SK+π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_2022_I2070086.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_s+ -> KS0 K+ pi0
10 class BESIII_2022_I2070086 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2022_I2070086);
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 // Initialise and register projections
24 UnstableParticles ufs = UnstableParticles(Cuts::abspid==431);
25 declare(ufs, "UFS");
26 DecayedParticles DS(ufs);
27 DS.addStable(PID::PI0);
28 DS.addStable(PID::K0S);
29 declare(DS, "DS");
30 // histograms
31 book(_h_KK ,1,1,1);
32 book(_h_K0pi,1,1,2);
33 book(_h_Kppi,1,1,3);
34 book(_dalitz,"dalitz",50,0.3,2.3,50,0.3,2.3);
35 }
36
37 /// Perform the per-event analysis
38 void analyze(const Event& event) {
39 static const map<PdgId,unsigned int> & mode = { { 321,1},{ 111,1}, {310,1}};
40 static const map<PdgId,unsigned int> & modeCC = { {-321,1},{ 111,1}, {310,1}};
41 DecayedParticles DS = apply<DecayedParticles>(event, "DS");
42 // loop over particles
43 for(unsigned int ix=0;ix<DS.decaying().size();++ix) {
44 int sign = 1;
45 if (DS.decaying()[ix].pid()>0 && DS.modeMatches(ix,3,mode)) {
46 sign=1;
47 }
48 else if (DS.decaying()[ix].pid()<0 && DS.modeMatches(ix,3,modeCC)) {
49 sign=-1;
50 }
51 else
52 continue;
53 const Particle & K0 = DS.decayProducts()[ix].at( 310)[0];
54 const Particle & pi0 = DS.decayProducts()[ix].at( 111)[0];
55 const Particle & Kp = DS.decayProducts()[ix].at( sign*321)[0];
56 double m0 = (K0.momentum()+pi0.momentum()).mass2();
57 double mp = (Kp.momentum()+pi0.momentum()).mass2();
58 double mKK = (K0.momentum()+Kp.momentum()).mass2();
59 _dalitz->fill(mp,m0);
60 _h_KK->fill(sqrt(mKK));
61 _h_Kppi->fill(sqrt(mp));
62 _h_K0pi->fill(sqrt(m0));
63 }
64 }
65
66
67 /// Normalise histograms etc., after the run
68 void finalize() {
69 normalize(_h_K0pi);
70 normalize(_h_Kppi);
71 normalize(_h_KK );
72 normalize(_dalitz);
73 }
74
75 /// @}
76
77
78 /// @name Histograms
79 /// @{
80 Histo1DPtr _h_K0pi,_h_Kppi,_h_KK;
81 Histo2DPtr _dalitz;
82 /// @}
83
84
85 };
86
87
88 RIVET_DECLARE_PLUGIN(BESIII_2022_I2070086);
89
90}
|