AliPhysics  9b6b435 (9b6b435)
Final.C
Go to the documentation of this file.
1 void
2 Final(Bool_t reweighed=false)
3 {
4  Int_t run = 245064;
5  const char* mcPer = "LHC15k1_plus21";
6  const char* dtPer = "LHC15o";
7  const char* mcPst = (reweighed ? "_reweighted" : "");
8  const char* prefi = (reweighed ? "reweighed" : "normal");
9  TString dtIn;
10  TString mcIn;
11  TString dOut;
12  dtIn.Form("%s_%d_tracklets/root_archive_%09d/trdt.root",dtPer,run,run);
13  mcIn.Form("%s_%d_tracklets%s/root_archive_%06d/trmc.root",
14  mcPer,run,mcPst,run);
15  dOut.Form("%sResult/TRACKLETS_05023_PbPb.input", prefi);
16  TString rout;
17  rout.Form("PbPb5023midRapidity%s.root", reweighed ? "Reweighed" : "Normal");
18 
19  gROOT->LoadMacro("SaveCanvas.C+g");
20  gROOT->LoadMacro("CorrectSpectraMultiMCBG.C+g");
21  gSystem->mkdir("corrFig");
22  gSystem->mkdir("corrRes");
23 
24  CorrectSpectraMultiMCBG(dtIn, mcIn, "PbPb", 9, false);
25 
26  gROOT->LoadMacro("Extract.C");
27  Extract("corrRes/PbPb_9bins_CutEta-2.0_2.0_Zv-15.0_15.0_bg_Shape_wdst_mcLB2_cutSig1.5_cutBg5.0.root","corrRes/TRACKLETS_05023_PbPb.input",reweighed);
28 
29  gSystem->Rename("corrFig", Form("%sFigures", prefi));
30  gSystem->Rename("corrRes", Form("%sResult", prefi));
31 
32  gROOT->LoadMacro("$ANA_SRC/dndeta/QuickDraw.C");
33  const char* what[] = {
34  // dOut.Data(),
35  rout.Data(),
36  "../../data_repo/other/fwd/PbPb_05023_CENT.root",
37  0 };
38  QuickDraw(what);
39 
40  gPad->SaveAs(Form("dNdeta_05023_%s.pdf",
41  reweighed ? "Reweighed" : "Normal"));
42 }
void Extract()
Definition: Extract.C:111
TSystem * gSystem
int Int_t
Definition: External.C:63
void CorrectSpectraMultiMCBG(const char *flNameData, const char *flNameMC, const char *unique="", int maxBins=10, Bool_t waitForUser=false, const char *bgType="Comb")
void Final(Bool_t reweighed=false)
Definition: Final.C:2
void QuickDraw()
Definition: QuickDraw.C:161
bool Bool_t
Definition: External.C:53