1 void DrawTestAbso(Text_t *FileName = "MUONTestAbso")
3 // FileName : name of the input file (.root)
4 // Draw histograms to test the absorber correction (mean energy loss + Branson correction)
5 // MUONTestAbso.root can be produced by the mean of the macro MUONTestAbso.C
8 strcat(FileName,".root");
9 TFile *hfile = (TFile*)gROOT->FindObject(FileName);
10 if (hfile) hfile->Close();
11 TFile *fill = new TFile(FileName);
14 gStyle->SetOptStat(11111111);
18 TCanvas *c1 = new TCanvas("c1",FileName, 250, 20, 800, 820);
19 c1->GetFrame()->SetBorderSize(6);
20 c1->GetFrame()->SetBorderMode(-1);
24 TPad *pad1 = new TPad("pad1", "The pad with the Histo", 0.01, 0.01, 0.99, 0.99, 21);
30 pad1->SetFillColor(22);
31 pad1->GetFrame()->SetBorderMode(-1);
34 TPad *pad2 = new TPad("pad2", "The pad with the Histo", 0.01, 0.01, 0.99, 0.99, 21);
40 pad2->SetFillColor(22);
41 pad2->GetFrame()->SetBorderMode(-1);
45 TCanvas *c2 = new TCanvas("c2",FileName, 200, 10, 800, 820);
46 c2->GetFrame()->SetBorderSize(6);
47 c2->GetFrame()->SetBorderMode(-1);
51 TPad *pad3 = new TPad("pad3", "The pad with the Histo", 0.01, 0.01, 0.99, 0.99, 21);
57 pad3->SetFillColor(22);
58 pad3->GetFrame()->SetBorderMode(-1);
61 TPad *pad4 = new TPad("pad4", "The pad with the Histo", 0.01, 0.01, 0.99, 0.99, 21);
67 pad4->SetFillColor(22);
68 pad4->GetFrame()->SetBorderMode(-1);
71 TCanvas *c3 = new TCanvas("c3",FileName, 150, 5, 800, 700);
73 c3->GetFrame()->SetBorderSize(6);
74 c3->GetFrame()->SetBorderMode(-1);
76 TPad *pad5 = new TPad("pad5", "The pad with the Histo", 0.01, 0.01, 0.99, 0.99, 21);
81 pad5->SetFillColor(22);
82 pad5->GetFrame()->SetBorderMode(-1);
84 g1= new TF1("g1","gaus",9.3,9.8) ; // 9.25
85 hInvMassRes->Fit("g1","RQ");
86 hInvMassRes->GetXaxis()->SetTitleFont(20);
87 hInvMassRes->SetXTitle("Mass (GeV/c^2!)");
88 hInvMassRes->SetFillColor(63);