rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

LHCB_2019_I1720859

Measurement of b-hadron fractions in 13 TeV pp collisions
Experiment: LHCB (LHC)
Inspire ID: 1720859
Status: VALIDATED NOHEPDATA
Authors:
  • Markus Seidel
References: Beams: p+ p+
Beam energies: (6500.0, 6500.0) GeV
Run details:
  • Minimum bias or low-pt bbbar events

The production fractions of $\overline{B}^0_s$ and $\Lambda^0_b$ hadrons, normalized to the sum of $B^-$ and $\overline{B}^0$ fractions, are measured in 13 TeV pp collisions using data collected by the LHCb experiment, corresponding to an integrated luminosity of 1.67/fb.

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

namespace Rivet {

  /// @brief Measurement of b-hadron fractions in 13 TeV pp collisions
  class LHCB_2019_I1720859 : public Analysis {
  public:
    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(LHCB_2019_I1720859);

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

    /// Book histograms and initialise projections before the run
    void init() {
      // Unstable particles
      const UnstableParticles up(Cuts::absetaIn(2, 5) && Cuts::ptIn(4.*GeV, 25.*GeV) && (Cuts::abspid == 511 || Cuts::abspid == 521 || Cuts::abspid == 531 || Cuts::abspid == 5122));
      declare(up, "up");

      // Book temp histograms
      book(_h["Bx"], "TMP/Bx", refData(1, 1, 1));
      book(_h["Bs"], "TMP/Bs", refData(1, 1, 1));
      book(_h["Lb"], "TMP/Lb", refData(1, 1, 1));
      // Bs and Lb ratios to B mesons
      book(_s["BsRatio"], 1, 1, 1);
      book(_s["LbRatio"], 1, 1, 2);
    }

    /// Perform the per-event analysis
    void analyze(const Event& event) {

      const UnstableParticles& up = apply<UnstableParticles>(event, "up");

      // Fill histograms with B hadron pTs
      for (const Particle& p : up.particles()) {
        if (p.abspid() == 521 || p.abspid() == 511)
          _h["Bx"]->fill(p.pT() / GeV);
        else if (p.abspid() == 531)
          _h["Bs"]->fill(p.pT() / GeV);
        else if (p.abspid() == 5122)
          _h["Lb"]->fill(p.pT() / GeV);
      }
    }

    /// Normalise histograms etc., after the run
    void finalize() {
      divide(_h["Bs"], _h["Bx"], _s["BsRatio"]);
      divide(_h["Lb"], _h["Bx"], _s["LbRatio"]);
    }

    /// @}

    /// @name Histograms
    /// @{
    map<string, Histo1DPtr> _h;
    map<string, Scatter2DPtr> _s;
    /// @}
  };

  RIVET_DECLARE_PLUGIN(LHCB_2019_I1720859);

}  // namespace Rivet