rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEO_1991_I29927

Inclusive $B^*$ cross-section above the $\Upsilon(4S)$
Experiment: CLEO (CESR)
Inspire ID: 29927
Status: VALIDATED NOTREENTRY HEPDATA SINGLEWEIGHT
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 67 (1991) 1692-1695
Beams: e- e+
Beam energies: (5.3, 5.3); (5.3, 5.3); (5.3, 5.3); (5.3, 5.3); (5.3, 5.3); (5.3, 5.3); (5.3, 5.3) GeV
Run details:
  • e+e- collisions

Measurement of the inclusive cross section for $B^*$ production at energies above the $\Upsilon(4S)$ mass.

Source code: CLEO_1991_I29927.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/UnstableParticles.hh"
 4
 5namespace Rivet {
 6
 7
 8  class CLEO_1991_I29927 : public Analysis {
 9  public:
10
11    /// Constructor
12    RIVET_DEFAULT_ANALYSIS_CTOR(CLEO_1991_I29927);
13
14
15    /// @name Analysis methods
16    //@{
17
18    /// Book histograms and initialise projections before the run
19    void init() {
20
21      // Initialise and register projections
22      declare(UnstableParticles(), "UFS");
23
24      // Book histograms
25      book(_c_B, "/TMP/sigma_B");
26      book(_c_Bstar, "/TMP/sigma_Bstar");
27
28    }
29
30
31    /// Perform the per-event analysis
32    void analyze(const Event& event) {
33      const FinalState& ufs = apply<FinalState>(event, "UFS");
34      unsigned int nBstar(0);
35      // Get Bottom hadrons
36      const Particles bhads = filter_select(ufs.particles(), isBottomHadron);
37      // find the Bstars
38      for (const Particle& p : bhads) {
39        if(abs(p.pid())==513 || abs(p.pid())==523) {
40          if(!p.hasDescendantWith(Cuts::pid == p.pid())) ++nBstar;
41        }
42      }
43      if(!bhads.empty())
44        _c_B->fill();
45      if(nBstar!=0)
46        _c_Bstar->fill(nBstar);
47    }
48
49
50    /// Normalise histograms etc., after the run
51    void finalize() {
52      double fact = crossSection()/ sumOfWeights() /picobarn;
53      for(unsigned int ix=1;ix<3;++ix) {
54        double sig(0.),err(0.);
55        if(ix==1) {
56          sig = _c_B->val()*fact;
57          err = _c_B->err()*fact;
58        }
59        else {
60          sig = _c_Bstar->val()*fact;
61          err = _c_Bstar->err()*fact;
62        }
63        Scatter2D    temphisto(refData(ix, 1, 1));
64        Scatter2DPtr mult;
65        book(mult, ix, 1, 1);
66        for (size_t b = 0; b < temphisto.numPoints(); b++) {
67          const double x  = temphisto.point(b).x();
68          pair<double,double> ex = temphisto.point(b).xErrs();
69          pair<double,double> ex2 = ex;
70          if(ex2.first ==0.) ex2. first=0.0001;
71          if(ex2.second==0.) ex2.second=0.0001;
72          if (inRange(sqrtS()/GeV, x-ex2.first, x+ex2.second)) {
73            mult->addPoint(x, sig, ex, make_pair(err,err));
74          }
75          else {
76            mult->addPoint(x, 0., ex, make_pair(0.,.0));
77          }
78        }
79      }
80    }
81
82    //@}
83
84
85    /// @name Histograms
86    //@{
87    CounterPtr _c_B, _c_Bstar;
88    //@}
89
90
91  };
92
93
94  // The hook for the plugin system
95  RIVET_DECLARE_PLUGIN(CLEO_1991_I29927);
96
97
98}