Rivet analyses referenceL3_2004_I661114Jet production in Photon-Photon collisions at $E_{\text{CMS}}=198$ GeVExperiment: L3 (LEP) Inspire ID: 661114 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: L3_2004_I661114.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 198 GeV
10 class L3_2004_I661114 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(L3_2004_I661114);
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& diskin = declare(GammaGammaKinematics(), "Kinematics");
24 const FinalState & fs = declare(GammaGammaFinalState(diskin), "FS");
25 declare(FastJets(fs, FastJets::KT,1.),"Jets");
26
27 // Book histograms
28 book(_h_y, 1, 1, 1);
29
30 }
31
32
33 /// Perform the per-event analysis
34 void analyze(const Event& event) {
35 Jets jets = apply<FastJets>(event, "Jets").jetsByPt(Cuts::pT > 3*GeV and Cuts::abseta < 1.0);
36 if(jets.empty()) vetoEvent;
37 for(const Jet & jet : jets) {
38 _h_y->fill(jet.pT());
39 }
40 }
41
42
43 /// Normalise histograms etc., after the run
44 void finalize() {
45
46 scale(_h_y, crossSection()/picobarn/sumOfWeights());
47
48 }
49
50 //@}
51
52
53 /// @name Histograms
54 //@{
55 Histo1DPtr _h_y;
56 //@}
57
58
59 };
60
61
62 // The hook for the plugin system
63 RIVET_DECLARE_PLUGIN(L3_2004_I661114);
64
65
66}
|