Rivet analyses referenceD0_2000_S4480767Transverse momentum of the W bosonExperiment: D0 (Tevatron Run 1) Inspire ID: 535017 Status: VALIDATED Authors:
Beam energies: (900.0, 900.0) GeV Run details:
Measurement of the differential cross section for W boson production as a function of its transverse momentum. The data were collected by the D0 experiment at the Fermilab Tevatron Collider during 1994-1995 and correspond to an integrated luminosity of 85 pb$^{-1}$. Source code: D0_2000_S4480767.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/FinalState.hh"
4#include "Rivet/Projections/WFinder.hh"
5
6namespace Rivet {
7
8
9 class D0_2000_S4480767 : public Analysis {
10 public:
11
12 RIVET_DEFAULT_ANALYSIS_CTOR(D0_2000_S4480767);
13
14
15 /// @name Analysis methods
16 /// @{
17
18 /// Book histograms and initialise projections before the run
19 void init() {
20 FinalState fs;
21 WFinder wf(fs, Cuts::abseta < 5, PID::ELECTRON, 0.0*GeV, 200.0*GeV, 0.0*GeV, 0.2);
22 declare(wf, "WFinder");
23
24 book(_h_W_pT ,1, 1, 1);
25 }
26
27
28 /// Perform the per-event analysis
29 void analyze(const Event& event) {
30 const WFinder& wf = apply<WFinder>(event, "WFinder");
31 if (wf.bosons().size() == 0) vetoEvent;
32
33 _h_W_pT->fill(wf.bosons()[0].pT()/GeV);
34 }
35
36
37 /// Normalise histograms etc., after the run
38 void finalize() {
39 scale(_h_W_pT, crossSection()/sumOfWeights());
40 }
41
42 /// @}
43
44
45 private:
46
47 /// Histogram
48 Histo1DPtr _h_W_pT;
49
50 };
51
52
53
54 RIVET_DECLARE_ALIASED_PLUGIN(D0_2000_S4480767, D0_2000_I535017);
55
56}
|