Rivet analyses referenceBESIII_2021_I1870322Mass distributions in the decay $D^+_s\to\pi^+\pi^+\pi^-\eta$Experiment: BESIII (BEPC) Inspire ID: 1870322 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the mass distributions in the decay $D^+_s\to\pi^+\pi^+\pi^-\eta$ 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_I1870322.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+ -> pi+ pi+ pi- eta
10 class BESIII_2021_I1870322 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2021_I1870322);
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 DS.addStable(PID::ETA);
29 declare(DS,"DS");
30 // histograms
31 book(_h_pippip ,1,1,1);
32 book(_h_pippim ,1,1,2);
33 book(_h_pipeta ,1,1,3);
34 book(_h_pimeta ,1,1,4);
35 book(_h_3pi ,1,1,5);
36 book(_h_pippimeta,1,1,6);
37 }
38
39 /// Perform the per-event analysis
40 void analyze(const Event& event) {
41 static const map<PdgId,unsigned int> & mode = { { 211,2}, {-211,1}, {221,1}};
42 static const map<PdgId,unsigned int> & modeCC = { { 211,1}, {-211,2}, {221,1}};
43 DecayedParticles DS = apply<DecayedParticles>(event, "DS");
44 // loop over particles
45 for(unsigned int ix=0;ix<DS.decaying().size();++ix) {
46 int sign = 1;
47 if (DS.decaying()[ix].pid()>0 && DS.modeMatches(ix,4,mode)) {
48 sign=1;
49 }
50 else if (DS.decaying()[ix].pid()<0 && DS.modeMatches(ix,4,modeCC)) {
51 sign=-1;
52 }
53 else
54 continue;
55 const Particles & pip = DS.decayProducts()[ix].at( sign*211);
56 const Particle & pim = DS.decayProducts()[ix].at(-sign*211)[0];
57 const Particle & eta = DS.decayProducts()[ix].at( 221)[0];
58 double metapipi[2] = {(eta.momentum()+pim.momentum()+pip[0].momentum()).mass(),
59 (eta.momentum()+pim.momentum()+pip[1].momentum()).mass()};
60 if(metapipi[0]<GeV || metapipi[1]<GeV) continue;
61 _h_pippip->fill((pip[0].momentum()+pip[1].momentum()).mass());
62 _h_pippim->fill((pim.momentum()+pip[0].momentum()).mass());
63 _h_pippim->fill((pim.momentum()+pip[1].momentum()).mass());
64 _h_pipeta->fill((eta.momentum()+pip[0].momentum()).mass());
65 _h_pipeta->fill((eta.momentum()+pip[1].momentum()).mass());
66 _h_pimeta->fill((eta.momentum()+pim.momentum()).mass());
67 _h_3pi ->fill((pim.momentum()+pip[0].momentum()+pip[1].momentum()).mass());
68 _h_pippimeta->fill(metapipi[0]);
69 _h_pippimeta->fill(metapipi[1]);
70 }
71 }
72
73
74 /// Normalise histograms etc., after the run
75 void finalize() {
76 normalize(_h_pippip );
77 normalize(_h_pippim );
78 normalize(_h_pipeta );
79 normalize(_h_pimeta );
80 normalize(_h_3pi );
81 normalize(_h_pippimeta);
82 }
83
84 /// @}
85
86
87 /// @name Histograms
88 /// @{
89 Histo1DPtr _h_pippip,_h_pippim,_h_pipeta,_h_pimeta,_h_3pi,_h_pippimeta;
90 /// @}
91
92
93 };
94
95
96 RIVET_DECLARE_PLUGIN(BESIII_2021_I1870322);
97
98}
|