<commit_before>void show(const char* fileName = "event_stat.root")
{
  if (TString(fileName).BeginsWith("alien://"))
    TGrid::Connect("alien://");

  TFile::Open(fileName);
  
  c = new TCanvas;
  hist = (TH1*) gFile->Get("physics_selection/fHistStatistics");
  hist->SetStats(0);
  hist->Draw("TEXT");
  c->SetLeftMargin(0.25);
  c->SetBottomMargin(0.2);
  c->SaveAs("stat.png");
  
  c = new TCanvas;
  c->SetLeftMargin(0.25);
  hist = (TH1*) gFile->Get("physics_selection/fHistBunchCrossing");
  hist->SetStats(0);
  hist->Draw("TEXT");
  c->SaveAs("bc.png");
}<commit_msg>displaying bg histograms (Michele)<commit_after>void show(const char* fileName = "event_stat.root")
{
  if (TString(fileName).BeginsWith("alien://"))
    TGrid::Connect("alien://");

  TFile::Open(fileName);
  
  c = new TCanvas;
  hist = (TH1*) gFile->Get("physics_selection/fHistStatistics");
  hist->SetStats(0);
  hist->Draw("TEXT");
  c->SetLeftMargin(0.25);
  c->SetBottomMargin(0.2);
  c->SaveAs("stat.png");
  
  c = new TCanvas;
  c->SetLeftMargin(0.25);
  hist = (TH1*) gFile->Get("physics_selection/fHistBunchCrossing");
  hist->SetStats(0);
  hist->Draw("TEXT");
  c->SaveAs("bc.png");

  // BG
  gStyle->SetStatX(0.87);
  gStyle->SetStatY(0.93);

  TH2F * hBB  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1B-ABCE-NOPF-ALL");
  TH2F * hBE  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1C-ABCE-NOPF-ALL");
  TH2F * hBEA = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1A-ABCE-NOPF-ALL");

  if(!hBB || !hBE || !hBEA) {
    printf("WARNING: no BG histos\n");
  }
  else
  {
    hBE->Add(hBEA);
    hBE->SetTitle("CINT1A-ABCE-NOPF-ALL + CINT1C-ABCE-NOPF-ALL");
    c = new TCanvas("cbg","cbg",800,400);
    c->Divide(2,1);
    c->cd(1);
    hBB->Draw("colz");
    c->cd(2);
    hBE->Draw("colz");
    c->Print("bg.png");
  }
}
{'fraction_non_alphanumeric': 0.21237545883586786, 'fraction_numerical': 0.026743576297850027, 'mean_word_length': 4.256198347107438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 38, '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': '5357774', 'n_tokens_mistral': 803, 'n_tokens_neox': 797, 'n_words': 98}