rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BABAR_2005_I676691

$e^+e^- \to$ $2\pi^+2\pi^-$, $K^+K^-\pi^+\pi^-$ and $2K^+2K^-$ cross-sections between the threshold to 4.5 GeV
Experiment: BABAR (PEP-II)
Inspire ID: 676691
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D71 (2005) 052001, 2005
Beams: e+ e-
Beam energies: (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.3, 0.3); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.4, 0.4); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.5, 0.5); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.6, 0.6); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.7, 0.7); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.8, 0.8); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (0.9, 0.9); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.0, 1.0); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.1, 1.1); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.2, 1.2); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.3, 1.3); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.4, 1.4); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.5, 1.5); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.6, 1.6); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.7, 1.7); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.8, 1.8); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (1.9, 1.9); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.0, 2.0); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.1, 2.1); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2); (2.2, 2.2) GeV
Run details:
  • e+e- to hadrons

$e^+e^- \to$ $2\pi^+2\pi^-$, $K^+K^-\pi^+\pi^-$ and $2K^+2K^-$ cross-sections measured by BaBar using radiative return from threshold to 4.5 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.

Source code: BABAR_2005_I676691.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/FinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief e+e- -> 2pi+2pi-, K+K-pi+pi- and 2K+2K-
 9  class BABAR_2005_I676691 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2005_I676691);
14
15
16    /// @name Analysis methods
17    /// @{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21
22      // Initialise and register projections
23      declare(FinalState(), "FS");
24
25      // Book histograms
26      for(unsigned int ix=0;ix<3;++ix) {
27        book(_sigma[ix], 1+ix, 1, 1);
28        for (const string& en : _sigma[ix].binning().edges<0>()) {
29          const double end = std::stod(en)*GeV;
30          if (isCompatibleWithSqrtS(end)) {
31            _ecms[ix] = en;
32            break;
33          }
34        }
35      }
36      if (_ecms[0].empty() && _ecms[1].empty() && _ecms[2].empty())
37        MSG_ERROR("Beam energy incompatible with analysis.");
38    }
39
40
41    /// Perform the per-event analysis
42    void analyze(const Event& event) {
43      const FinalState& fs = apply<FinalState>(event, "FS");
44
45      map<long,int> nCount;
46      int ntotal(0);
47      for (const Particle& p : fs.particles()) {
48	nCount[p.pid()] += 1;
49	++ntotal;
50      }
51
52      if(ntotal!=4) vetoEvent;
53
54      if( nCount[211]==2 && nCount[-211]==2) {
55	if(!_ecms[0].empty()) _sigma[0]->fill(_ecms[0]);
56      }
57      else if(nCount[321]==1 && nCount[-321]==1 && nCount[211]==1 && nCount[-211]==1) {
58	if(!_ecms[1].empty()) _sigma[1]->fill(_ecms[1]);
59      }
60      else if( nCount[321]==2 && nCount[-321]==2) {
61	if(!_ecms[2].empty()) _sigma[2]->fill(_ecms[2]);
62      }
63    }
64
65
66    /// Normalise histograms etc., after the run
67    void finalize() {
68      double fact = crossSection()/ sumOfWeights() /nanobarn;
69      for(unsigned int ix=0;ix<3;++ix)
70        scale(_sigma[ix],fact);
71    }
72
73    /// @}
74
75
76    /// @name Histograms
77    /// @{
78    BinnedHistoPtr<string> _sigma[3];
79    string _ecms[3];
80    /// @}
81
82
83  };
84
85
86  RIVET_DECLARE_PLUGIN(BABAR_2005_I676691);
87
88
89}