Rivet analyses

D0 RunI measurement of the Z pT in the electron channel

Experiment: D0 (Tevatron)

Inspire ID: 503361

Status: VALIDATED

Authors: - Simone Amoroso

References: - Phys.Rev. D61 (2000) 032004 - DOI: 10.1103/PhysRevD.61.032004 - arXiv: hep-ex/9907009

Beams: p- p+

Beam energies: (900.0, 900.0)GeV

Run details: - Z → ee event

D0 measurement of the Drell-Yan differential cross section as a function of the transverse momentum in the electron channel. The dielectron invariant mass is required to be between 75 and 105 GeV.

Source code:D0_2000_I503361.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/DileptonFinder.hh"

namespace Rivet {


  /// @brief D0 Run I Z \f$ p_\perp \f$ in Drell-Yan events
  ///
  /// @author Simone Amoroso
  class D0_2000_I503361 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(D0_2000_I503361);


    /// @name Analysis methods
    /// @{

    /// Book histograms and initialise projections before the run
    void init() {

      ///  Initialise and register projections here
      DileptonFinder zfinder(91.2*GeV, 0.0, Cuts::abspid == PID::ELECTRON, Cuts::massIn(75*GeV, 105*GeV));
      declare(zfinder, "DileptonFinder");

      book(_hist_zpt ,1, 1, 1);
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      /// @todo Do the event by event analysis here
      const DileptonFinder& zfinder = apply<DileptonFinder>(event, "DileptonFinder");
      if (zfinder.bosons().size() != 1) {
        MSG_DEBUG("Num e+ e- pairs found = " << zfinder.bosons().size());
        vetoEvent;
      }
      const FourMomentum& pZ = zfinder.bosons()[0].momentum();
      if (pZ.mass2() < 0) {
        MSG_DEBUG("Negative Z mass**2 = " << pZ.mass2()/GeV2 << "!");
        vetoEvent;
      }

      MSG_DEBUG("Dilepton mass = " << pZ.mass()/GeV << " GeV");
      _hist_zpt->fill(pZ.pT());

    }


    /// Normalise histograms etc., after the run
    void finalize() {
      scale(_hist_zpt, crossSection()/picobarn/sumOfWeights());
    }

    /// @}


  private:

    /// @name Histograms
    /// @{
    Histo1DPtr _hist_zpt;
    /// @}


  };



  RIVET_DECLARE_PLUGIN(D0_2000_I503361);

}