Rivet analyses referenceLHCB_2012_I1091071Differential cross sections for $\Upsilon(1,2,3S)$ production at 7 TeVExperiment: LHCB (LHC) Inspire ID: 1091071 Status: VALIDATED Authors:
Beam energies: (3500.0, 3500.0) GeV Run details:
Measurement of the double differential (in $p_\perp$ and $y$) cross section for $\Upsilon(1,2,3S)$ production at 7 TeV by the LHCB collaboration. Source code: LHCB_2012_I1091071.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/UnstableParticles.hh"
4
5namespace Rivet {
6
7
8 /// @brief Upslion production at 7 TeV
9 class LHCB_2012_I1091071 : public Analysis {
10 public:
11
12 /// Constructor
13 RIVET_DEFAULT_ANALYSIS_CTOR(LHCB_2012_I1091071);
14
15
16 /// @name Analysis methods
17 /// @{
18
19 /// Book histograms and initialise projections before the run
20 void init() {
21 declare(UnstableParticles(), "UFS");
22 for(unsigned int ix=0;ix<3;++ix) {
23 book(_h_Ups[ix],{2.0,2.5,3.0,3.5,4.0,4.5});
24 for(unsigned int iy=0;iy<5;++iy) {
25 book(_h_Ups[ix]->bin(1+iy),2+iy+5*ix,1,1);
26 }
27 book(_h_Ups_pT[ix],"TMP/Ups_"+toString(ix),refData(17,1,1));
28 }
29 }
30
31
32 /// Perform the per-event analysis
33 void analyze(const Event& event) {
34 // Final state of unstable particles to get particle spectra
35 const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
36 // upsilon
37 for (const Particle& p : ufs.particles(Cuts::pid==553 or Cuts::pid==100553 or Cuts::pid==200553)) {
38 double absrap = p.absrap();
39 double xp = p.perp();
40 if(absrap<2. || absrap>4.5) continue;
41 unsigned int iups=p.pid()/100000;
42 _h_Ups_pT[iups] ->fill(xp);
43 _h_Ups[iups] ->fill(absrap,xp);
44 }
45 }
46
47
48 /// Normalise histograms etc., after the run
49 void finalize() {
50 // 1/2 due rapidity folding +/-
51 double factor = 0.5*crossSection()/picobarn/sumOfWeights();
52 // branching ratios for upsilon
53 vector<double> br = {0.0248,0.0193,0.0218};
54 for(unsigned int ix=0;ix<3;++ix) {
55 scale(_h_Ups_pT [ix],factor*br[ix]);
56 scale(_h_Ups[ix],factor*br[ix]);
57 divByGroupWidth(_h_Ups[ix]);
58 }
59 for(unsigned int ix=0;ix<2;++ix) {
60 Estimate1DPtr tmp;
61 book(tmp,17,1,1+ix);
62 divide(_h_Ups_pT[ix+1],_h_Ups_pT[0],tmp);
63 }
64 }
65
66 /// @}
67
68
69 /// @name Histograms
70 /// @{
71 Histo1DPtr _h_Ups_pT[3];
72 Histo1DGroupPtr _h_Ups[3];
73 /// @}
74
75
76 };
77
78
79 RIVET_DECLARE_PLUGIN(LHCB_2012_I1091071);
80
81}
|