rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

BESII_2008_I801208

Cross sections for light hadrons at 3.773 and 3.650 GeV
Experiment: BESII (BEPC II)
Inspire ID: 801208
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B670 (2008) 179-183, 2008
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

Cross section for $e^+e^-\to K^-\pi^+$, $K^-\pi^+\pi^0$, $K^-\pi^+\pi^+\pi^-$, $K^-\pi^+\pi^+\pi^-\pi^0$ and $K^-\pi^+\pi^0\pi^0$ together with a $K_S^0$ meson at 3.773 and 3.650 GeV.

Source code: BESII_2008_I801208.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/FinalState.hh"
  4
  5namespace Rivet {
  6
  7
  8  /// @brief Add a short analysis description here
  9  class BESII_2008_I801208 : public Analysis {
 10  public:
 11
 12    /// Constructor
 13    RIVET_DEFAULT_ANALYSIS_CTOR(BESII_2008_I801208);
 14
 15
 16    /// @name Analysis methods
 17    //@{
 18
 19    /// Book histograms and initialise projections before the run
 20    void init() {
 21
 22      // Initialise and register projections
 23      declare(FinalState(), "FS");
 24
 25      // Book histograms
 26      for(unsigned int ix=1;ix<7;++ix) {
 27	stringstream ss;
 28	ss << "TMP/n" << ix;
 29	book(_nMeson[ix], ss.str());
 30      }
 31    }
 32
 33
 34    /// Perform the per-event analysis
 35    void analyze(const Event& event) {
 36      const FinalState& fs = apply<FinalState>(event, "FS");
 37
 38      map<long,int> nCount;
 39      int ntotal(0);
 40      for (const Particle& p : fs.particles()) {
 41	nCount[p.pid()] += 1;
 42	++ntotal;
 43      }
 44      if(nCount[310]!=1) vetoEvent;
 45
 46      if(ntotal==3) {
 47	if((nCount[ 211]==1 && nCount[-321]==1) ||
 48	   (nCount[-211]==1 && nCount[ 321]==1) )
 49	  _nMeson[1]->fill();
 50      }
 51      else if(ntotal==4&&nCount[111]==1) {
 52	if((nCount[ 211]==1 && nCount[-321]==1) ||
 53	   (nCount[-211]==1 && nCount[ 321]==1) )
 54	  _nMeson[2]->fill();
 55      }
 56      else if(ntotal==5) {
 57	if((nCount[ 211]==2 && nCount[-211]==1 && nCount[-321]==1) ||
 58	   (nCount[-211]==2 && nCount[ 211]==1 && nCount[ 321]==1) )
 59	  _nMeson[3]->fill();
 60	if(((nCount[ 211]==1 &&  nCount[-321]==1) ||
 61	    (nCount[-211]==1 &&  nCount[ 321]==1) ) && nCount[111]==2)
 62	  _nMeson[6]->fill();
 63      }
 64      else if(ntotal==6&&nCount[111]==1) {
 65	if((nCount[ 211]==2 && nCount[-211]==1 && nCount[-321]==1) ||
 66	   (nCount[-211]==2 && nCount[ 211]==1 && nCount[ 321]==1) )
 67	  _nMeson[4]->fill();
 68      }
 69      else if(ntotal==7) {
 70	if((nCount[ 211]==3 && nCount[-211]==2 && nCount[-321]==1) ||
 71	   (nCount[-211]==3 && nCount[ 211]==2 && nCount[ 321]==1) )
 72	  _nMeson[5]->fill();
 73      }
 74    }
 75
 76    /// Normalise histograms etc., after the run
 77    void finalize() {
 78      for(unsigned int ix=1;ix<7;++ix) {
 79	double sigma = _nMeson[ix]->val();
 80	double error = _nMeson[ix]->err();
 81    	sigma *= crossSection()/ sumOfWeights() /picobarn;
 82    	error *= crossSection()/ sumOfWeights() /picobarn; 
 83	Scatter2D temphisto(refData(1, 1, ix));
 84    	Scatter2DPtr  mult;
 85        book(mult, 1, 1, ix);
 86	for (size_t b = 0; b < temphisto.numPoints(); b++) {
 87	  const double x  = temphisto.point(b).x();
 88	  pair<double,double> ex = temphisto.point(b).xErrs();
 89	  pair<double,double> ex2 = ex;
 90	  if(ex2.first ==0.) ex2. first=0.0001;
 91	  if(ex2.second==0.) ex2.second=0.0001;
 92	  if (inRange(sqrtS()/GeV, x-ex2.first, x+ex2.second)) {
 93	    mult->addPoint(x, sigma, ex, make_pair(error,error));
 94	  }
 95	  else {
 96	    mult->addPoint(x, 0., ex, make_pair(0.,.0));
 97	  }
 98	}
 99      }
100    }
101
102    //@}
103
104
105    /// @name Histograms
106    //@{
107    CounterPtr _nMeson[7];
108    //@}
109
110
111  };
112
113
114  // The hook for the plugin system
115  RIVET_DECLARE_PLUGIN(BESII_2008_I801208);
116
117
118}