Rivet analyses
Charged Hadron multiplicity at 29 GeV
Experiment: HRS (PEP)
Inspire ID: 18502
Status: VALIDATED
Authors: - Peter Richardson
References: - Phys.Rev. D34 (1986) 3304
Beams: e+ e-
Beam energies: (14.5, 14.5)GeV
Run details: - Hadronic e+e- events at $\sqrt{s} = 29.$ GeV
The charged particle multiplicity distribution of hadronic e+e− events, as measured at $\sqrt{s} = 29.$ GeV using the HRS detector at PEP.
Source
code:HRS_1986_I18502.cc
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
namespace Rivet {
/// @brief Charged hadron multiplicity at 29 GeV from HRS experiment
class HRS_1986_I18502 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(HRS_1986_I18502);
/// @name Analysis methods
/// @{
/// Book histograms and initialise projections before the run
void init() {
const ChargedFinalState cfs;
declare(cfs, "CFS");
book(_histChTot, 1, 1, 1);
book(_histAver, 3, 1, 1);
}
/// Perform the per-event analysis
void analyze(const Event& event) {
const FinalState& cfs = apply<FinalState>(event, "CFS");
MSG_DEBUG("Total charged multiplicity = " << cfs.size());
_histChTot->fill(cfs.size());
_histAver->fill(29, cfs.size());
}
/// Normalise histograms etc., after the run
void finalize() {
scale(_histChTot, 100.0/sumOfWeights()); // and %age (100)
}
/// @}
private:
/// @name Histograms
/// @{
BinnedHistoPtr<int> _histChTot;
BinnedProfilePtr<int> _histAver;
/// @}
};
RIVET_DECLARE_PLUGIN(HRS_1986_I18502);
}