rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

MARKII_1982_I178416

Charged particle momentum distributions 5.2, 6.2 and 29 GeV
Experiment: MARKII (PEP)
Inspire ID: 178416
Status: VALIDATED
Authors:
  • Peter Richardson
No references listed
Beams: e- e+
Beam energies: (2.5, 2.5); (1.0, 1.0); (3.2, 3.2); (14.5, 14.5) GeV
Run details:
  • e+e- > hadrons. Beam energy must be specified as analysis option "ENERGY" when rivet-merge'ing samples.

Charged particle momentum distributions for 5.2, 6.2 and 29 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.

Source code: MARKII_1982_I178416.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/ChargedFinalState.hh"
 4
 5namespace Rivet {
 6
 7
 8  /// @brief Charged particle spectra at 5.2, 6.5 and 29 GeV
 9  class MARKII_1982_I178416 : public Analysis {
10  public:
11
12    /// Constructor
13    RIVET_DEFAULT_ANALYSIS_CTOR(MARKII_1982_I178416);
14
15
16    /// @name Analysis methods
17    ///@{
18
19    /// Book histograms and initialise projections before the run
20    void init() {
21      const ChargedFinalState fs;
22      declare(fs, "FS");
23      unsigned int iloc(0);
24      if(isCompatibleWithSqrtS(5.2))
25	iloc = 1;
26      else if(isCompatibleWithSqrtS(6.5))
27	iloc = 2;
28      else if(isCompatibleWithSqrtS(29.0))
29	iloc = 3;
30      else
31        MSG_ERROR("Beam energy incompatible with analysis.");
32      assert(iloc!=0);
33      book(_h_x,1,1,iloc);
34    }
35
36
37    /// Perform the per-event analysis
38    void analyze(const Event& event) {
39      const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
40      if(fs.particles().size()==2 &&
41	 abs(fs.particles()[0].pid())==13 &&
42	 abs(fs.particles()[1].pid())==13) vetoEvent;
43      for (const Particle& p : fs.particles()) {
44	const Vector3 mom3 = p.p3();
45	double pp = mom3.mod();
46	double x = 2.*pp/sqrtS();
47	_h_x->fill(x);
48      }
49    }
50
51
52    /// Normalise histograms etc., after the run
53    void finalize() {
54      scale(_h_x,crossSection()*sqr(sqrtS())/sumOfWeights()/microbarn);
55    }
56
57    ///@}
58
59
60    /// @name Histograms
61    ///@{
62    Histo1DPtr _h_x;
63    ///@}
64
65
66  };
67
68
69  RIVET_DECLARE_PLUGIN(MARKII_1982_I178416);
70
71}