Rivet analyses referenceBELLE_2014_I1282136Mass distributions in the decay $\tau^-\to\pi^-K^0_SK^0_S\pi^0$Experiment: BELLE (KEKB) Inspire ID: 1282136 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurements of mass distributions in $\tau^-\to\pi^-K^0_SK^0_S\pi^0$ decays. The data were read from the plots in the paper and are not corrected, although the backgrounds given in the paper have been subtracted. The plots should therefore only be used for qualitative comparisons however the data is useful as there are not corrected distributions for this decay mode. Source code: BELLE_2014_I1282136.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 tau -> pi- KS0 KS0 pi0 nu
10 class BELLE_2014_I1282136 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BELLE_2014_I1282136);
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==15);
24 declare(ufs, "UFS");
25 DecayedParticles TAU(ufs);
26 TAU.addStable(310);
27 TAU.addStable(111);
28 declare(TAU, "TAU");
29 // histograms
30 for(unsigned int ix=0;ix<7;++ix) {
31 if(ix<2) book(_h[ix],1,1,1+ix);
32 else book(_h[ix],2,1,ix-1);
33 }
34 }
35
36
37 /// Perform the per-event analysis
38 void analyze(const Event& event) {
39 static const map<PdgId,unsigned int> & mode = { { 310,2},{ 111,1}, {-211,1},{ 16,1}};
40 static const map<PdgId,unsigned int> & modeCC = { { 310,2},{ 111,1}, { 211,1},{-16,1}};
41 DecayedParticles TAU = apply<DecayedParticles>(event, "TAU");
42 // loop over particles
43 for(unsigned int ix=0;ix<TAU.decaying().size();++ix) {
44 int sign = 1;
45 if(TAU.decaying()[ix].pid()>0 &&
46 TAU.modeMatches(ix,5,mode)) sign=1;
47 else if (TAU.decaying()[ix].pid()<0 &&
48 TAU.modeMatches(ix,5,modeCC)) sign=-1;
49 else
50 continue;
51 const Particle & pi0 = TAU.decayProducts()[ix].at(111)[0];
52 const Particle & pim = TAU.decayProducts()[ix].at(-211*sign)[0];
53 const Particles & K0 = TAU.decayProducts()[ix].at( 310);
54 _h[0]->fill((pi0.momentum()+K0[0].momentum()+K0[1].momentum()).mass());
55 _h[2]->fill((pim.momentum()+pi0.momentum()).mass());
56 _h[4]->fill((K0[0].momentum()+K0[1].momentum()).mass());
57 _h[5]->fill((pim.momentum()+K0[0].momentum()+K0[1].momentum()).mass());
58 for(unsigned int ix=0;ix<2;++ix) {
59 _h[1]->fill((pim.momentum()+K0[ix].momentum()).mass());
60 _h[3]->fill((pi0.momentum()+K0[ix].momentum()).mass());
61 _h[6]->fill((pi0.momentum()+pim.momentum()+K0[ix].momentum()).mass());
62 }
63 }
64 }
65
66
67 /// Normalise histograms etc., after the run
68 void finalize() {
69 for(unsigned int ix=0;ix<7;++ix) {
70 normalize(_h[ix],1.,false);
71 }
72 }
73
74 /// @}
75
76
77 /// @name Histograms
78 /// @{
79 Histo1DPtr _h[7];
80 /// @}
81
82
83 };
84
85
86 RIVET_DECLARE_PLUGIN(BELLE_2014_I1282136);
87
88}
|