rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEOIII_2004_I627327

Mass distributions in $\Xi_c^-\to pK^-K^-\pi^+$
Experiment: CLEOIII (CESR)
Inspire ID: 627327
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 69 (2004) 052004
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing Xic0 mesons

Measurement of the mass distributions in the decay $\Xi_c^-\to pK^-K^-\pi^+$ by CLEOIII. The data were read from the plots in the paper.

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