rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

TASSO_1980_I153656

$\pi^\pm$, $K^\pm$ and $p,\bar{p}$ spectra in $e^+e^-$ at 12 and 30 GeV
Experiment: TASSO (Petra)
Inspire ID: 153656
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B94 (1980) 444-449, 1980
Beams: e+ e-
Beam energies: (6.0, 6.0); (15.0, 15.0) GeV
Run details:
  • e+ e- to hadrons

Measurement of the $\pi^\pm$, $K^\pm$ and $p,\bar{p}$ spectra in $e^+e^-$ collisions for centre-of-mass energies of 12 and 30 GeV by the TASSO experiment at Petra.

Source code: TASSO_1980_I153656.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Projections/Beam.hh"

namespace Rivet {


  /// @brief pi, K and proton spectra at 12 and 30 GeV
  class TASSO_1980_I153656 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(TASSO_1980_I153656);


    /// @name Analysis methods
    //@{

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

      // Initialise and register projections
      declare(Beam(), "Beams");
      declare(ChargedFinalState(), "FS");

      // Book histograms
      _iHist=-1;
      if(fuzzyEquals(sqrtS()/GeV, 12., 1e-3)) {
	_iHist = 0;
      }
      else if (fuzzyEquals(sqrtS()/GeV, 30., 1e-3)) {
	_iHist = 1;
      }
      else
	MSG_ERROR("Beam energy not supported!");

      book(_h_p_pi,3*_iHist+2,1,1);
      book(_h_x_pi,3*_iHist+2,1,2);
      book(_h_p_K ,3*_iHist+3,1,1);
      book(_h_x_K ,3*_iHist+3,1,2);
      book(_h_p_p ,3*_iHist+4,1,1);
      book(_h_x_p ,3*_iHist+4,1,2);

      book(_n_pi,"TMP/n_pi",refData(3*_iHist+ 8,1,1));
      book(_d_pi,"TMP/d_pi",refData(3*_iHist+ 8,1,1));
      book(_n_K ,"TMP/n_K" ,refData(3*_iHist+ 9,1,1));
      book(_d_K ,"TMP/d_K" ,refData(3*_iHist+ 9,1,1));
      book(_n_p ,"TMP/n_p" ,refData(3*_iHist+10,1,1));
      book(_d_p ,"TMP/d_p" ,refData(3*_iHist+10,1,1));

    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      // First, veto on leptonic events by requiring at least 4 charged FS particles
      const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
      const size_t numParticles = fs.particles().size();

      // Even if we only generate hadronic events, we still need a cut on numCharged >= 2.
      if (numParticles < 2) {
        MSG_DEBUG("Failed leptonic event cut");
        vetoEvent;
      }
      MSG_DEBUG("Passed leptonic event cut");

      // Get beams and average beam momentum
      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
      const double meanBeamMom = ( beams.first.p3().mod() +
                                   beams.second.p3().mod() ) / 2.0;
      MSG_DEBUG("Avg beam momentum = " << meanBeamMom);
      
      for( const Particle& p : fs.particles()) {
	double modp = p.p3().mod();
	_d_pi->fill(modp);
	_d_K->fill(modp);
	_d_p ->fill(modp);
	double beta = modp/p.E();
	double xE = p.E()/meanBeamMom;
	if(abs(p.pid())==211) {
	  _h_p_pi->fill(modp);
	  _h_x_pi->fill(xE  , 1./beta);
	  _n_pi->fill(modp);
	}
	else if(abs(p.pid())==321) {
	  _h_p_K->fill(modp);
	  _h_x_K->fill(xE  ,1./beta);
	  _n_K->fill(modp);
	}
	else if(abs(p.pid())==2212) {
	  _h_p_p->fill(modp);
	  _h_x_p->fill(xE  ,1./beta);
	  _n_p ->fill(modp);
	}

      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {

      scale(_h_p_pi , crossSection()/nanobarn/sumOfWeights());
      scale(_h_x_pi , sqr(sqrtS())*crossSection()/microbarn/sumOfWeights());
      scale(_h_p_K  , crossSection()/nanobarn/sumOfWeights());
      scale(_h_x_K  , sqr(sqrtS())*crossSection()/microbarn/sumOfWeights());
      scale(_h_p_p  , crossSection()/nanobarn/sumOfWeights());
      scale(_h_x_p  , sqr(sqrtS())*crossSection()/microbarn/sumOfWeights());

      Scatter2DPtr temp1,temp2,temp3;
      book(temp1,3*_iHist+ 8,1,1);
      book(temp2,3*_iHist+ 9,1,1);
      book(temp3,3*_iHist+10,1,1);
      
      divide(_n_pi,_d_pi, temp1);
      divide(_n_K ,_d_K , temp2);
      divide(_n_p ,_d_p , temp3);
    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_p_pi, _h_x_pi, _h_p_K, _h_x_K, _h_p_p, _h_x_p;
    Histo1DPtr _n_pi,_d_pi,_n_K,_d_K,_n_p,_d_p;
    int _iHist;
    //@}


  };


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


}