Rivet analyses referenceDASP_1979_I132410Inclusive $\eta$ production rate for energies between 3.99 and 5.01 GeVExperiment: DASP (DORIS) Inspire ID: 132410 Status: VALIDATED Authors:
Beam energies: ANY Run details:
Measurement of the rate for inclusive $\eta$ production rate for energies between 3.99 and 5.01 GeV by the DASP experiment. Source code: DASP_1979_I132410.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/UnstableParticles.hh"
4
5namespace Rivet {
6
7
8 /// @brief inclusive eta production
9 class DASP_1979_I132410 : public Analysis {
10 public:
11
12 /// Constructor
13 RIVET_DEFAULT_ANALYSIS_CTOR(DASP_1979_I132410);
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(_c_eta, "/TMP/neta");
27
28 }
29
30
31 /// Perform the per-event analysis
32 void analyze(const Event& event) {
33 const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
34 _c_eta->fill(ufs.particles(Cuts::pid==221).size());
35 }
36
37
38 /// Normalise histograms etc., after the run
39 void finalize() {
40 scale(_c_eta,1./sumOfWeights()*crossSection()/nanobarn);
41 Estimate1DPtr mult;
42 book(mult, 1, 1, 1);
43 for (auto& b : mult->bins()) {
44 if (inRange(sqrtS()/GeV, b.xMin(), b.xMax())) {
45 b.set(_c_eta->val(), _c_eta->err());
46 }
47 }
48 }
49
50 /// @}
51
52
53 /// @name Histograms
54 /// @{
55 CounterPtr _c_eta;
56 /// @}
57
58
59 };
60
61
62 RIVET_DECLARE_PLUGIN(DASP_1979_I132410);
63
64
65}
|