Rivet analyses referenceCLEO_2001_I535016Hadronic Mass distribution in $\tau^-\to2\pi^-\pi^+3\pi^0\nu_\tau$ and $3\pi^-2\pi^+\pi^0\nu_\tau$Experiment: CLEO (CESR) Inspire ID: 535016 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the hadronic mass distribution in n $\tau^-\to2\pi^-\pi^+3\pi^0\nu_\tau$ and $3\pi^-2\pi^+\pi^0\nu_\tau$. 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: CLEO_2001_I535016.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 -> 6 pion final states
10 class CLEO_2001_I535016 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_2001_I535016);
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 // histogram
30 for (unsigned int ix=0; ix<2; ++ix) {
31 book(_h[ix],1,1,1+ix);
32 }
33 }
34
35
36 /// Perform the per-event analysis
37 void analyze(const Event& event) {
38 DecayedParticles TAU = apply<DecayedParticles>(event, "TAU");
39 // loop over particles
40 for (unsigned int ix=0; ix<TAU.decaying().size(); ++ix) {
41 int sign = TAU.decaying()[ix].pid()>0 ? 1 : -1;
42 int imode=-1;
43 if (TAU.modeMatches(ix,7,mode1 ) ||
44 TAU.modeMatches(ix,7,mode1CC)) imode = 0;
45 else if (TAU.modeMatches(ix,7,mode2) ||
46 TAU.modeMatches(ix,7,mode2CC)) imode = 1;
47 else continue;
48 const Particles& pip = TAU.decayProducts()[ix].at( 211*sign);
49 const Particles& pim = TAU.decayProducts()[ix].at(-211*sign);
50 const Particles& pi0 = TAU.decayProducts()[ix].at( 111);
51 FourMomentum ptotal;
52 for (unsigned int ix=0;ix<pim.size();++ix) ptotal +=pim[ix].momentum();
53 for (unsigned int ix=0;ix<pip.size();++ix) ptotal +=pip[ix].momentum();
54 for (unsigned int ix=0;ix<pi0.size();++ix) ptotal +=pi0[ix].momentum();
55 _h[imode]->fill(ptotal.mass());
56 }
57 }
58
59
60 /// Normalise histograms etc., after the run
61 void finalize() {
62 normalize(_h, 1.0,false);
63 }
64
65 /// @}
66
67
68 /// @name Histograms
69 /// @{
70 Histo1DPtr _h[2];
71 const map<PdgId,unsigned int> mode1 = { {-211,2}, { 211,1},{111,3},{ 16,1}};
72 const map<PdgId,unsigned int> mode1CC = { { 211,2}, {-211,1},{111,3},{-16,1}};
73 const map<PdgId,unsigned int> mode2 = { {-211,3}, { 211,2},{111,1},{ 16,1}};
74 const map<PdgId,unsigned int> mode2CC = { { 211,3}, {-211,2},{111,1},{-16,1}};
75 /// @}
76
77
78 };
79
80
81 RIVET_DECLARE_PLUGIN(CLEO_2001_I535016);
82
83}
|