rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESII_2004_I622224

Charged particle momentum distributions for energies between 2.2 and 4.8 GeV
Experiment: BESII (BEPC)
Inspire ID: 622224
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev. D69 (2004) 072002, 2004
Beams: e+ e-
Beam energies: (1.1, 1.1); (1.3, 1.3); (1.5, 1.5); (1.6, 1.6); (2.3, 2.3); (2.4, 2.4) GeV
Run details:
  • e+e- to hadrons

Charged particle momentum distributions for energies between 2.2 and 4.8 GeV

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

namespace Rivet {


  /// @brief Charged particle spectra between 2.2 and 4.8 GeV
  class BESII_2004_I622224 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(BESII_2004_I622224);


    /// @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, 2.2 , 1E-3))
	iloc = 1;
      else if(fuzzyEquals(sqrtS()/GeV, 2.6 , 1E-3))
	iloc = 2;
      else if(fuzzyEquals(sqrtS()/GeV, 3.0 , 1E-3))
	iloc = 3;
      else if(fuzzyEquals(sqrtS()/GeV, 3.2 , 1E-3))
	iloc = 4;
      else if(fuzzyEquals(sqrtS()/GeV, 4.6 , 1E-3))
	iloc = 5;
      else if(fuzzyEquals(sqrtS()/GeV, 4.8 , 1E-3))
	iloc = 6;
      assert(iloc!=0);
      book(_h_ln, iloc   ,1,1);
      book(_h_weight, "TMP/Weight");
    }


    /// 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 xi = -log(2.*pp/sqrtS());
	_h_ln->fill(xi);
      }
      _h_weight->fill();
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_h_ln,1./_h_weight->sumW());
    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_ln;
    CounterPtr _h_weight;
    //@}


  };


  // The hook for the plugin system
  DECLARE_RIVET_PLUGIN(BESII_2004_I622224);


}