Rivet analyses referenceARGUS_1993_I352983Dalitz plot analysis of $D^0\to K^0_S\pi^+\pi^-$Experiment: ARGUS (DORIS) Inspire ID: 352983 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Kinematic distributions in the decay $D^0\to K^0_S\pi^+\pi^-$. Data were read from figure 3 in the paper and the backgrounds given subtracted. Source code: ARGUS_1993_I352983.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+ pi-
10 class ARGUS_1993_I352983 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(ARGUS_1993_I352983);
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==421);
24 declare(ufs, "UFS");
25 DecayedParticles D0(ufs);
26 D0.addStable(PID::PI0);
27 D0.addStable(PID::K0S);
28 D0.addStable(PID::ETA);
29 D0.addStable(PID::ETAPRIME);
30 declare(D0, "D0");
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 // define the decay mode
40 DecayedParticles D0 = apply<DecayedParticles>(event, "D0");
41 // loop over particles
42 for (unsigned int ix=0; ix<D0.decaying().size(); ++ix) {
43 if (!D0.modeMatches(ix,3,mode) ) continue;
44 int sign = D0.decaying()[ix].pid()/421;
45 const Particles & pip= D0.decayProducts()[ix].at( sign*211);
46 const Particles & pim= D0.decayProducts()[ix].at(-sign*211);
47 const Particles & K0 = D0.decayProducts()[ix].at( 310);
48 double mminus = (pim[0].mom()+K0[0].mom() ).mass2();
49 double mplus = (pip[0].mom()+K0[0].mom() ).mass2();
50 double mpipi = (pip[0].mom()+pim[0].mom()).mass2();
51 _h[2]->fill(mplus);
52 _h[1]->fill(mminus);
53 _h[0]->fill(mpipi);
54 }
55 }
56
57
58 /// Normalise histograms etc., after the run
59 void finalize() {
60 normalize(_h, 1.0, false);
61 }
62
63 /// @}
64
65
66 /// @name Histograms
67 /// @{
68 Histo1DPtr _h[3];
69 const map<PdgId,unsigned int> mode = { { 310,1}, { 211,1},{-211,1}};
70 /// @}
71
72
73 };
74
75
76 RIVET_DECLARE_PLUGIN(ARGUS_1993_I352983);
77
78}
|