rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

TPC_1984_I205869

$K^{*0}$ and $K^0$ spectra at 29 GeV
Experiment: TPC (PEP)
Inspire ID: 205869
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Rev.Lett. 53 (1984) 2378, 1984
Beams: e+ e-
Beam energies: (14.5, 14.5) GeV
Run details:
  • e+e- to hadrons at 29 GeV

Measurement of the $K^{*0}$ and $K^0$ spectra at 29 GeV by the TPC experiment.

Source code: TPC_1984_I205869.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Projections/Beam.hh"
 4#include "Rivet/Projections/FinalState.hh"
 5#include "Rivet/Projections/ChargedFinalState.hh"
 6#include "Rivet/Projections/UnstableParticles.hh"
 7
 8namespace Rivet {
 9
10
11  /// @brief K*0 and K0 spectra at 29 GeV
12  class TPC_1984_I205869 : public Analysis {
13  public:
14
15    /// Constructor
16    RIVET_DEFAULT_ANALYSIS_CTOR(TPC_1984_I205869);
17
18
19    /// @name Analysis methods
20    //@{
21
22    /// Book histograms and initialise projections before the run
23    void init() {
24      declare(Beam(), "Beams");
25      declare(ChargedFinalState(), "FS");
26      declare(UnstableParticles(), "UFS");
27      book(_histKstar, 3, 1, 1);
28      book(_histK    , 4, 1, 1);
29    }
30
31
32    /// Perform the per-event analysis
33    void analyze(const Event& event) {
34
35      // First, veto on leptonic events by requiring at least 4 charged FS particles
36      const FinalState& fs = apply<FinalState>(event, "FS");
37      const size_t numParticles = fs.particles().size();
38
39      // Even if we only generate hadronic events, we still need a cut on numCharged >= 2.
40      if (numParticles < 2) {
41        MSG_DEBUG("Failed leptonic event cut");
42        vetoEvent;
43      }
44      MSG_DEBUG("Passed leptonic event cut");
45
46      // Get beams and average beam momentum
47      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
48      const double meanBeamMom = ( beams.first.p3().mod() +
49                                   beams.second.p3().mod() ) / 2.0;
50      MSG_DEBUG("Avg beam momentum = " << meanBeamMom);
51
52      // Final state of unstable particles to get particle spectra
53      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
54
55      for ( const Particle& p : ufs.particles()) {
56        const int id = p.abspid();
57        double xE = p.E()/meanBeamMom;
58        switch (id) {
59        case 313: // Photons
60          _histKstar->fill(xE);
61          break;
62        case 130: case 310:
63          _histK->fill(xE);
64          break;
65	}
66      }
67    }
68
69
70    /// Normalise histograms etc., after the run
71    void finalize() {
72      scale(_histKstar, 1./sumOfWeights());
73      scale(_histK    , 1./sumOfWeights());
74    }
75
76    //@}
77
78
79    /// @name Histograms
80    //@{
81    Histo1DPtr _histKstar;
82    Histo1DPtr _histK    ;
83    //@}
84
85
86  };
87
88
89  // The hook for the plugin system
90  RIVET_DECLARE_PLUGIN(TPC_1984_I205869);
91
92
93}