rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

DM2_1988_I264144

Cross section for $e^+e^-\to\eta\pi^+\pi^-$ at energies between 1.35 and 2.4 GeV
Experiment: DM2 (DCI)
Inspire ID: 264144
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B212 (1988) 133-138, 1988
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

Source code: DM2_1988_I264144.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/FinalState.hh"
  4#include "Rivet/Projections/UnstableParticles.hh"
  5
  6namespace Rivet {
  7
  8
  9  /// @brief Add a short analysis description here
 10  class DM2_1988_I264144 : public Analysis {
 11  public:
 12
 13    /// Constructor
 14    RIVET_DEFAULT_ANALYSIS_CTOR(DM2_1988_I264144);
 15
 16
 17    /// @name Analysis methods
 18    /// @{
 19
 20    /// Book histograms and initialise projections before the run
 21    void init() {
 22
 23      // Initialise and register projections
 24      declare(FinalState(), "FS");
 25      declare(UnstableParticles(), "UFS");
 26      book(_numEtaPiPi, "TMP/EtaPiPi");
 27    }
 28
 29    void findChildren(const Particle & p,map<long,int> & nRes, int &ncount) {
 30      for (const Particle &child : p.children()) {
 31	if(child.children().empty()) {
 32	  --nRes[child.pid()];
 33	  --ncount;
 34	}
 35	else
 36	  findChildren(child,nRes,ncount);
 37      }
 38    }
 39
 40    /// Perform the per-event analysis
 41    void analyze(const Event& event) {
 42      const FinalState& fs = apply<FinalState>(event, "FS");
 43
 44      map<long,int> nCount;
 45      int ntotal(0);
 46      for (const Particle& p : fs.particles()) {
 47	nCount[p.pid()] += 1;
 48	++ntotal;
 49      }
 50      const FinalState& ufs = apply<FinalState>(event, "UFS");
 51      for (const Particle& p : ufs.particles()) {
 52	if(p.children().empty()) continue;
 53	// find the omega
 54	if(p.pid()==221) {
 55	  map<long,int> nRes = nCount;
 56	  int ncount = ntotal;
 57	  findChildren(p,nRes,ncount);
 58	  // eta pi+pi-
 59	  if(ncount!=2) continue;
 60	  bool matched = true;
 61	  for(auto const & val : nRes) {
 62	    if(abs(val.first)==211) {
 63	      if(val.second !=1) {
 64		matched = false;
 65		break;
 66	      }
 67	    }
 68	    else if(val.second!=0) {
 69	      matched = false;
 70	      break;
 71	    }
 72	  }
 73	  if(matched)
 74	    _numEtaPiPi->fill();
 75	}
 76      }
 77    }
 78
 79
 80    /// Normalise histograms etc., after the run
 81    void finalize() {
 82      double sigma = _numEtaPiPi->val();
 83      double error = _numEtaPiPi->err();
 84      sigma *= crossSection()/ sumOfWeights() /nanobarn;
 85      error *= crossSection()/ sumOfWeights() /nanobarn;
 86      Estimate1DPtr mult;
 87      book(mult, 1, 1, 1);
 88      for (auto& b : mult->bins()) {
 89        if (inRange(sqrtS()/MeV, b.xMin(), b.xMax())) {
 90          b.set(sigma, error);
 91        }
 92      }
 93    }
 94
 95    /// @}
 96
 97
 98    /// @name Histograms
 99    /// @{
100    CounterPtr _numEtaPiPi;
101    /// @}
102
103
104  };
105
106
107  RIVET_DECLARE_PLUGIN(DM2_1988_I264144);
108
109
110}