rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BABAR_2010_I878120

Dalitz plot analysis of $D^+_s\to K^+K^-\pi^+$
Experiment: BABAR (PEP-II)
Inspire ID: 878120
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 83 (2011) 052001
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing D_s+->K+K-pi+, original e+e->Upsilon(4S)

Measurement of the mass distributions in the decay $D^+_s\to K^+K^-\pi^+$ by BaBar. 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: BABAR_2010_I878120.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/DecayedParticles.hh"
 4#include "Rivet/Projections/UnstableParticles.hh"
 5
 6namespace Rivet {
 7
 8
 9  /// @brief D_s -> K+K-pi+
10  class BABAR_2010_I878120 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2010_I878120);
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      declare(DS, "DS");
28      // histos
29      book(_h_KK[0],1,1,1);
30      book(_h_KK[1],1,1,2);
31      book(_h_Kmpi ,1,1,3);
32      book(_h_Kppi ,1,1,4);
33      book(_dalitz, "dalitz",50,0.3,3.5,50,0.07,2.5);
34    }
35
36    /// Perform the per-event analysis
37    void analyze(const Event& event) {
38      static const map<PdgId,unsigned int> & mode   = { { 211,1}, { 321,1}, {-321,1} };
39      static const map<PdgId,unsigned int> & modeCC = { {-211,1}, { 321,1}, {-321,1} };
40      // Loop over D+ mesons
41      DecayedParticles DS = apply<DecayedParticles>(event, "DS");
42      for(unsigned int ix=0;ix<DS.decaying().size();++ix) {
43	int sign = 1;
44	if     ( DS.modeMatches(ix,3,mode  )) sign = 1;
45	else if( DS.modeMatches(ix,3,modeCC)) sign =-1;
46	else
47	  continue;
48	const Particle & pip = DS.decayProducts()[ix].at( sign*211)[0];
49	const Particle & Km  = DS.decayProducts()[ix].at(-sign*321)[0];
50	const Particle & Kp  = DS.decayProducts()[ix].at( sign*321)[0];
51	double mplus  = (Kp.momentum()+pip.momentum()).mass2();
52	double mminus = (Km.momentum()+pip.momentum()).mass2();
53	double mKK    = (Kp.momentum()+Km .momentum()).mass2();
54	_h_KK[0]->fill(mKK);
55	_h_KK[1]->fill(mKK);
56	_h_Kppi->fill(mplus);
57	_h_Kmpi->fill(mminus);
58	_dalitz->fill(mKK,mminus);
59      }
60    }
61
62
63    /// Normalise histograms etc., after the run
64    void finalize() {
65      normalize(_h_KK[0]);
66      normalize(_h_KK[1],1.,false);
67      normalize(_h_Kmpi);
68      normalize(_h_Kppi);
69      normalize(_dalitz);
70    }
71
72    /// @}
73
74
75    /// @name Histograms
76    /// @{
77    Histo1DPtr _h_KK[2],_h_Kmpi,_h_Kppi;
78    Histo2DPtr _dalitz;
79    /// @}
80
81
82  };
83
84
85  RIVET_DECLARE_PLUGIN(BABAR_2010_I878120);
86
87}