Rivet analyses referenceBELLE_2018_I1642436Mass distributions in $B^-\to\Lambda^+_c\bar{\Lambda}^-_cK^-$Experiment: BELLE (KEKB) Inspire ID: 1642436 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Mass distributions in $B^-\to\Lambda^+_c\bar{\Lambda}^-_cK^-$. Data read from plots and sidebands given subtracted. Source code: BELLE_2018_I1642436.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- -> Lambda_c+ Lambdabar_c- K-
10 class BELLE_2018_I1642436 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2018_I1642436);
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==521);
23 declare(ufs, "UFS");
24 DecayedParticles BP(ufs);
25 BP.addStable( 4122);
26 BP.addStable(-4122);
27 declare(BP, "BP");
28 // histos
29 for(unsigned int ix=0;ix<2;++ix)
30 book(_h[ix],1+ix,1,1);
31 }
32
33
34 /// Perform the per-event analysis
35 void analyze(const Event& event) {
36 static const map<PdgId,unsigned int> & mode = { { 4122,1},{-4122,1}, {-321,1}};
37 static const map<PdgId,unsigned int> & modeCC = { { 4122,1},{-4122,1}, { 321,1}};
38 DecayedParticles BP = apply<DecayedParticles>(event, "BP");
39 // loop over particles
40 for(unsigned int ix=0;ix<BP.decaying().size();++ix) {
41 int sign = 1;
42 if (BP.decaying()[ix].pid()<0 && BP.modeMatches(ix,3,mode)) {
43 sign=1;
44 }
45 else if (BP.decaying()[ix].pid()>0 && BP.modeMatches(ix,3,modeCC)) {
46 sign=-1;
47 }
48 else
49 continue;
50 const Particle & LamC = BP.decayProducts()[ix].at( sign*4122)[0];
51 const Particle & LamCBar = BP.decayProducts()[ix].at(-sign*4122)[0];
52 const Particle & Km = BP.decayProducts()[ix].at(-sign*321 )[0];
53 _h[0]->fill((LamC.momentum()+Km .momentum()).mass());
54 _h[1]->fill((LamC.momentum()+LamCBar.momentum()).mass());
55 }
56 }
57
58
59 /// Normalise histograms etc., after the run
60 void finalize() {
61 for(unsigned int ix=0;ix<2;++ix)
62 normalize(_h[ix],1.,false);
63 }
64
65 /// @}
66
67
68 /// @name Histograms
69 /// @{
70 Histo1DPtr _h[2];
71 /// @}
72
73
74 };
75
76
77 RIVET_DECLARE_PLUGIN(BELLE_2018_I1642436);
78
79}
|