rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

SND_2000_I503946

Cross section for $e^+e^-\to\omega\pi^0\to\pi^0\pi^0\gamma$ at energies near the $\phi$ mass.'
Experiment: SND (VEPP-2M)
Inspire ID: 503946
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Nucl. Phys (2000) B569, 158-182
Beams: e+ e-
Beam energies: ANY
Run details:
  • e+e- to hadrons

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