Rivet analyses referenceBESIII_2022_I2038523Hadronic mass in $D^+_s\to \pi^0\pi^0 e^+\nu_e$Experiment: BESIII (BEPC) Inspire ID: 2038523 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the hadronic mass in $D^+_s\to \pi^0\pi^0 e^+\nu_e$ by BES-III. N.B. the plots where read from the paper and may not have been corrected for acceptance. Source code: BESIII_2022_I2038523.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 D_s+ -> pi0 pi0 e+ nu_e
10 class BESIII_2022_I2038523 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2022_I2038523);
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::pid==431);
23 declare(ufs, "UFS");
24 DecayedParticles DD(ufs);
25 DD.addStable(PID::PI0);
26 DD.addStable(PID::K0S);
27 DD.addStable(PID::ETA);
28 DD.addStable(PID::ETAPRIME);
29 declare(DD, "DD");
30 book(_h,1,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 = { { 111,2}, {-11,1}, { 12,1}};
37 DecayedParticles DD = apply<DecayedParticles>(event, "DD");
38 // loop over particles
39 for(unsigned int ix=0;ix<DD.decaying().size();++ix) {
40 if(!DD.modeMatches(ix,4,mode)) continue;
41 const Particles & pi0= DD.decayProducts()[ix].at(111);
42 _h->fill((pi0[0].momentum()+pi0[1].momentum()).mass());
43 }
44 }
45
46
47 /// Normalise histograms etc., after the run
48 void finalize() {
49 normalize(_h);
50 }
51
52 /// @}
53
54
55 /// @name Histograms
56 /// @{
57 Histo1DPtr _h;
58 /// @}
59
60
61 };
62
63
64 RIVET_DECLARE_PLUGIN(BESIII_2022_I2038523);
65
66}
|