Rivet analyses referenceOPAL_2008_I754316Jet production in Photon-Photon collisions at $E_{\text{CMS}}=206$ GeVExperiment: OPAL (LEP) Inspire ID: 754316 Status: VALIDATED Authors:
Beam energies: ANY Run details:
Jet production in $\gamma\gamma$ collisions where the photons are radiation from incoming electrons and positrons Source code: OPAL_2008_I754316.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/GammaGammaFinalState.hh"
4#include "Rivet/Projections/FastJets.hh"
5
6namespace Rivet {
7
8
9 /// @brief Jet production in photon-photon collisions at 206 GeV
10 class OPAL_2008_I754316 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(OPAL_2008_I754316);
15
16
17 /// @name Analysis methods
18 //@{
19
20 /// Book histograms and initialise projections before the run
21 void init() {
22 // get the hadronic final state
23 const GammaGammaKinematics& gammakin = declare(GammaGammaKinematics(), "Kinematics");
24 const FinalState & fs = declare(GammaGammaFinalState(gammakin), "FS");
25 declare(FastJets(fs, FastJets::KT,1.),"Jets");
26
27 // Book histograms
28 book(_h_y1,1, 1, 1);
29 book(_h_y2,2, 1, 1);
30
31 }
32
33
34 /// Perform the per-event analysis
35 void analyze(const Event& event) {
36 Jets jets = apply<FastJets>(event, "Jets").jetsByPt(Cuts::pT > 5*GeV and Cuts::abseta < 1.5);
37 if(jets.empty()) vetoEvent;
38 for(const Jet & jet : jets) {
39 _h_y2->fill(jet.pT());
40 if(abs(jet.eta())<1.0)
41 _h_y1->fill(jet.pT());
42 }
43 }
44
45
46 /// Normalise histograms etc., after the run
47 void finalize() {
48
49 scale(_h_y1, crossSection()/picobarn/sumOfWeights());
50 scale(_h_y2, crossSection()/picobarn/sumOfWeights());
51
52 }
53
54 //@}
55
56
57 /// @name Histograms
58 //@{
59 Histo1DPtr _h_y1, _h_y2;
60 //@}
61
62
63 };
64
65
66 // The hook for the plugin system
67 RIVET_DECLARE_PLUGIN(OPAL_2008_I754316);
68
69
70}
|