3 histo->SetLineColor(kBlack);
5 TF1 *fExpo =
new TF1(
"fExpo",
"expo",0,100);
6 fExpo->SetLineColor(kRed);
7 fExpo->SetLineWidth(2);
8 histo->Fit(
"fExpo",
"RQ");
10 fExpo->GetParameter(
"Slope");
14 std::cout << std::setw(15) << ::std::setprecision( 4 )<< 1/fExpo->GetParameter(
"Slope") ;
15 std::cout << std::setw(15)<< ::std::setprecision( 4 ) << fExpo->GetParError(fExpo->GetParNumber(
"Slope"));
16 std::cout << std::setw(15)<< ::std::setprecision( 4 ) << fExpo->GetChisquare();
17 std::cout << std::setw(5)<< fExpo->GetNDF() ;
18 std::cout << std::setw(15)<<
"="<<fExpo->GetChisquare()/fExpo->GetNDF() ;
19 std::cout << std::setw(15)<< ::std::setprecision( 4 ) << histo->GetNbinsX() << std::endl;
21 TPaveText *
pt =
new TPaveText(44.5781,59.32019,104.1472,206.744,
"");
22 pt->UseCurrentStyle();
23 pt->SetFillColor(kWhite);
27 std::stringstream virtualString;
28 virtualString<<
"c#tau = ";
29 virtualString<<
TMath::Abs(1/fExpo->GetParameter(
"Slope"));
30 virtualString<<
"#pm";
32 virtualString<<
TMath::Abs(1/fExpo->GetParameter(
"Slope"))*
TMath::Abs(1/fExpo->GetParameter(
"Slope"))*fExpo->GetParError(fExpo->GetParNumber(
"Slope"));
33 virtualString<<
" cm";
34 TString bTagisGreaterThanSTRING = virtualString.str();
36 pt->AddText(bTagisGreaterThanSTRING.Data() );
52 TLine *Disk1 =
new TLine(2,0,2,3.656);
53 Disk1->SetLineWidth(linewidth);
56 TLine *Disk2 =
new TLine(4,0,4,3.656);
57 Disk2->SetLineWidth(linewidth);
60 TLine *Disk3 =
new TLine(7,0,7,7.393);
61 Disk3->SetLineWidth(linewidth);
64 TLine *Disk4 =
new TLine(10,0,10,7.393);
65 Disk4->SetLineWidth(linewidth);
68 TLine *Disk5 =
new TLine(16,0,16,13.115);
69 Disk5->SetLineWidth(linewidth);
72 TLine *Disk6 =
new TLine(23,0,23,13.115);
73 Disk6->SetLineWidth(linewidth);
76 TLine *Barrel1 =
new TLine(0,2.5,0.98,2.5);
77 Barrel1->SetLineWidth(linewidth);
80 TLine *Barrel2 =
new TLine(0,5,5.78,5);
81 Barrel2->SetLineWidth(linewidth);
84 TLine *Barrel3 =
new TLine(0,9.5,13.9,9.5);
85 Barrel3->SetLineWidth(linewidth);
88 TLine *Barrel4 =
new TLine(0,13.5,13.9,13.5);
89 Barrel4->SetLineWidth(linewidth);
97 TLine *LambdaDisk1 =
new TLine(40,0,40,13.115);
98 LambdaDisk1->SetLineWidth(linewidth);
101 TLine *LambdaDisk2 =
new TLine(60,0,60,13.115);
102 LambdaDisk2->SetLineWidth(linewidth);
111 TLine *LambdaDisk1 =
new TLine(37,0,37,13.115);
112 LambdaDisk1->SetLineWidth(linewidth);
115 TLine *LambdaDisk2 =
new TLine(43,0,43,13.115);
116 LambdaDisk2->SetLineWidth(linewidth);
125 TLine *LambdaDisk1 =
new TLine(57,0,57,13.115);
126 LambdaDisk1->SetLineWidth(linewidth);
129 TLine *LambdaDisk2 =
new TLine(63,0,63,13.115);
130 LambdaDisk2->SetLineWidth(linewidth);
139 TLine *LambdaDisk1 =
new TLine(77,0,77,13.115);
140 LambdaDisk1->SetLineWidth(linewidth);
143 TLine *LambdaDisk2 =
new TLine(83,0,83,13.115);
144 LambdaDisk2->SetLineWidth(linewidth);
156 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
158 gROOT->LoadMacro(
"$VMCWORKDIR/macro/mvd/Tools.C");
159 gROOT->SetStyle(
"Plain");
160 gStyle->SetOptStat(
"e");
161 gStyle->SetOptFit(1111);
162 gStyle->SetPalette(1);
171 std::cout <<
"creator.GetCustomFileName('ana')" <<
creator.GetCustomFileName(
"ana") << std::endl;
174 TFile*
f =
new TFile(inFile.c_str());
178 TCanvas* canvas =
new TCanvas(
"canvas",
"Results");
237 TH2F* fPositionDecayVertexLambdaLambdaBar2D = (TH2F*)f->Get(
"fPositionDecayVertexLambdaLambdaBar2D");
251 TH1I* fMVDPointsPerTrackTotal = (TH1I*)f->Get(
"fMVDPointsPerTrackTotal");
252 TH1I* fMVDPointsPerTrackTotalWithLambda = (TH1I*)f->Get(
"fMVDPointsPerTrackTotalWithLambda");
300 TH1F* fDecayLength= (TH1F*)f->Get(
"fMeanLifeLambdaCMS");
301 TH1F* blubb = fDecayLength->Rebin(2,
"blubb");
302 TH1F* blubb1 = fDecayLength->Rebin(2,
"blubb1");
303 TH1F* blubb2 = blubb1->Rebin(2,
"blubb2");
304 TH1F* blubb3 = blubb2->Rebin(2,
"blubb3");
305 TH1F* blubb4 = blubb3->Rebin(2,
"blubb4");
306 TH1F* blubb5 = blubb4->Rebin(2,
"blubb5");
307 TH1F* blubb6 = blubb5->Rebin(2,
"blubb6");
308 TH1F* blubb7 = blubb6->Rebin(2,
"blubb7");
309 TH1F* blubb8 = blubb7->Rebin(2,
"blubb8");
311 std::cout << std::setw(15);
312 std::cout <<
"Slope ";
313 std::cout << std::setw(15);
314 std::cout <<
"Error ";
315 std::cout << std::setw(15);
316 std::cout<<
"Chi quadrat/NDG ";
317 std::cout << std::setw(15);
318 std::cout<<
"Chi quadrat/NDG ";
319 std::cout << std::setw(15);
320 std::cout <<
"NBins " << std::endl;
353 gStyle->SetOptStat(110);
354 fMVDPointsPerTrackTotal->Draw();
356 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotal.pdf",
"pdf");
357 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotal.eps",
"eps");
361 gStyle->SetOptStat(110);
362 fMVDPointsPerTrackTotalWithLambda->Draw();
363 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotalWithLambda.pdf",
"pdf");
364 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotalWidthLambda.eps",
"eps");
366 gStyle->SetOptStat(10);
367 fMVDPointsPerTrackTotal->GetXaxis()->SetRange(0,12);
368 fMVDPointsPerTrackTotal->SetLineColor(2);
369 fMVDPointsPerTrackTotal->SetLineWidth(2);
370 fMVDPointsPerTrackTotal->Draw();
372 fMVDPointsPerTrackTotalWithLambda->Draw(
"SAME");
373 fMVDPointsPerTrackTotalWithLambda->SetLineWidth(2);
377 TLegend* legend = gPad->BuildLegend(0.5204598,0.5529661,0.9897701,0.7627119);
378 legend->SetFillColor(0);
380 fMVDPointsPerTrackTotal->SetTitle(
"#Hits/Track with and without #Lambda-Disks");
382 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotalcomparison.pdf",
"pdf");
383 gPad->Print(
"result_pictures/fMVDPointsPerTrackTotalcomparison.eps",
"eps");
385 TCanvas* canvas3 =
new TCanvas(
"canvas3",
"Results", 900,400);
388 fPositionDecayVertexLambdaLambdaBar2D->Draw(
"colz");
392 gPad->Print(
"result_pictures/PositionDecayVertexLambdaLambdabarPosition0.eps",
"eps");
395 fPositionDecayVertexLambdaLambdaBar2D->Draw(
"colz");
398 gPad->Print(
"result_pictures/PositionDecayVertexLambdaLambdabarPosition1.eps",
"eps");
401 fPositionDecayVertexLambdaLambdaBar2D->Draw(
"colz");
404 gPad->Print(
"result_pictures/PositionDecayVertexLambdaLambdabarPosition2.eps",
"eps");
407 fPositionDecayVertexLambdaLambdaBar2D->Draw(
"colz");
410 gPad->Print(
"result_pictures/PositionDecayVertexLambdaLambdabarPosition3.eps",
"eps");
590 cout << endl << endl;
591 cout <<
"Macro finished succesfully." << endl;
592 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
TString pt(TString pts, TString exts="px py pz")
void DrawLambdaDiskPosition2()
void DrawLambdaDiskPosition3()
void ctauhistogramm(TH1F *histo, TString savefile)
A simple class which adds the corresponding file extensions to a given base class.
PndMvdCreateDefaultApvMap * creator
void DrawLambdaDiskPosition0()
void DrawLambdaDiskPosition1()
int run_beautiful_ana_result_histograms(TString FileName="test")