rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BABAR_2011_I924163

Mass distributions in $\bar{B}^0\to\Lambda^+_c\bar{\Lambda}^0K^-$
Experiment: BABAR (PEP-II)
Inspire ID: 924163
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 84 (2011) 071102
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing B0, originally e+e- at Upsilon(4S)

Mass distributions in $\bar{B}^0\to\Lambda^+_c\bar{\Lambda}^0K^-$, data read from plots in papers but is background subtracted.

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