Rivet analyses referenceARGUS_1988_I261672Spectrum for $\Sigma_c^{0,++}$ production in $e^+e^-$ at 10 GeV in the continuumExperiment: ARGUS (DORIS) Inspire ID: 261672 Status: VALIDATED Authors:
Beam energies: (5.0, 5.0) GeV Run details:
Measurement of the $\Sigma_c^{0,++}$ spectrum in $e^+e^-$ collisions at 10 GeV. Source code: ARGUS_1988_I261672.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/UnstableParticles.hh"
4
5namespace Rivet {
6
7
8 /// @brief Sigma_c 0,++ spectrum
9 class ARGUS_1988_I261672 : public Analysis {
10 public:
11
12 /// Constructor
13 RIVET_DEFAULT_ANALYSIS_CTOR(ARGUS_1988_I261672);
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(UnstableParticles(), "UFS");
24
25 // Book histograms
26 book(_h_x, 1, 1, 1);
27
28 }
29
30
31 /// Perform the per-event analysis
32 void analyze(const Event& event) {
33 for(const Particle& p : apply<UnstableParticles>(event, "UFS").particles(Cuts::abspid==4112 or Cuts::abspid==4222)) {
34 const double xp = 2.*p.p3().mod()/sqrtS();
35 _h_x->fill(xp);
36 }
37 }
38
39
40 /// Normalise histograms etc., after the run
41 void finalize() {
42 normalize(_h_x);
43 }
44
45 //@}
46
47
48 /// @name Histograms
49 //@{
50 Histo1DPtr _h_x;
51 //@}
52
53
54 };
55
56
57 // The hook for the plugin system
58 RIVET_DECLARE_PLUGIN(ARGUS_1988_I261672);
59
60
61}
|