rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

FOCUS_2003_I626320

Mass distributions in the $D^0\to K^-K^-K^+\pi^+$
Experiment: FOCUS (Fermilab)
Inspire ID: 626320
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Lett.B 575 (2003) 190-197
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing D_s+ mesons

Measurement of the mass distributions in the decay $D^0\to K^-K^-K^+\pi^+$ by FOCUS. 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: FOCUS_2003_I626320.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 -> K-K+K-pi+
10  class FOCUS_2003_I626320 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(FOCUS_2003_I626320);
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<2;++ix)
32	book(_h[ix],1,1,1+ix);
33    }
34
35    /// Perform the per-event analysis
36    void analyze(const Event& event) {
37      // define the decay mode
38      static const map<PdgId,unsigned int> & mode   = { { 321,1}, {-321,2},{ 211,1}};
39      static const map<PdgId,unsigned int> & modeCC = { {-321,1}, { 321,2},{-211,1}};
40      DecayedParticles D0 = apply<DecayedParticles>(event, "D0");
41      // loop over particles
42      for(unsigned int ix=0;ix<D0.decaying().size();++ix) {
43	int sign = 1;
44	if (D0.decaying()[ix].pid()>0 && D0.modeMatches(ix,4,mode)) {
45	  sign=1;
46	}
47	else if  (D0.decaying()[ix].pid()<0 && D0.modeMatches(ix,4,modeCC)) {
48	  sign=-1;
49	}
50	else
51	  continue;
52	const Particles & Kp = D0.decayProducts()[ix].at( sign*321);
53	const Particles & Km = D0.decayProducts()[ix].at(-sign*321);
54	const Particles & pip= D0.decayProducts()[ix].at( sign*211);
55	_h[0]->fill((Kp [0].momentum()+Km [0].momentum()).mass());
56	_h[0]->fill((Kp [0].momentum()+Km [1].momentum()).mass());
57	_h[1]->fill((Km [0].momentum()+pip[0].momentum()).mass());
58	_h[1]->fill((Km [1].momentum()+pip[0].momentum()).mass());
59      }
60    }
61
62
63    /// Normalise histograms etc., after the run
64    void finalize() {
65      for(unsigned int ix=0;ix<2;++ix)
66	normalize(_h[ix],1.,false);
67    }
68
69    /// @}
70
71
72    /// @name Histograms
73    /// @{
74    Histo1DPtr _h[2];
75    /// @}
76
77
78  };
79
80
81  RIVET_DECLARE_PLUGIN(FOCUS_2003_I626320);
82
83}