rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BELLE_2005_I660759

Mass distributions in $\Xi^0_c\to pK^-K^-\pi^+$
Experiment: BELLE (KEKB)
Inspire ID: 660759
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Lett.B 605 (2005) 237-246
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing Xic0 mesons

Measurement of the mass distributions in the decay $\Xi^0_c\to pK^-K^-\pi^+$ by BELLE. The data were read from the plots in the paper, and for many points the error bars are the size of the point.

Source code: BELLE_2005_I660759.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 Xi_c0 -> p K- K- pi+
10  class BELLE_2005_I660759 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2005_I660759);
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==4132);
24      declare(ufs, "UFS");
25      DecayedParticles XIC0(ufs);
26      XIC0.addStable(PID::PI0);
27      XIC0.addStable(PID::K0S);
28      XIC0.addStable(PID::ETA);
29      XIC0.addStable(PID::ETAPRIME);
30      declare(XIC0, "XIC0");
31      // histograms
32      book(_h,1,1,1);
33    }
34
35
36    /// Perform the per-event analysis
37    void analyze(const Event& event) {
38      static const map<PdgId,unsigned int> & mode   = { { PID::KMINUS,2}, { PID::PROTON,1}, { PID::PIPLUS ,1}};
39      static const map<PdgId,unsigned int> & modeCC = { { PID::KPLUS ,2}, {-PID::PROTON,1}, { PID::PIMINUS,1}};
40      DecayedParticles XIC0 = apply<DecayedParticles>(event, "XIC0");
41      // loop over particles
42      for(unsigned int ix=0;ix<XIC0.decaying().size();++ix) {
43	int sign = 1;
44	if (XIC0.decaying()[ix].pid()>0 && XIC0.modeMatches(ix,4,mode)) {
45	  sign=1;
46	}
47	else if  (XIC0.decaying()[ix].pid()<0 && XIC0.modeMatches(ix,4,modeCC)) {
48	  sign=-1;
49	}
50	else
51	  continue;
52	const Particle & pip = XIC0.decayProducts()[ix].at( sign*PID::PIPLUS)[0];
53	const Particles & Km = XIC0.decayProducts()[ix].at( sign*PID::KMINUS);
54	for(unsigned int ix=0;ix<2;++ix)
55	  _h->fill((pip.momentum()+Km[ix].momentum()).mass());
56      }
57    }
58
59
60    /// Normalise histograms etc., after the run
61    void finalize() {
62      normalize(_h);
63    }
64
65    /// @}
66
67
68    /// @name Histograms
69    /// @{
70    Histo1DPtr _h;
71    /// @}
72
73
74  };
75
76
77  RIVET_DECLARE_PLUGIN(BELLE_2005_I660759);
78
79}