Rivet Analyses Reference

DASP_1979_I132045

$\pi^\pm$, $p,\bar{p}$, and $K^\pm$ spectra for $E_{\text{CMS}}=3.67\to5.2$ GeV in $e^+e^-$ collisions
Experiment: DASP (Doris)
Inspire ID: 132045
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Nucl.Phys. B148 (1979) 189-227
Beams: e- e+
Beam energies: ANY
Run details:
  • e+e- to hadrons between 3.6 and 5.2 GeV Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.

Measurement of the pion, proton and kaon spectra in $e^+e^-$ collisions for a range of energies between 3.6 and 5.2 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.

Source code: DASP_1979_I132045.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
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/FinalState.hh"

namespace Rivet {


  /// @brief Add a short analysis description here
  class DASP_1979_I132045 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(DASP_1979_I132045);


    /// @name Analysis methods
    //@{

    /// Book histograms and initialise projections before the run
    void init() {

      // Initialise and register projections
      declare(FinalState(), "FS");

      // find the hists based on beam energies
      int ihist=-1;
      if (inRange(sqrtS()/GeV,3.6,3.67)) {
	ihist=0;
      }
      else if (inRange(sqrtS()/GeV,3.98,4.1)) {
	ihist=1;
      }
      else if (inRange(sqrtS()/GeV,4.1,4.24)) {
	ihist=2;
      }
      else if (inRange(sqrtS()/GeV,4.24,4.36)) {
	ihist=3;
      }
      else if (inRange(sqrtS()/GeV,4.36,4.46)) {
	ihist=4;
      }
      else if (inRange(sqrtS()/GeV,4.46,4.98)) {
	ihist=5;
      }
      else if (isCompatibleWithSqrtS(5.0)) {
	ihist=6;
      }
      else if (isCompatibleWithSqrtS(5.2)) {
	ihist=7;
      }
      else {
	MSG_ERROR("Beam energy not supported!");
      }
      // Book histograms
      book(_h_pi_p    ,  1,1,1+ihist);
      book(_h_K_p     ,  2+ihist,1,1);
      book(_h_proton_p, 10+ihist,1,1);
      book(_h_pi_x    , 18,1,1+ihist);
      book(_h_K_x     , 19+ihist,1,1);
      book(_h_proton_x, 27+ihist,1,1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {

      for (const Particle& p : apply<FinalState>(event, "FS").particles()) {
	const int id = p.abspid();
	const double modp = p.p3().mod();
	const double xp = 2.*modp/sqrtS();
	const double beta = modp / p.E();
	if(id==211) {
	  _h_pi_p->fill(modp);
	  _h_pi_x->fill(xp  ,1./beta);
	}
	else if(id==321) {
	  _h_K_p->fill(modp);
	  _h_K_x->fill(xp  ,1./beta);
	}
	else if(id==2212) {
	  _h_proton_p->fill(modp);
	  _h_proton_x->fill(xp  ,1./beta);
	}
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      double fact = crossSection()/nanobarn/sumOfWeights();
      scale(_h_pi_p     ,fact);
      scale(_h_K_p      ,fact);
      scale(_h_proton_p ,fact);
      fact *= sqr(sqrtS());
      scale(_h_pi_x     ,fact);
      scale(_h_K_x      ,fact);
      scale(_h_proton_x ,fact);
    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_pi_p, _h_K_p, _h_proton_p;
    Histo1DPtr _h_pi_x, _h_K_x, _h_proton_x;
    //@}


  };


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


}