<commit_before>
#include "ROOT/TDataFrame.hxx"
#include "TCanvas.h"
#include "TFile.h"

#include "AliAnalysisTaskAO2Dconverter.h"

using namespace ROOT::Experimental; // TDataFrame's namespace

void read()
{
  const Char_t* name = AliAnalysisTaskAO2Dconverter::TreeName[AliAnalysisTaskAO2Dconverter::kTracks];
  TDataFrame d(name, "AO2D.root");
  auto h = d.Define("beta", "fTOFsignal > 0.1 ? fLength/(fTOFsignal * (TMath::C() * 1.e2 / 1.e12)) : -10").Histo2D(::TH2F{ "beta", ";#it{p} (GeV/#it{c});TOF #beta;", 1000, 0.1, 5, 1000, 0, 2 }, "fTPCinnerP", "beta");
  new TCanvas();
  gPad->SetLogz();
  gPad->SetLogx();
  auto hdrawn = h->DrawCopy("COLZ");
  hdrawn->SetDirectory(0);
}
<commit_msg>Fixed reading macro to work with ROOT v6.14<commit_after>
#include "ROOT/RDFHistoModels.hxx"
#include "ROOT/RDataFrame.hxx"
#include "TCanvas.h"
#include "TFile.h"

#include "AliAnalysisTaskAO2Dconverter.h"

#include "AliAnalysisTaskAO2Dconverter.h"

void read()
{
  const Char_t* name = AliAnalysisTaskAO2Dconverter::TreeName[AliAnalysisTaskAO2Dconverter::kTracks];
  ROOT::RDataFrame d(name, "AO2D.root");
  ROOT::RDF::TH2DModel betamodel("beta", ";#it{p} (GeV/#it{c});TOF #beta;", 1000, 0.1, 5, 1000, 0, 2);
  auto h = d.Define("beta", "fTOFsignal > 0.1 ? fLength/(fTOFsignal * (TMath::C() * 1.e2 / 1.e12)) : -10").Histo2D(betamodel, "fTPCinnerP", "beta");
  new TCanvas();
  gPad->SetLogz();
  gPad->SetLogx();
  auto hdrawn = h->DrawCopy("COLZ");
  hdrawn->SetDirectory(0);
}

{'fraction_non_alphanumeric': 0.19444444444444445, 'fraction_numerical': 0.04200542005420054, 'mean_word_length': 5.59375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '44339', 'n_tokens_mistral': 669, 'n_tokens_neox': 604, 'n_words': 113}