rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESIII_2018_I1674528

Positron momentum spectrum in semileptonic $\Lambda_c^+$ decay
Experiment: BESIII (BEPC)
Inspire ID: 1674528
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 121 (2018) 25, 251801
Beams: e+ e-
Beam energies: (2.0, 2.0); (3.0, 3.0) GeV
Run details:
  • e+e -> hadrons

Measurement of the positron momentum spectrum in the lab frame for semileptonic $\Lambda_c^+$ decay.

Source code: BESIII_2018_I1674528.cc
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief Semileptonic Lambda_c+
  class BESIII_2018_I1674528 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(BESIII_2018_I1674528);


    /// @name Analysis methods
    /// @{

    /// Book histograms and initialise projections before the run
    void init() {
      // projections
      declare(UnstableParticles(Cuts::abspid==4122),"UFS");
      // histos
      book(_h,1,1,1);
    }

    void findDecayProducts(Particle parent, Particles & em, Particles & ep,
			   Particles & nue, Particles & nueBar) {
      for(const Particle & p : parent.children()) {
	if(p.pid() == PID::EMINUS) {
	  em.push_back(p);
	}
	else if(p.pid() == PID::EPLUS) {
	  ep.push_back(p);
	}
	else if(p.pid() == PID::NU_E) {
	  nue.push_back(p);
	}
	else if(p.pid() == PID::NU_EBAR) {
	  nueBar.push_back(p);
	}
	else if(!PID::isHadron(p.pid())) {
	  findDecayProducts(p,em,ep,nue,nueBar);
	}
      }
    }

    /// Perform the per-event analysis
    void analyze(const Event& event) {
      for(const Particle & p : apply<UnstableParticles>(event, "UFS").particles()) {
	Particles em,ep,nue,nueBar;
	findDecayProducts(p,em,ep,nue,nueBar);
	if(em.size()==1 && nueBar.size()==1) {
	  double pmod = em[0].momentum().p3().mod();
	  _h->fill(pmod);
	}
	else if(ep.size()==1 && nue.size()==1) {
	  double pmod = ep[0].momentum().p3().mod();
	  _h->fill(pmod);
	}
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      normalize(_h,1.,false);
    }

    /// @}


    /// @name Histograms
    /// @{
    Histo1DPtr _h;
    /// @}


  };


  RIVET_DECLARE_PLUGIN(BESIII_2018_I1674528);

}