rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BABAR_2012_I1127599

Mass distributions in $B^-\to\Sigma_c^{++}\bar{p}\pi^-\pi^-$
Experiment: BABAR (PEP-II)
Inspire ID: 1127599
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 86 (2012) 091102
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing B+-, originally e+e- at Upsilon(4S)

Measurements of mass distributions in $B^-\to\Sigma_c^{++}\bar{p}\pi^-\pi^-$. The data were read from the plots in the paper but are background subtracted and efficiency corrected.

Source code: BABAR_2012_I1127599.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 B- -> Sigma_c++ pbar pi- pi-
10  class BABAR_2012_I1127599 : public Analysis {
11  public:
12
13    /// Constructor
14    RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2012_I1127599);
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==521);
24      declare(ufs, "UFS");
25      DecayedParticles BP(ufs);
26      BP.addStable( 4222);
27      BP.addStable(-4222);
28      declare(BP, "BP");
29      // histos
30      for(unsigned int ix=0;ix<3;++ix)
31	book(_h[ix],1+ix,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   = { { 4222,1},{-2212,1}, {-211,2}};
38      static const map<PdgId,unsigned int> & modeCC = { {-4222,1},{ 2212,1}, { 211,2}};
39      DecayedParticles BP = apply<DecayedParticles>(event, "BP");
40      // loop over particles
41      for(unsigned int ix=0;ix<BP.decaying().size();++ix) {
42      	int sign = 1;
43      	if (BP.decaying()[ix].pid()<0 && BP.modeMatches(ix,4,mode)) {
44      	  sign=1;
45      	}
46      	else if  (BP.decaying()[ix].pid()>0 && BP.modeMatches(ix,4,modeCC)) {
47      	  sign=-1;
48      	}
49      	else
50      	  continue;
51	const Particle  & SigC = BP.decayProducts()[ix].at( sign*4222)[0];
52	const Particle  & pbar = BP.decayProducts()[ix].at(-sign*2212)[0];
53	const Particles & pim  = BP.decayProducts()[ix].at(-sign*211 );
54	for(unsigned int ix=0;ix<2;++ix) {
55	  _h[0]->fill((pbar.momentum()+pim[ix].momentum()).mass());
56	  _h[1]->fill((SigC.momentum()+pim[ix].momentum()).mass());
57	}
58	_h[2]->fill((SigC.momentum()+pim[0].momentum()+pim[1].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_2012_I1127599);
82
83}