Rivet analyses


title: MC_HJETS

Monte Carlo validation observables for $h[\tau^+ \, \tau^-]$ + jets production

Experiment: ()

Status: VALIDATED

Authors: - Frank Siegert

References: none listed

Beams: * *

Beam energies: ANY

Run details: - $h [\to \tau^+ \tau^-]$ + jets.

The available observables are the Higgs mass, pT of jets 1--4, jet multiplicity, $\Delta\eta(h, \text{jet1})$, $\Delta R(\text{jet2}, \text{jet3})$, differential jet rates 0->1, 1->2, 2->3, 3->4, and integrated 0--4 jet rates.

Source code:MC_HJETS.cc

```c++ // -- C++ --

include "Rivet/Analyses/MC_JETS_BASE.hh"

include "Rivet/Projections/DileptonFinder.hh"

include "Rivet/Projections/FastJets.hh"

namespace Rivet {

/// @brief MC validation analysis for Higgs [-> tau tau] + jets events class MC_HJETS : public MC_JETS_BASE { public:

/// Default constructor
MC_HJETS()
    : MC_JETS_BASE("MC_HJETS", 4, "Jets") { }


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

/// Book histograms
void init() {
  // set FS cuts from input options
  const double etacut = getOption<double>("ABSETATAUMAX", 3.5);
  const double ptcut = getOption<double>("PTTAUMIN", 25.);

  Cut cut = Cuts::abseta < etacut && Cuts::pT > ptcut * GeV;
  /// @todo Hmm, FS taus??
  DileptonFinder hfinder(125 * GeV, 0.0, cut && Cuts::abspid == PID::TAU,
                         Cuts::massIn(115 * GeV, 135 * GeV));

  declare(hfinder, "Hfinder");

  // set ptcut from input option
  _jetptcut = getOption<double>("PTJMIN", 20.0) * GeV;

  // set clustering radius from input option
  const double R = getOption<double>("R", 0.4);

  // set clustering algorithm from input option
  JetAlg clusterAlgo;
  const string algoopt = getOption("ALGO", "ANTIKT");
  if (algoopt == "KT") {
    clusterAlgo = JetAlg::KT;
  }
  else if (algoopt == "CA") {
    clusterAlgo = JetAlg::CA;
  }
  else if (algoopt == "ANTIKT") {
    clusterAlgo = JetAlg::ANTIKT;
  }
  else {
    MSG_WARNING("Unknown jet clustering algorithm option " + algoopt + ". Defaulting to anti-kT");
    clusterAlgo = JetAlg::ANTIKT;
  }

  FastJets jetpro(hfinder.remainingFinalState(), clusterAlgo, R);
  declare(jetpro, "Jets");

  book(_h_H_jet1_deta, "H_jet1_deta", 50, -5.0, 5.0);
  book(_h_H_jet1_dR, "H_jet1_dR", 25, 0.5, 7.0);

  MC_JETS_BASE::init();
}


/// Do the analysis
void analyze(const Event& e) {
  const DileptonFinder& hfinder = apply<DileptonFinder>(e, "Hfinder");
  if (hfinder.bosons().size() != 1) vetoEvent;

  FourMomentum hmom(hfinder.bosons()[0].momentum());
  const Jets& jets = apply<FastJets>(e, "Jets").jetsByPt(Cuts::pT > _jetptcut);
  if (jets.size() > 0) {
    _h_H_jet1_deta->fill(hmom.eta() - jets[0].eta());
    _h_H_jet1_dR->fill(deltaR(hmom, jets[0].momentum()));
  }

  MC_JETS_BASE::analyze(e);
}


/// Finalize
void finalize() {
  normalize(_h_H_jet1_deta, crossSection() / picobarn);
  normalize(_h_H_jet1_dR, crossSection() / picobarn);
  MC_JETS_BASE::finalize();
}

/// @}

private:

/// @name Histograms
/// @{
Histo1DPtr _h_H_jet1_deta;
Histo1DPtr _h_H_jet1_dR;
/// @}

};

RIVET_DECLARE_PLUGIN(MC_HJETS);

} ```