Rivet analyses referenceD0_2015_I1324946D0 measurement of the $\phi^*$ distribution of muon pairs with masses between 30 and 500 GeV in 10.4 fb-1Experiment: D0 (Tevatron) Inspire ID: 1324946 Status: VALIDATED Authors:
Beam energies: (980.0, 980.0) GeV Run details:
D0 measurement of the distribution of the variable $\phi^*$ for muon pairs with masses between 30 and 500 GeV, using the complete run II data set collected at the Tevatron proton-antiproton collider. This corresponds to an integrated luminosity of $10.4 \text{fb}^{-1}$ at $\sqrt{s}=1.96$ TeV. The data are corrected for detector effects and presented in bins of dimuon rapidity and mass. Source code: D0_2015_I1324946.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/FinalState.hh"
4#include "Rivet/Projections/ZFinder.hh"
5
6namespace Rivet {
7
8 class D0_2015_I1324946 : public Analysis {
9 public:
10
11 /// Constructor
12 RIVET_DEFAULT_ANALYSIS_CTOR(D0_2015_I1324946);
13
14
15 /// @name Analysis methods
16 //@{
17
18 /// Book histograms and initialise projections before the run
19 void init() {
20 FinalState fs;
21 ZFinder zfinder_mm(fs, Cuts::abseta < 2 && Cuts::pT > 15*GeV, PID::MUON, 30*GeV, 500*GeV, 0.0, ZFinder::ClusterPhotons::NONE, ZFinder::AddPhotons::NO);
22 declare(zfinder_mm, "zfinder_mm");
23
24 book(_h_phistar_mm_peak_central, 1, 1, 1);
25 book(_h_phistar_mm_peak_forward, 2, 1, 1);
26 book(_h_phistar_mm_low_central, 3, 1, 1);
27 book(_h_phistar_mm_low_forward, 4, 1, 1);
28 book(_h_phistar_mm_high1, 5, 1, 1);
29 book(_h_phistar_mm_high2, 6, 1, 1);
30 }
31
32
33 /// Perform the per-event analysis
34 void analyze(const Event& event) {
35 const double weight = 1.0;
36
37
38 //70<Mmm<105
39 const ZFinder& zfinder_mm = apply<ZFinder>(event, "zfinder_mm");
40 if (zfinder_mm.bosons().size() == 1) {
41 Particles mm = zfinder_mm.constituents();
42 std::sort(mm.begin(), mm.end(), cmpMomByPt);
43 const FourMomentum& mminus = PID::charge3(mm[0].pid()) < 0 ? mm[0].momentum() : mm[1].momentum();
44 const FourMomentum& mplus = PID::charge3(mm[0].pid()) < 0 ? mm[1].momentum() : mm[0].momentum();
45 double phi_acop = M_PI - mapAngle0ToPi(mminus.phi() - mplus.phi());
46 double costhetastar = tanh((mminus.eta() - mplus.eta())/2);
47 double sin2thetastar = 1 - sqr(costhetastar);
48 if (sin2thetastar < 0) sin2thetastar = 0;
49 const double phistar = tan(phi_acop/2) * sqrt(sin2thetastar);
50 const FourMomentum& zmom = zfinder_mm.bosons()[0].momentum();
51 if (zmom.mass()<30*GeV || zmom.mass() >500*GeV) vetoEvent;
52
53 if( zmom.mass()>70 && zmom.mass()<100 && zmom.absrap()<1.0) _h_phistar_mm_peak_central->fill(phistar, weight);
54 if( zmom.mass()>70 && zmom.mass()<100 && zmom.absrap()>1.0 && zmom.absrap()<2.0) _h_phistar_mm_peak_forward->fill(phistar, weight);
55 if( zmom.mass()>30 && zmom.mass()<60 && zmom.absrap()<1.0) _h_phistar_mm_low_central->fill(phistar, weight);
56 if( zmom.mass()>30 && zmom.mass()<60 && zmom.absrap()>1.0 && zmom.absrap()<2.0) _h_phistar_mm_low_forward->fill(phistar, weight);
57 if( zmom.mass()>160 && zmom.mass()<300) _h_phistar_mm_high1->fill(phistar, weight);
58 if( zmom.mass()>300 && zmom.mass()<500) _h_phistar_mm_high2->fill(phistar, weight);
59
60 }
61 }
62
63 /// Normalise histograms etc., after the run
64 void finalize() {
65
66 normalize(_h_phistar_mm_low_central);
67 normalize(_h_phistar_mm_low_forward);
68 normalize(_h_phistar_mm_peak_central);
69 normalize(_h_phistar_mm_peak_forward);
70 normalize(_h_phistar_mm_high1);
71 normalize(_h_phistar_mm_high2);
72
73 }
74
75
76 //}
77
78 //@}
79
80
81 private:
82 /// @name Histograms
83 //@{
84
85 Histo1DPtr _h_phistar_mm_low_central;
86 Histo1DPtr _h_phistar_mm_low_forward;
87 Histo1DPtr _h_phistar_mm_peak_central;
88 Histo1DPtr _h_phistar_mm_peak_forward;
89 Histo1DPtr _h_phistar_mm_high1;
90 Histo1DPtr _h_phistar_mm_high2;
91 //@}
92 };
93
94
95
96 // The hook for the plugin system
97 RIVET_DECLARE_PLUGIN(D0_2015_I1324946);
98
99}
|