Rivet analyses referenceBELLE_2013_I1230342$\bar{B}^0_s\to\Lambda_c^+\bar\Lambda^0\pi^-$ Differential branching ratiosExperiment: BELLE (KEKB) Inspire ID: 1230342 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Differential branching ratios for $\bar{B}^0_s\to\Lambda_c^+\bar\Lambda^0\pi^-$ with respect to the invariant masses of pairs of the decay products. Source code: BELLE_2013_I1230342.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 BbarS0 -> Lambda_c+ Lambdabar0 pi-
10 class BELLE_2013_I1230342 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2013_I1230342);
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==531);
24 declare(ufs, "UFS");
25 DecayedParticles BS0(ufs);
26 BS0.addStable( 3122);
27 BS0.addStable(-3122);
28 BS0.addStable( 4122);
29 BS0.addStable(-4122);
30 declare(BS0, "BS0");
31 // histos
32 book(_c,"TMP/nB");
33 for(unsigned int ix=0;ix<3;++ix)
34 book(_h[ix],1,1,1+ix);
35 }
36
37
38 /// Perform the per-event analysis
39 void analyze(const Event& event) {
40 static const map<PdgId,unsigned int> & mode = { { 4122,1},{-3122,1}, {-211,1}};
41 static const map<PdgId,unsigned int> & modeCC = { {-4122,1},{ 3122,1}, { 211,1}};
42 DecayedParticles BS0 = apply<DecayedParticles>(event, "BS0");
43 // loop over particles
44 for(unsigned int ix=0;ix<BS0.decaying().size();++ix) {
45 _c->fill();
46 int sign = 1;
47 if (BS0.decaying()[ix].pid()<0 && BS0.modeMatches(ix,3,mode)) {
48 sign=1;
49 }
50 else if (BS0.decaying()[ix].pid()>0 && BS0.modeMatches(ix,3,modeCC)) {
51 sign=-1;
52 }
53 else
54 continue;
55 const Particle & LamC = BS0.decayProducts()[ix].at( sign*4122)[0];
56 const Particle & LamBar = BS0.decayProducts()[ix].at(-sign*3122)[0];
57 const Particle & pim = BS0.decayProducts()[ix].at(-sign*211 )[0];
58 _h[0]->fill((LamC.momentum()+LamBar.momentum()).mass());
59 _h[1]->fill((LamC.momentum()+pim .momentum()).mass());
60 _h[2]->fill((pim .momentum()+LamBar.momentum()).mass());
61 }
62 }
63
64
65 /// Normalise histograms etc., after the run
66 void finalize() {
67 for(unsigned int ix=0;ix<3;++ix)
68 scale(_h[ix],1e4/ *_c);
69 }
70
71 /// @}
72
73
74 /// @name Histograms
75 /// @{
76 Histo1DPtr _h[3];
77 CounterPtr _c;
78 /// @}
79
80
81 };
82
83
84 RIVET_DECLARE_PLUGIN(BELLE_2013_I1230342);
85
86}
|