rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEO_2009_I822856

Pion mass distribution in $D^+_s\to \omega\pi^+\pi^0$
Experiment: CLEO (CESR)
Inspire ID: 822856
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 80 (2009) 051102
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing D_s+

Measurement of the pion mass distribution in $D^+_s\to \omega\pi^+\pi^0$. The data were read from the plots in the paper. Resolution/acceptance effects have been not unfolded. Given the agreement with the model in the paper this analysis should only be used for qualitative studies.

Source code: CLEO_2009_I822856.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 D_s+ -> omega pi+ pi0
10  class CLEO_2009_I822856 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_2009_I822856);
15
16
17    /// @name Analysis methods
18    /// @{
19
20    /// Book histograms and initialise projections before the run
21    void init() {
22      // projections
23      UnstableParticles ufs = UnstableParticles(Cuts::abspid==431);
24      declare(ufs, "UFS");
25      DecayedParticles DS(ufs);
26      DS.addStable(PID::PI0);
27      DS.addStable(PID::K0S);
28      DS.addStable(PID::ETA);
29      DS.addStable(PID::OMEGA);
30      DS.addStable(PID::ETAPRIME);
31      declare(DS, "DS");
32      // histograms
33      book(_h_pipi,1,1,1);
34    }
35
36
37    /// Perform the per-event analysis
38    void analyze(const Event& event) {
39      static const map<PdgId,unsigned int> & mode   = { { 211,1},{ 111,1}, { 223,1}};
40      static const map<PdgId,unsigned int> & modeCC = { {-211,1},{ 111,1}, { 223,1}};
41      DecayedParticles DS = apply<DecayedParticles>(event, "DS");
42      // loop over particles
43      for(unsigned int ix=0;ix<DS.decaying().size();++ix) {
44	int sign = 1;
45	if (DS.decaying()[ix].pid()>0 && DS.modeMatches(ix,3,mode)) {
46	  sign=1;
47	}
48	else if  (DS.decaying()[ix].pid()<0 && DS.modeMatches(ix,3,modeCC)) {
49	  sign=-1;
50	}
51	else
52	  continue;
53	const Particles & pi0 = DS.decayProducts()[ix].at(      111);
54	const Particles & pip = DS.decayProducts()[ix].at( sign*211);
55	_h_pipi->fill((pi0[0].momentum()+pip[0].momentum()).mass());
56      }
57    }
58
59
60    /// Normalise histograms etc., after the run
61    void finalize() {
62      normalize(_h_pipi,1.,false);
63    }
64
65    /// @}
66
67
68    /// @name Histograms
69    /// @{
70    Histo1DPtr _h_pipi;
71    /// @}
72
73
74  };
75
76
77  RIVET_DECLARE_PLUGIN(CLEO_2009_I822856);
78
79}