Rivet analyses

Measurement of the dineutrino system kinematics in dileptonic top quark pair events in proton-proton collisions at $\sqrt{s} = 13\TeV$

Experiment: CMS (LHC)

Inspire ID: 3006250

Status: VALIDATED

Authors: - Danyer Perez Adan

References: - arXiv: 2510.00160

Beams: p+ p+

Beam energies: (6500.0, 6500.0)GeV

Run details: - Top pair production at $\sqrt(s) = 13$ TeV. Data collected by the CMS experiment during November 2016-2018 (Run 2).

Differential top quark pair production cross sections are measured in the dilepton final states, as a function of kinematic variables of the system of two neutrinos: the transverse momentum of the dineutrino system, the minimum distance in azimuthal angle between the dineutrino system and leptons, and in two dimensions in bins of both observables. The measurements are performed using CERN LHC proton-proton collisions at $\sqrt{s} = 13\text{ TeV}$, recorded by the CMS detector between 2016 and 2018, corresponding to an integrated luminosity of 138 fb$^{-1}$. The measured cross sections are unfolded to the particle level using an unregularized least squares method. The obtained results are found to be in agreement with the latest theory predictions and Monte Carlo simulations.

Source code:

CMS_2025_I3006250.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FastJets.hh"
#include "Rivet/Projections/InvisibleFinalState.hh"
#include "Rivet/Projections/LeptonFinder.hh"
#include "Rivet/Projections/PromptFinalState.hh"
#include "Rivet/Projections/VetoedFinalState.hh"

namespace Rivet {

  /// @brief Dineutrino kinematics in ttbar dilepton events at 13 TeV
  class CMS_2025_I3006250 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(CMS_2025_I3006250);

    void init() {

      // Declare momentum and detector acceptance
      Cut acceptance = Cuts::abseta < 5.0 && Cuts::pT > 0.0*MeV;

      // Get photons to dress leptons
      FinalState photons(Cuts::abspid == PID::PHOTON && acceptance);

      // Projection to find the electrons
      PromptFinalState prompt_el(Cuts::abspid == PID::ELECTRON, TauDecaysAs::PROMPT, MuDecaysAs::PROMPT);
      LeptonFinder elecs(prompt_el, photons, 0.1, (Cuts::abseta < 2.5 && Cuts::pT > 15*GeV));
      declare(elecs, "electrons");

      // Projection to find the muons
      PromptFinalState prompt_mu(Cuts::abspid == PID::MUON, TauDecaysAs::PROMPT, MuDecaysAs::PROMPT);
      LeptonFinder muons(prompt_mu, photons, 0.1, (Cuts::abseta < 2.5 && Cuts::pT > 15*GeV));
      declare(muons, "muons");

      // Projection to find neutrinos
      InvisibleFinalState neutrinos(OnlyPrompt::YES, TauDecaysAs::PROMPT, MuDecaysAs::PROMPT);
      declare(neutrinos, "neutrinos");

      // Projection to find jets
      VetoedFinalState vfs(!acceptance);
      vfs.addVetoOnThisFinalState(elecs);
      vfs.addVetoOnThisFinalState(muons);
      vfs.addVetoOnThisFinalState(neutrinos);
      FastJets jets(vfs, JetAlg::ANTIKT, 0.4, JetMuons::ALL, JetInvisibles::ALL);
      declare(jets, "jets");

      // Book histograms
      vector<double> deltaphi_bins = {0.0, 0.56, 1.08, 3.14};

      book(_h["dinu_pt"], 34, 1, 6);
      book(_h["min_deltaphi"], 35, 1, 6);
      book(_b["dinu_pt_deltaphi"], deltaphi_bins);

      book(_h["dinu_pt_norm"], 39, 1, 6);
      book(_h["min_deltaphi_norm"], 40, 1, 6);
      book(_b["dinu_pt_deltaphi_norm"], deltaphi_bins);

      for (size_t i = 0; i < deltaphi_bins.size() - 1; ++i) {

        book(_b["dinu_pt_deltaphi"]->bin(i + 1), 36 + i, 1, 6);
        book(_b["dinu_pt_deltaphi_norm"]->bin(i + 1), 41 + i, 1, 6);
      }
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {

      // Retrieve dressed leptons, sorted by pT
      const DressedLeptons electrons = apply<LeptonFinder>(event, "electrons").dressedLeptons();
      const DressedLeptons muons = apply<LeptonFinder>(event, "muons").dressedLeptons();
      const DressedLeptons leptons = electrons + muons;

      // Veto event if there are not two leptons
      if (leptons.size() != 2) vetoEvent;

      // Veto event if two leptons have same charge
      if (leptons.at(0).charge() == leptons.at(1).charge()) vetoEvent;

      // Veto event if two leptons do not pass pt and eta requirements
      if (leptons.at(0).pT() < 20*GeV || leptons.at(0).abseta() > 2.4) vetoEvent;
      if (leptons.at(1).pT() < 20*GeV || leptons.at(1).abseta() > 2.4) vetoEvent;

      // Veto event if any of the leptons is from a tau
      if (leptons.at(0).fromTau() || leptons.at(1).fromTau()) vetoEvent;

      // Retrieve neutrinos, sorted by pT
      const Particles neutrinos = apply<InvisibleFinalState>(event, "neutrinos")
                                      .particlesByPt(Cuts::abseta < 5.0);

      // Retrieve clustered jets, sorted by pT, with a minimum pT cut
      Jets jets = apply<FastJets>(event, "jets").jetsByPt(Cuts::pT > 30*GeV && Cuts::abseta < 2.4);

      // Remove all jets within dR < 0.4 of a dressed lepton
      idiscardIfAnyDeltaRLess(jets, leptons, 0.4);

      // Select jets ghost-associated to B-hadrons with a certain fiducial selection
      Jets bjets = select(jets, [](const Jet& jet) { return jet.bTagged(); });

      // Veto event if there are less than 2 neutrinos
      if (neutrinos.size() < 2) vetoEvent;

      // Veto event if there are less than 2 b-jets
      if (bjets.size() < 2) vetoEvent;

      // Sum of neutrino momentum
      FourMomentum nunu;
      for (const Particle& p : neutrinos) nunu += p.momentum();
      FourMomentum ll = leptons.at(0).momentum() + leptons.at(1).momentum();

      // Invariant mass dilepton cut
      if (ll.mass() < 20*GeV) vetoEvent;

      // Store Pt NuNu
      double dinu_pt = nunu.pT();

      // Pt dineutrino in same-flavor channels
      if (muons.size() == 2 || electrons.size() == 2)
        if (dinu_pt < 40*GeV) vetoEvent;

      // Store DeltaPhi for each lepton and compute min[\Delta\phi(p_{\nu\nu},l)]
      vector<double> deltaphis{0., 0.};
      deltaphis.at(0) = deltaPhi(nunu, leptons.at(0));
      deltaphis.at(1) = deltaPhi(nunu, leptons.at(1));
      double min_deltaphi = min(deltaphis);

      // Handle overflow
      double dinu_pt_1d = min(dinu_pt, max_dinu_pt_1d);
      double dinu_pt_2d = min(dinu_pt, max_dinu_pt_2d);
      min_deltaphi = min(min_deltaphi, max_min_deltaphi);

      // Fill histograms
      _h["dinu_pt"]->fill(dinu_pt_1d / GeV);
      _h["dinu_pt_norm"]->fill(dinu_pt_1d / GeV);

      _h["min_deltaphi"]->fill(min_deltaphi);
      _h["min_deltaphi_norm"]->fill(min_deltaphi);

      _b["dinu_pt_deltaphi"]->fill(min_deltaphi, dinu_pt_2d / GeV);
      _b["dinu_pt_deltaphi_norm"]->fill(min_deltaphi, dinu_pt_2d / GeV);
    }


    /// Normalise histograms etc., after the run
    void finalize() {

      // norm to generated cross-section in pb (after cuts)
      scale(_h["dinu_pt"], crossSection() / picobarn / sumW());
      scale(_h["min_deltaphi"], crossSection() / picobarn / sumW());
      scale(_b["dinu_pt_deltaphi"], crossSection() / picobarn / sumW());

      // normalize to unity
      normalize(_h["dinu_pt_norm"]);
      normalize(_h["min_deltaphi_norm"]);
      normalizeGroup(_b["dinu_pt_deltaphi_norm"]);
    }

    /// @}


    /// @name Histograms
    /// @{
    map<string, Histo1DPtr> _h;
    map<string, Histo1DGroupPtr> _b;
    /// @}
    const double max_dinu_pt_1d = 499.99;
    const double max_dinu_pt_2d = 399.99;
    const double max_min_deltaphi = 3.1399;
  };


  RIVET_DECLARE_PLUGIN(CMS_2025_I3006250);

}