Rivet analyses referenceVENUS_1999_I500179Cross section in $e^+e^-\to$hadrons for 57.77 GeVExperiment: VENUS (Tristan) Inspire ID: 500179 Status: VALIDATED Authors:
Beam energies: ANY Run details:
Measurement of the hadronic cross section in $e^+e^-$ collisions by VENUS for 57.77 GeV. Source code: VENUS_1999_I500179.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/FinalState.hh"
4
5namespace Rivet {
6
7
8 /// @brief Add a short analysis description here
9 class VENUS_1999_I500179 : public Analysis {
10 public:
11
12 /// Constructor
13 RIVET_DEFAULT_ANALYSIS_CTOR(VENUS_1999_I500179);
14
15
16 /// @name Analysis methods
17 /// @{
18
19 /// Book histograms and initialise projections before the run
20 void init() {
21 // Initialise and register projections
22 declare(FinalState(), "FS");
23
24 // Book histograms
25 book(_c_hadrons, 1, 1, 1);
26 }
27
28
29 /// Perform the per-event analysis
30 void analyze(const Event& event) {
31 const FinalState& fs = apply<FinalState>(event, "FS");
32
33 map<long,int> nCount;
34 int ntotal(0);
35 for (const Particle& p : fs.particles()) {
36 nCount[p.pid()] += 1;
37 ++ntotal;
38 }
39 if (nCount[-13]==1 and nCount[13]==1 && ntotal==2+nCount[22]) {
40 vetoEvent; // mu+mu- + photons
41 }
42 else {
43 _c_hadrons->fill(Ecm); // everything else
44 }
45 }
46
47
48 /// Normalise histograms etc., after the run
49 void finalize() {
50 const double fact = crossSection()/sumOfWeights()/picobarn;
51 scale(_c_hadrons, fact);
52 }
53
54 /// @}
55
56
57 /// @name Histograms
58 /// @{
59 BinnedHistoPtr<string> _c_hadrons;
60 const string Ecm = "57.77";
61 /// @}
62
63
64 };
65
66
67 RIVET_DECLARE_PLUGIN(VENUS_1999_I500179);
68
69
70}
|