2 gROOT->SetStyle("Plain");
6 //open files and get lists
8 TFile f0("QAsym.proof.root");
9 l = (TList *)f0.Get("QAsymHists");
14 for(Int_t sector=0;sector<18;sector++){
15 fHpos[sector]= (TH1F*) l->FindObject(Form("fSignedDcaTpcSector%02d", sector));
20 legp= new TLegend(0.9,0.65,0.65,0.9);
21 legp->SetFillColor(kWhite);
24 fun0= new TF1("fun0","gaus",-5.0,5.0);
25 fun1= new TF1("fun1","gaus",-5.0,5.0);
26 fun0->SetLineColor(kBlack);
27 fun1->SetLineColor(kRed);
29 legp->AddEntry(fun0,"positive","l");
30 legp->AddEntry(fun1,"negative","l");
34 for(Int_t i=0; i<18;i++){
35 fHpos[i]->SetLineColor(kRed);
36 fHpos[i]->SetLineWidth(2);
40 TCanvas * dca = new TCanvas("pt", "pt", 100, 100, 1020, 820);
42 for(Int_t i=0; i<18;i++){
43 // fHpos[i]->Divide(fHpos[0]);
48 // fHpos[i]->SetMaximum(5);
49 // fHpos[i]->SetMinimum(-3);
50 fHpos[i]->SetMaximum(100);
51 fHpos[i]->SetMinimum(1);
53 // fHpos[i]->GetXaxis()->SetRangeUser(-.5,.5);
54 fHpos[i]->SetTitle("");
55 // fHpos[i]->SetXTitle(Form("dca%d / dca0",i));
56 fHpos[i]->SetXTitle(Form("dca%d",i));
58 gPad->SetLeftMargin(0.15);
59 gPad->SetBottomMargin(0.15);
61 fHpos[i]->SetTitleOffset(1., "X");
62 fHpos[i]->SetTitleOffset(1., "Y");
63 fHpos[i]->SetTitleSize(0.08, "X");
64 fHpos[i]->SetTitleSize(0.05, "Y");
65 fHpos[i]->SetLabelSize(0.1, "X");
66 fHpos[i]->SetLabelSize(0.1, "Y");
67 //fHpos[i]->GetXaxis()->SetNdivision(5);
68 fHpos[i]->GetXaxis()->SetNdivisions(5);