rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

MC_ZINC

Monte Carlo validation observables for $Z[\ell^+ \, \ell^-]$ production
Experiment: ()
Status: VALIDATED
Authors:
  • Frank Siegert
  • Christian Gutschow
No references listed
Beams: * *
Beam energies: ANY
Run details:
  • $\ell^+ \ell^-$ analysis. Needs mass cut on lepton pair to avoid photon singularity, e.g. a min range of $66 < m_{ll} < 116$ GeV

Monte Carlo validation observables for $Z[\ell^+ \, \ell^-]$ production

Source code: MC_ZINC.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/DileptonFinder.hh"
  4
  5namespace Rivet {
  6
  7
  8  /// @brief MC validation analysis for Z events
  9  class MC_ZINC : public Analysis {
 10  public:
 11
 12    /// Default constructor
 13    RIVET_DEFAULT_ANALYSIS_CTOR(MC_ZINC);
 14
 15    /// @name Analysis methods
 16    /// @{
 17
 18    /// Book histograms
 19    void init() {
 20		  _dR=0.2;
 21      if (getOption("SCHEME") == "BARE")  _dR = 0.0;
 22		  _lepton=PID::ELECTRON;
 23      if (getOption("LMODE") == "MU")  _lepton = PID::MUON;
 24
 25      // set FS cuts from input options
 26      const double etacut = getOption<double>("ABSETALMAX", 3.5);
 27      const double ptcut = getOption<double>("PTLMIN", 25.);
 28
 29      Cut cut = Cuts::abseta < etacut && Cuts::pT > ptcut*GeV;
 30      DileptonFinder zfinder(91.2*GeV, _dR, cut && Cuts::abspid == _lepton, Cuts::massIn(66.0*GeV, 116.0*GeV));
 31      declare(zfinder, "DileptonFinder");
 32
 33      book(_h_Z_mass ,"Z_mass", 50, 66.0, 116.0);
 34      book(_h_Z_pT ,"Z_pT", logspace(100, 1.0, 0.5*(sqrtS()>0.?sqrtS():14000.)/GeV));
 35      book(_h_Z_pT_peak ,"Z_pT_peak", 25, 0.0, 25.0);
 36      book(_h_Z_y ,"Z_y", 40, -4.0, 4.0);
 37      book(_h_Z_phi ,"Z_phi", 25, 0.0, TWOPI);
 38      book(_h_lepton_pT ,"lepton_pT", logspace(100, 10.0, 0.25*(sqrtS()>0.?sqrtS():14000.)/GeV));
 39      book(_h_lepton_eta ,"lepton_eta", 40, -4.0, 4.0);
 40    }
 41
 42
 43    /// Do the analysis
 44    void analyze(const Event & e) {
 45      const DileptonFinder& zfinder = apply<DileptonFinder>(e, "DileptonFinder");
 46      if (zfinder.bosons().size() != 1) vetoEvent;
 47
 48      FourMomentum zmom(zfinder.bosons()[0].momentum());
 49      _h_Z_mass->fill(zmom.mass()/GeV);
 50      _h_Z_pT->fill(zmom.pT()/GeV);
 51      _h_Z_pT_peak->fill(zmom.pT()/GeV);
 52      _h_Z_y->fill(zmom.rapidity());
 53      _h_Z_phi->fill(zmom.phi());
 54      for (const Particle& l : zfinder.constituents()) {
 55        _h_lepton_pT->fill(l.pT()/GeV);
 56        _h_lepton_eta->fill(l.eta());
 57      }
 58    }
 59
 60
 61    /// Finalize
 62    void finalize() {
 63      const double s = crossSection()/picobarn/sumOfWeights();
 64      scale(_h_Z_mass, s);
 65      scale(_h_Z_pT, s);
 66      scale(_h_Z_pT_peak, s);
 67      scale(_h_Z_y, s);
 68      scale(_h_Z_phi, s);
 69      scale(_h_lepton_pT, s);
 70      scale(_h_lepton_eta, s);
 71    }
 72
 73    /// @}
 74
 75
 76  protected:
 77
 78    /// @name Parameters for specialised e/mu and dressed/bare subclassing
 79    /// @{
 80    double _dR;
 81    PdgId _lepton;
 82    /// @}
 83
 84
 85  private:
 86
 87    /// @name Histograms
 88    /// @{
 89    Histo1DPtr _h_Z_mass;
 90    Histo1DPtr _h_Z_pT;
 91    Histo1DPtr _h_Z_pT_peak;
 92    Histo1DPtr _h_Z_y;
 93    Histo1DPtr _h_Z_phi;
 94    Histo1DPtr _h_lepton_pT;
 95    Histo1DPtr _h_lepton_eta;
 96    /// @}
 97
 98  };
 99
100
101  RIVET_DECLARE_PLUGIN(MC_ZINC);
102
103}