Rivet analyses referenceBABAR_2006_I723331$D^{*\pm}K^0_S$ mass in $B^0\to D^{*+}D^{*-}K^0_S$ decaysExperiment: BABAR (PEP-II) Inspire ID: 723331 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the $D^{*\pm}K^0_S$ mass in $B^0\to D^{*+}D^{*-}K^0_S$ decays. The efficiency corrected data were read from figure 1b in the paper. Source code: BABAR_2006_I723331.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 -> D*+ D*- KS0
10 class BABAR_2006_I723331 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2006_I723331);
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);
23 declare(ufs, "UFS");
24 DecayedParticles BB(ufs);
25 BB.addStable(PID::PI0);
26 BB.addStable( 413);
27 BB.addStable(-413);
28 BB.addStable( PID::K0S);
29 declare(BB, "BB");
30 // histograms
31 book(_h,1,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 = { { 413,1}, { -413,1}, { 310,1}};
38 // loop over particles
39 DecayedParticles BB = apply<DecayedParticles>(event, "BB");
40 for(unsigned int ix=0;ix<BB.decaying().size();++ix) {
41 if ( !BB.modeMatches(ix,3,mode) ) continue;
42 const Particle & K0 = BB.decayProducts()[ix].at( 310)[0];
43 const Particle & DsM = BB.decayProducts()[ix].at( 413)[0];
44 const Particle & DsP = BB.decayProducts()[ix].at(-413)[0];
45 _h->fill((K0.momentum()+DsM.momentum()).mass());
46 _h->fill((K0.momentum()+DsP.momentum()).mass());
47 }
48 }
49
50
51 /// Normalise histograms etc., after the run
52 void finalize() {
53 normalize(_h,1.,false);
54 }
55
56 /// @}
57
58
59 /// @name Histograms
60 /// @{
61 Histo1DPtr _h;
62 /// @}
63
64
65 };
66
67
68 RIVET_DECLARE_PLUGIN(BABAR_2006_I723331);
69
70}
|