<commit_before>/*
  .x $NOTES/aux/NimStyle.C(1) 
  NimStyleBig()
  .L $AliPhysics_SRC/PWGPP/TPC/macros/comparePerformanceMaps.C+
  inputFileSelection ="LHC16f.pass1.B0.Bin0:LHC16f.pass1.B0.Bin1:LHC16f.pass1.B0.Bin3:LHC15n.pass4.B1.Bin0:LHC17d1.LHC16f.pass1.B0.Bin0";
  InitTrees(inputFileSelection);  
  
 

 */
#include "TFile.h"
#include "TTree.h"
#include "TPRegexp.h"
#include "TSystem.h"
#include "TStatToolkit.h"
#include "TLegend.h"
#include "TGraph.h"
#include "TStyle.h"

TTree *  InitMapTree(TPRegexp regExp,  TPRegexp notReg, TString axisAlias,  TString axisTitle, TString  inputFileSelection);
TObjArray * samples=new TObjArray(1000);


TPRegexp dummy("^!");
TPRegexp regTreeK0Qpt("hisK0.*proj_0_1");
TPRegexp regTreeNotK0Qpt("hisK0.*(Alpha|DSec)");
TPRegexp regTreeK0QptDSec("hisK0.*QPtTglDSec_1_1_5_1Dist");
TPRegexp regTreeK0Alpha("hisK0.*AlphaDist");
//TPRegexp regTreeDelta("(his|qahis|matchhis).*(Delta|Pull|Covar|ncl|Chi2).*_tglDist");  // regular expression for standard trees
TPRegexp regTreeDelta("(his|qahis|matchhis).*_tglDist$");  // regular expression for standard trees
TPRegexp regTreesmdEdx(".*smdEdxDist$");  // regular expression for standard trees
TPRegexp regTreeNotDeltaInt("his.*(lpha|DSec)");
//
TPRegexp regCovar("hisCovar");
TPRegexp regTreeDeltaAlpha("(his|qahis|matchhis).*alphaVDist$");
TPRegexp regTreeDeltaTrack5("(his|qahis|matchhis)*.*ogTracks5Dist$");
TPRegexp regTreeDeltaDAlphaQ("(his|qahis|matchhis)*.*_dalphaQDist$");

TTree * treeDelta0,  *treeK0proj_0_1,  *treeK0QptDSec, * treeCovar, * treeDeltaAlpha, *treeDeltaDAlphaQ, *treeK0Alpha,*treeLogTrack5;
TTree * treesmdEdx=0;
TCanvas *canvasDrawRec=0;
TCanvas *canvasDrawSquare=0;


void makeCanvas(){
  gStyle->SetTitleOffset(0.8,"Z");
  gStyle->SetTitleOffset(1.3,"X");
  gStyle->SetTitleOffset(1.0,"Y");

  canvasDrawRec = new TCanvas("canvasDrawRec","canvasDrawRec",1100,500);
  canvasDrawRec->SetRightMargin(0.03);
  canvasDrawRec->SetTopMargin(0.03);
  canvasDrawRec->SetBottomMargin(0.15);
  canvasDrawRec->SetLeftMargin(0.1);
  canvasDrawSquare = new TCanvas("canvasDrawSquare","canvasDrawSquare",700,700);  
  canvasDrawSquare->SetTopMargin(0.03);
  canvasDrawSquare->SetRightMargin(0.03);
  canvasDrawSquare->SetBottomMargin(0.15);
  canvasDrawSquare->SetLeftMargin(0.15);

}

void InitTrees(TString  inputFileSelection=""){
  // TString  inputFileSelection ="LHC15o.pass1.B1.Bin3:LHC15o.pass3_lowIR_pidfix.B0.Bin0:LHC16i.TRD0:LHC16i.TRD2:LHC15n.TRD0:LHC15n.TRD2:LHC15n.TRD0"

  treeDelta0= InitMapTree(regTreeDelta,dummy,"qPt:tgl","q/p_{t}(1/GeV):unit",inputFileSelection);
  treesmdEdx= InitMapTree(regTreesmdEdx,dummy,"qPt:tgl","q/p_{t}(1/GeV):unit",inputFileSelection);
  treeK0proj_0_1= InitMapTree(regTreeK0Qpt,regTreeNotK0Qpt , "mpt:tgl","1/p_{t} (1/GeV): tan(#lambda)",inputFileSelection);
  treeK0QptDSec= InitMapTree(regTreeK0QptDSec,dummy , "mpt:side:dsec","1/p_{t} (1/GeV): side:dsec",inputFileSelection);
  treeCovar= InitMapTree(regCovar,dummy , "qPt:tgl","q/p_{t} (1/GeV): tan(#lambda)",inputFileSelection);
  treeDeltaAlpha= InitMapTree(regTreeDeltaAlpha,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):alpha",inputFileSelection);
  treeDeltaDAlphaQ= InitMapTree(regTreeDeltaDAlphaQ,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):dalphaQ",inputFileSelection);
  treeK0Alpha= InitMapTree(regTreeK0Alpha,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):alpha",inputFileSelection);
  treeLogTrack5= InitMapTree(regTreeDeltaTrack5,dummy , "qPt:tgl:logTrack5","q/p_{t} (1/GeV):tan(#lambda):log(1+N_{tracks}/5.)",inputFileSelection);

}<commit_msg>PWGPP-312 -add new maps<commit_after>/*
  .x $NOTES/aux/NimStyle.C(1) 
  NimStyleBig()
  .L $AliPhysics_SRC/PWGPP/TPC/macros/comparePerformanceMaps.C+
  inputFileSelection ="LHC16f.pass1.B0.Bin0:LHC16f.pass1.B0.Bin1:LHC16f.pass1.B0.Bin3:LHC15n.pass4.B1.Bin0:LHC17d1.LHC16f.pass1.B0.Bin0";
  InitTrees(inputFileSelection);  
  
 

 */
#include "TFile.h"
#include "TTree.h"
#include "TPRegexp.h"
#include "TSystem.h"
#include "TStatToolkit.h"
#include "TLegend.h"
#include "TGraph.h"
#include "TStyle.h"

TTree *  InitMapTree(TPRegexp regExp,  TPRegexp notReg, TString axisAlias,  TString axisTitle, TString  inputFileSelection);
TObjArray * samples=new TObjArray(1000);


TPRegexp dummy("^!");
TPRegexp regTreeK0Qpt("hisK0.*proj_0_1");
TPRegexp regTreeNotK0Qpt("hisK0.*(Alpha|DSec)");
TPRegexp regTreeK0QptDSec("hisK0.*QPtTglDSec_1_1_5_1Dist");
TPRegexp regTreeK0Alpha("hisK0.*AlphaDist");
//TPRegexp regTreeDelta("(his|qahis|matchhis).*(Delta|Pull|Covar|ncl|Chi2).*_tglDist");  // regular expression for standard trees
TPRegexp regTreeDelta("(his|qahis|matchhis).*_tglDist$");  // regular expression for standard trees
TPRegexp regTreesmdEdx(".*smdEdxDist$");  // regular expression for standard trees
TPRegexp regTreeNotDeltaInt("his.*(lpha|DSec)");
//
TPRegexp regCovar("hisCovar.*_tglDist$");
TPRegexp regTreeDeltaAlpha("(his|qahis|matchhis).*alphaVDist$");
TPRegexp regTreeDeltaTrack5("(his|qahis|matchhis).*_tgl_LogTracks5Dist$");
TPRegexp regTreeDeltadEdxTrack5("(his|qahis|matchhis).*_smdEdx_LogTracks5Dist$");
TPRegexp regTreeDeltaDAlphaQ("(his|qahis|matchhis)*.*_dalphaQDist$");

TTree * treeDelta0,  *treeK0proj_0_1,  *treeK0QptDSec, * treeCovar, * treeDeltaAlpha, *treeDeltaDAlphaQ, *treeK0Alpha,*treeLogTrack5,*treedEdxLogTrack5;
TTree * treesmdEdx=0;
TCanvas *canvasDrawRec=0;
TCanvas *canvasDrawSquare=0;


void makeCanvas(){
  gStyle->SetTitleOffset(0.8,"Z");
  gStyle->SetTitleOffset(1.3,"X");
  gStyle->SetTitleOffset(1.0,"Y");

  canvasDrawRec = new TCanvas("canvasDrawRec","canvasDrawRec",1100,500);
  canvasDrawRec->SetRightMargin(0.03);
  canvasDrawRec->SetTopMargin(0.03);
  canvasDrawRec->SetBottomMargin(0.15);
  canvasDrawRec->SetLeftMargin(0.1);
  canvasDrawSquare = new TCanvas("canvasDrawSquare","canvasDrawSquare",700,700);  
  canvasDrawSquare->SetTopMargin(0.03);
  canvasDrawSquare->SetRightMargin(0.03);
  canvasDrawSquare->SetBottomMargin(0.15);
  canvasDrawSquare->SetLeftMargin(0.15);

}

void InitTrees(TString  inputFileSelection=""){
  // TString  inputFileSelection ="LHC15o.pass1.B1.Bin3:LHC15o.pass3_lowIR_pidfix.B0.Bin0:LHC16i.TRD0:LHC16i.TRD2:LHC15n.TRD0:LHC15n.TRD2:LHC15n.TRD0"
  // Lpad all trees
  treeDelta0= InitMapTree(regTreeDelta,dummy,"qPt:tgl","q/p_{t}(1/GeV):unit",inputFileSelection);
  treesmdEdx= InitMapTree(regTreesmdEdx,dummy,"qPt:tgl","q/p_{t}(1/GeV):unit",inputFileSelection);
  treeK0proj_0_1= InitMapTree(regTreeK0Qpt,regTreeNotK0Qpt , "mpt:tgl","1/p_{t} (1/GeV): tan(#lambda)",inputFileSelection);
  treeK0QptDSec= InitMapTree(regTreeK0QptDSec,dummy , "mpt:side:dsec","1/p_{t} (1/GeV): side:dsec",inputFileSelection);
  treeCovar= InitMapTree(regCovar,dummy , "qPt:tgl","q/p_{t} (1/GeV): tan(#lambda)",inputFileSelection);
  treeDeltaAlpha= InitMapTree(regTreeDeltaAlpha,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):alpha",inputFileSelection);
  treeDeltaDAlphaQ= InitMapTree(regTreeDeltaDAlphaQ,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):dalphaQ",inputFileSelection);
  treeK0Alpha= InitMapTree(regTreeK0Alpha,dummy , "qPt:tgl:alpha","q/p_{t} (1/GeV):tan(#lambda):alpha",inputFileSelection);
  treeLogTrack5= InitMapTree(regTreeDeltaTrack5,dummy , "qPt:tgl:logTrack5","q/p_{t} (1/GeV):tan(#lambda):log(1+N_{tracks}/5.)",inputFileSelection);
  treedEdxLogTrack5= InitMapTree(regTreeDeltadEdxTrack5,dummy , "qPt:tgl:smdEdx:logTrack5","q/p_{t} (1/GeV):tan(#lambda):sqrt{1/dEdx}:log(1+N_{tracks}/5.)",inputFileSelection);

}
{'fraction_non_alphanumeric': 0.16935806752969437, 'fraction_numerical': 0.04257306819698385, 'mean_word_length': 8.522236340533672, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '2753278', 'n_tokens_mistral': 3240, 'n_tokens_neox': 3116, 'n_words': 320}