Rivet Analyses Reference

MARKI_1976_I109792

Charged particle momentum distributions for energies between 3.0 and 7.4 GeV
Experiment: MARK-I (SPEAR)
Inspire ID: 109792
Status: VALIDATED
Authors:
  • Peter Richardson
No references listed
Beams: e- e+
Beam energies: (1.5, 1.5); (2.4, 2.4); (2.9, 2.9); (3.1, 3.1); (3.3, 3.3); (3.5, 3.5); (3.7, 3.7) 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 energies between 3.0 and 7.4 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.

Source code: MARKI_1976_I109792.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
72
73
74
75
76
77
78
79
80
81
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"

namespace Rivet {


  /// @brief Charged particle spectra between 3.0 and 7.4 GeV
  class MARKI_1976_I109792 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(MARKI_1976_I109792);


    /// @name Analysis methods
    //@{

    /// Book histograms and initialise projections before the run
    void init() {
      const ChargedFinalState fs;
      declare(fs, "FS");
      unsigned int iloc(0);
      if(isCompatibleWithSqrtS(3.0))
	iloc = 8;
      else if(isCompatibleWithSqrtS(4.8))
	iloc = 7;
      else if(isCompatibleWithSqrtS(5.8))
	iloc = 6;
      else if(isCompatibleWithSqrtS(6.2))
	iloc = 5;
      else if(isCompatibleWithSqrtS(6.6))
	iloc = 4;
      else if(isCompatibleWithSqrtS(7.0))
	iloc = 3;
      else if(isCompatibleWithSqrtS(7.4))
	iloc = 2;
      else
        MSG_ERROR("Beam energy incompatible with analysis.");
      assert(iloc!=0);
      book(_h_x, iloc   ,1,1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
      if(fs.particles().size()==2 &&
	 abs(fs.particles()[0].pid())==13 &&
	 abs(fs.particles()[1].pid())==13) vetoEvent;
      for (const Particle& p : fs.particles()) {
	const Vector3 mom3 = p.p3();
	double pp = mom3.mod();
	double x = 2.*pp/sqrtS();
	_h_x->fill(x);
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_h_x,crossSection()*sqr(sqrtS())/sumOfWeights()/microbarn);
    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_x;
    //@}


  };


  // The hook for the plugin system
  RIVET_DECLARE_PLUGIN(MARKI_1976_I109792);


}