Rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

ALEPH_1995_I382179

Inclusive pi+-, K+- and (p, anti-p) differential cross-sections at the Z resonance
Experiment: ALEPH (LEP)
Inspire ID: 382179
Status: VALIDATED
Authors:
• Simone Amoroso
References:
Beams: e+ e-
Beam energies: (45.6, 45.6) GeV
Run details:
• e+e- production at the Z-peak with hadronic decays

Inclusive spectra of pions, Kaons, protons and antiprotons in hadronic decays of the Z0 measured as a function of z.

Source code: ALEPH_1995_I382179.cc
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 // -*- C++ -*- #include "Rivet/Analysis.hh" #include "Rivet/Projections/FinalState.hh" #include "Rivet/Projections/ChargedFinalState.hh" #include "Rivet/Projections/Beam.hh" namespace Rivet { /// @brief ALEPH pi+-, K+-, p and pbar differential cross-sections at the Z peak class ALEPH_1995_I382179 : public Analysis { public: /// Constructor DEFAULT_RIVET_ANALYSIS_CTOR(ALEPH_1995_I382179); /// @name Analysis methods //@{ /// Book histograms and initialise projections before the run void init() { // Initialise and register projections declare(Beam(), "Beams"); declare(ChargedFinalState(), "FS"); // Book histograms _histXpPion = bookHisto1D( 1, 1, 1); _histXpKaon = bookHisto1D( 2, 1, 1); _histXpProton = bookHisto1D( 3, 1, 1); } /// Perform the per-event analysis void analyze(const Event& event) { // Even if we only generate hadronic events, we still need a cut on numCharged >= 2. const FinalState& fs = apply(event, "FS"); if (fs.particles().size() < 2) { MSG_DEBUG("Failed ncharged cut"); vetoEvent; } MSG_DEBUG("Passed ncharged cut"); // Get event weight for histo filling const double weight = event.weight(); // Get beams and average beam momentum const ParticlePair& beams = apply(event, "Beams").beams(); const double meanBeamMom = ( beams.first.p3().mod() + beams.second.p3().mod() ) / 2.0; MSG_DEBUG("Avg beam momentum = " << meanBeamMom); foreach (const Particle& p, fs.particles()) { int id = p.abspid(); // charged pions if (id == PID::PIPLUS || id == PID::PIMINUS) { _histXpPion->fill(p.p3().mod()/meanBeamMom, weight); } else if(id == PID::KPLUS || id == PID::KMINUS) { _histXpKaon->fill(p.p3().mod()/meanBeamMom, weight); } else if(id == PID::PROTON || id == PID::ANTIPROTON) { _histXpProton->fill(p.p3().mod()/meanBeamMom, weight); } } } /// Normalise histograms etc., after the run void finalize() { scale(_histXpPion, 1./sumOfWeights()); scale(_histXpKaon, 1./sumOfWeights()); scale(_histXpProton, 1./sumOfWeights()); } //@} private: /// @name Histograms Histo1DPtr _histXpPion; Histo1DPtr _histXpKaon; Histo1DPtr _histXpProton; }; // The hook for the plugin system DECLARE_RIVET_PLUGIN(ALEPH_1995_I382179); }