rivet is hosted by Hepforge, IPPP Durham

## Rivet analyses reference

### BABAR_2007_I746745

Spectrum for $\Omega_c^0$ production at the $\Upsilon(4S)$
Experiment: BABAR (PEP-II)
Inspire ID: 746745
Status: VALIDATED
Authors:
• Peter Richardson
References:
• Phys.Rev.Lett. 99 (2007) 062001
Beams: e+ e-
Beam energies: (5.3, 5.3) GeV
Run details:
• e+e- > hadrons at Upsilon(4S) including both resonant and non-resonance

Spectrum for $\Omega_c^0$ production at the $\Upsilon(4S)$ measured by BaBar. The spectrum includes a contribution from both the $\Upsilon(4S)$ and continuum $c\bar{c}$ events.

Source code: BABAR_2007_I746745.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 // -*- C++ -*- #include "Rivet/Analysis.hh" #include "Rivet/Projections/UnstableParticles.hh" namespace Rivet { /// @brief Spectrum for Omega_c class BABAR_2007_I746745 : public Analysis { public: /// Constructor DEFAULT_RIVET_ANALYSIS_CTOR(BABAR_2007_I746745); /// @name Analysis methods ///@{ /// Book histograms and initialise projections before the run void init() { declare(UnstableParticles(),"UFS"); book(_h_p,1,1,1); book(_b ,2,1,1); book(_r ,3,1,1); book(_ups,"/TMP/ups"); } /// Perform the per-event analysis void analyze(const Event& event) { static const int idOmega = 4332; const UnstableParticles& ufs = apply(event, "UFS"); bool ups = !ufs.particles(Cuts::pid==300553).empty(); if(ups) _ups->fill(); for (const Particle& p : ufs.particles(Cuts::abspid==idOmega)) { _h_p->fill(p.momentum().p3().mod()); if(p.children().size()==2) { int sign = p.pid()/p.abspid(); if((p.children()[0].pid()==sign*3334 && p.children()[1].pid()==sign*211) || (p.children()[1].pid()==sign*3334 && p.children()[0].pid()==sign*211) ) { if(ups) _b->fill(0.5); else _r->fill(0.5); } } } } /// Normalise histograms etc., after the run void finalize() { normalize(_h_p); if(_ups->effNumEntries()!=0) { scale(_b,0.5/ *_ups); } scale(_r,crossSection()/sumOfWeights()/femtobarn); } ///@} /// @name Histograms ///@{ Histo1DPtr _h_p,_b,_r; CounterPtr _ups; ///@} }; DECLARE_RIVET_PLUGIN(BABAR_2007_I746745); }