Rivet analyses
Study of the b-quark fragmentation function at LEP 1
Experiment: DELPHI (LEP 1)
Inspire ID: 1660220
Status: OBSOLETE
Authors: - Hendrik Hoeth
References: - DELPHI note 2002-069-CONF-603 (ICHEP 2002)
Beams: e+ e-
Beam energies: (45.6, 45.6)GeV
Run details: - Hadronic Z decay events generated on the Z pole ($\sqrt{s} = 91.2$ GeV)
Measurement of the b-quark fragmentation function by DELPHI using 1994 LEP 1 data. The fragmentation function for both weakly decaying and primary b-quarks has been determined in a model independent way. Nevertheless the authors trust f(xBweak) more than f(xBprim). Note — this analysis is superseded by DELPHI_2011_I890503.
Source
code:DELPHI_2002_069_CONF_603.cc
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
namespace Rivet {
/// @brief DELPHI b-fragmentation measurement
/// @author Hendrik Hoeth
class DELPHI_2002_069_CONF_603 : public Analysis {
public:
/// Constructor
DELPHI_2002_069_CONF_603()
: Analysis("DELPHI_2002_069_CONF_603")
{ }
/// @name Helper functions
/// @note The PID:: namespace functions would be preferable, but don't have exactly the same behaviour. Preserving the original form.
/// @{
bool isParton(int id) { return abs(id) <= 100 && abs(id) != 22 && (abs(id) < 11 || abs(id) > 18); }
// bool isBHadron(int id) { return ((abs(id)/100)%10 == 5) || (abs(id) >= 5000 && abs(id) <= 5999); }
/// @}
/// @name Analysis methods
/// @{
/// Book projections and histograms
void init() {
declare(Beam(), "Beams");
declare(ChargedFinalState(), "FS");
book(_histXbprim ,1, 1, 1);
book(_histXbweak ,2, 1, 1);
book(_histMeanXbprim ,4, 1, 1);
book(_histMeanXbweak ,5, 1, 1);
}
void analyze(const Event& e) {
const FinalState& fs = apply<FinalState>(e, "FS");
const size_t numParticles = fs.particles().size();
// Even if we only generate hadronic events, we still need a cut on numCharged >= 2.
if (numParticles < 2) {
MSG_DEBUG("Failed ncharged cut");
vetoEvent;
}
MSG_DEBUG("Passed ncharged cut");
// Get beams and average beam momentum
const ParticlePair& beams = apply<Beam>(e, "Beams").beams();
const double meanBeamMom = ( beams.first.p3().mod() +
beams.second.p3().mod() ) / 2.0;
MSG_DEBUG("Avg beam momentum = " << meanBeamMom);
for (ConstGenParticlePtr p : HepMCUtils::particles(e.genEvent())) {
ConstGenVertexPtr pv = p->production_vertex();
ConstGenVertexPtr dv = p->end_vertex();
if (PID::isBottomHadron(p->pdg_id())) {
const double xp = p->momentum().e()/meanBeamMom;
// If the B-hadron has a parton as parent, call it primary B-hadron:
if (pv) {
bool is_primary = false;
for (ConstGenParticlePtr pp: HepMCUtils::particles(pv, Relatives::PARENTS)){
if (isParton(pp->pdg_id())) is_primary = true;
}
if (is_primary) {
_histXbprim->fill(xp);
_histMeanXbprim->fill(_histMeanXbprim->bin(0).xMid(), xp);
}
}
// If the B-hadron has no B-hadron as a child, it decayed weakly:
if (dv) {
bool is_weak = true;
for (ConstGenParticlePtr pp: HepMCUtils::particles(dv, Relatives::CHILDREN)){
if (PID::isBottomHadron(pp->pdg_id())) {
is_weak = false;
}
}
if (is_weak) {
_histXbweak->fill(xp);
_histMeanXbweak->fill(_histMeanXbweak->bin(0).xMid(), xp);
}
}
}
}
}
// Finalize
void finalize() {
normalize(_histXbprim);
normalize(_histXbweak);
}
private:
/// Store the weighted sums of numbers of charged / charged+neutral
/// particles - used to calculate average number of particles for the
/// inclusive single particle distributions' normalisations.
Histo1DPtr _histXbprim;
Histo1DPtr _histXbweak;
Profile1DPtr _histMeanXbprim;
Profile1DPtr _histMeanXbweak;
/// @}
};
RIVET_DECLARE_PLUGIN(DELPHI_2002_069_CONF_603);
}