Rivet Analyses Reference

DELPHI_1993_I356732

Charmed Meson spectra at LEPI
Experiment: DELPHI (LEP)
Inspire ID: 356732
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys.C 59 (1993) 533-546, 1993
Beams: e+ e-
Beam energies: (45.6, 45.6) GeV
Run details:
  • Hadronic $Z$ decays at 91.2 GeV.

Measurement of the spectra for $D^{*\pm$} $D^0$ and $D^\pm$ measured by DELPHI. Rather than the event rates in HEPData values read from Figs6-8 in the original paper are used with the branching ratios corrected using the PDG 2020 values.

Source code: DELPHI_1993_I356732.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
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief Charm hadrons at 91 GeV
  class DELPHI_1993_I356732 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(DELPHI_1993_I356732);


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

    /// Book histograms and initialise projections before the run
    void init() {
      declare(UnstableParticles(), "UFS");

      book(_h_Xe_Ds  , 1, 1, 1);
      book(_h_Xe_D0  , 3, 1, 1);
      book(_h_Xe_Dp  , 5, 1, 1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
      
      // Accept all D*+- decays. 
      for (const Particle& p : ufs.particles(Cuts::abspid==PID::DSTARPLUS ||
					     Cuts::abspid==PID::DPLUS ||
					     Cuts::abspid==PID::D0)) {
	// Scaled energy.
	const double energy = p.E()/GeV;
	const double scaledEnergy = 2.*energy/sqrtS();
	if(p.abspid()==PID::DSTARPLUS)
	   _h_Xe_Ds->fill(scaledEnergy);
	else if(p.abspid()==PID::DPLUS)
	   _h_Xe_Dp->fill(scaledEnergy);
	else
	   _h_Xe_D0->fill(scaledEnergy);
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_h_Xe_Ds  , 1./sumOfWeights());
      scale(_h_Xe_Dp  , 1./sumOfWeights());
      scale(_h_Xe_D0  , 1./sumOfWeights());
    }

    ///@}


    /// @name Histograms
    ///@{
    Histo1DPtr _h_Xe_Ds,_h_Xe_D0,_h_Xe_Dp;
    ///@}


  };


  RIVET_DECLARE_PLUGIN(DELPHI_1993_I356732);

}