rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BELLE_2015_I1326905

Mass distributions in the decays $B^0\to D^-_sK^0_S\pi^+$ and $B^+\to D^-_sK^+K^+$
Experiment: BELLE (KEKB)
Inspire ID: 1326905
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 91 (2015) 3, 032008
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing B0 and B+, originally Upsilon(4S) decays

Mass distributions in the decays $B^0\to D^-_sK^0_S\pi^+$ and $B^+\to D^-_sK^+K^+$, the data were read from the plots in the paper and although the backgrounds have been subtracted they may be be correct for efficiency.

Source code: BELLE_2015_I1326905.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 B0 ->\to Ds- KS0 pi+ and B+ -> Ds- K+ K^+ 
10  class BELLE_2015_I1326905 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2015_I1326905);
15
16
17    /// @name Analysis methods
18    /// @{
19
20    /// Book histograms and initialise projections before the run
21    void init() {
22      UnstableParticles ufs = UnstableParticles(Cuts::abspid==511 or Cuts::abspid==521);
23      declare(ufs, "UFS");
24      DecayedParticles BB(ufs);
25      BB.addStable( 431);
26      BB.addStable(-431);
27      BB.addStable( 310);
28      declare(BB, "BB");
29      //histograms
30      for(unsigned int ix=0;ix<2;++ix) {
31	book(_h[ix],1,1,1+ix);
32      }
33    }
34
35
36    /// Perform the per-event analysis
37    void analyze(const Event& event) {
38      static const map<PdgId,unsigned int> & mode1   = { {-431,1},{ 310,1}, { 211,1}};
39      static const map<PdgId,unsigned int> & mode1CC = { { 431,1},{ 310,1}, {-211,1}};
40      static const map<PdgId,unsigned int> & mode2   = { {-431,1},{ 321,2}};
41      static const map<PdgId,unsigned int> & mode2CC = { { 431,1},{-321,2}};
42      DecayedParticles BB = apply<DecayedParticles>(event, "BB");
43      for(unsigned int ix=0;ix<BB.decaying().size();++ix) {
44      	int sign = 1, imode = 0;
45      	if (BB.decaying()[ix].pid()>0 && BB.modeMatches(ix,3,mode1)) {
46	  imode=0;
47      	  sign=1;
48      	}
49      	else if  (BB.decaying()[ix].pid()<0 && BB.modeMatches(ix,3,mode1CC)) {
50	  imode=0;
51      	  sign=-1;
52      	}
53	else if (BB.decaying()[ix].pid()>0 && BB.modeMatches(ix,3,mode2)) {
54	  imode=1;
55      	  sign=1;
56      	}
57      	else if  (BB.decaying()[ix].pid()<0 && BB.modeMatches(ix,3,mode2CC)) {
58	  imode=1;
59      	  sign=-1;
60      	}
61      	else
62      	  continue;
63	const Particle & Ds  = BB.decayProducts()[ix].at(-sign*431)[0];
64	FourMomentum pK;
65	if(imode==0) {
66	  pK = BB.decayProducts()[ix].at(310)[0].momentum();
67	}
68	else {
69	  const Particles & Kp = BB.decayProducts()[ix].at(sign*321);
70	  pK = Kp[0].momentum().p3().mod()>Kp[1].momentum().p3().mod() ?
71	    Kp[1].momentum() : Kp[0].momentum();
72	}
73	_h[imode]->fill((Ds.momentum()+pK).mass());
74      }
75    }
76
77
78    /// Normalise histograms etc., after the run
79    void finalize() {
80      for(unsigned int ix=0;ix<2;++ix) {
81	normalize(_h[ix], 1., false);
82      }
83    }
84
85    /// @}
86
87
88    /// @name Histograms
89    /// @{
90    Histo1DPtr _h[2];
91    /// @}
92
93
94  };
95
96
97  RIVET_DECLARE_PLUGIN(BELLE_2015_I1326905);
98
99}