rivet is hosted by Hepforge, IPPP Durham

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

Charged particle momentum distributions for energies between 3.0 and 7.4 GeV

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
// -*- 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
    DEFAULT_RIVET_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(fuzzyEquals(sqrtS()/GeV, 3.0 , 1E-3))
	iloc = 8;
      else if(fuzzyEquals(sqrtS()/GeV, 4.8 , 1E-3))
	iloc = 7;
      else if(fuzzyEquals(sqrtS()/GeV, 5.8 , 1E-3))
	iloc = 6;
      else if(fuzzyEquals(sqrtS()/GeV, 6.2 , 1E-3))
	iloc = 5;
      else if(fuzzyEquals(sqrtS()/GeV, 6.6 , 1E-3))
	iloc = 4;
      else if(fuzzyEquals(sqrtS()/GeV, 7.0 , 1E-3))
	iloc = 3;
      else if(fuzzyEquals(sqrtS()/GeV, 7.4 , 1E-3))
	iloc = 2;
      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
  DECLARE_RIVET_PLUGIN(MARKI_1976_I109792);


}