Rivet analyses referenceBESIII_2022_I2088337Mass distributions in D0→K0Sπ+π0π0 decaysExperiment: BESIII (BEPC) Inspire ID: 2088337 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY
Measurement of the mass distributions in D0→K0Sπ+π0π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_2022_I2088337.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 D0 -> KS0 pi+ pi0 pi0
10 class BESIII_2022_I2088337 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2022_I2088337);
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 static const map<PdgId,unsigned int> & mode = { {310,1}, { 211,1}, { 111,2} };
39 static const map<PdgId,unsigned int> & modeCC = { {310,1}, {-211,1}, { 111,2} };
40 DecayedParticles DD = apply<DecayedParticles>(event, "DD");
41 // loop over particles
42 for(unsigned int ix=0;ix<DD.decaying().size();++ix) {
43 int sign = DD.decaying()[ix].pid()/DD.decaying()[ix].abspid();
44 if ( !DD.modeMatches(ix,4,mode) && !DD.modeMatches(ix,4,modeCC)) continue;
45 const Particles & KS0 = DD.decayProducts()[ix].at( 310);
46 const Particles & pip = DD.decayProducts()[ix].at( sign*211);
47 const Particles & pi0 = DD.decayProducts()[ix].at( 111);
48 _h[0]->fill((pi0[0].momentum()+pi0[1].momentum()).mass());
49 _h[3]->fill((KS0[0].momentum()+pip[0].momentum()).mass());
50 _h[5]->fill((KS0[0].momentum()+pi0[0].momentum()+pi0[1].momentum()).mass());
51 _h[6]->fill((pip[0].momentum()+pi0[0].momentum()+pi0[1].momentum()).mass());
52 for(unsigned int ix=0;ix<2;++ix) {
53 _h[1]->fill((KS0[0].momentum()+pi0[ix].momentum()).mass());
54 _h[2]->fill((pip[0].momentum()+pi0[ix].momentum()).mass());
55 _h[4]->fill((KS0[0].momentum()+pip[0].momentum()+pi0[ix].momentum()).mass());
56 }
57 }
58 }
59
60
61 /// Normalise histograms etc., after the run
62 void finalize() {
63 for(unsigned int ix=0;ix<7;++ix) {
64 normalize(_h[ix]);
65 }
66 }
67
68 /// @}
69
70
71 /// @name Histograms
72 /// @{
73 Histo1DPtr _h[7];
74 /// @}
75
76
77 };
78
79
80 RIVET_DECLARE_PLUGIN(BESIII_2022_I2088337);
81
82}
|