Skip to content
Snippets Groups Projects
Commit 08e033a3 authored by Viktor Klochkov's avatar Viktor Klochkov :eyes:
Browse files

update

parent f34be631
No related branches found
No related tags found
No related merge requests found
Showing
with 51489 additions and 21 deletions
source diff could not be displayed: it is too large. Options to address this: view the blob.
File added
File added
File added
source diff could not be displayed: it is too large. Options to address this: view the blob.
File added
File added
void plot_centrality()
{
const TString filename = "dcm_m_b.root";
Helper::Canvas t;
t.AddLabel("CBM simulation, GEANT4");
t.AddLabel("DCM-QGSM");
t.AddLabel("Au+Au @ 10#it{A} GeV/#it{c}");
t.SetCanvasSize(1800, 1200);
t.SetLabelPosition(0.5, 0.87);
t.Init(-0.1, 400, 0, 18, "", "Multiplicity", "b (fm)", false);
std::unique_ptr <TFile> file {TFile::Open(filename, "read")};
TH2D h_m_b = *((TH2D*)(file->Get("h5"))) ;
h_m_b.SetTitle("");
t.Add2DHisto( h_m_b);
t.DrawAll();
t.Save("dcm_m_b", {"pdf", "C", "png"});
}
{
gSystem->Load("/home/vklochkov/Soft/PlotsMaker/build/libPlotter.so");
}
File added
File added
void PSD1_X()
{
//=========Macro generated from canvas: c/
//========= (Tue Apr 23 16:28:46 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,1000,1200);
//========= (Wed Nov 13 12:07:29 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",50,114,800,800);
gStyle->SetOptStat(0);
c->Range(0,0,1,1);
c->SetFillColor(0);
......@@ -14,7 +14,7 @@ void PSD1_X()
c->SetBottomMargin(0.13);
c->SetFrameBorderMode(0);
TH1F *h__1 = new TH1F("h__1","",1,0,100);
TH1F *h__1 = new TH1F("h__1","",1,0,55);
h__1->SetMinimum(0);
h__1->SetMaximum(0.12);
h__1->SetStats(0);
......@@ -24,7 +24,7 @@ void PSD1_X()
ci = TColor::GetColor("#000099");
h__1->SetLineColor(ci);
h__1->SetLineWidth(0);
h__1->GetXaxis()->SetTitle("PSD centrality");
h__1->GetXaxis()->SetTitle("PSD centrality (%)");
h__1->GetXaxis()->SetRange(1,1);
h__1->GetXaxis()->SetNdivisions(505);
h__1->GetXaxis()->SetLabelFont(42);
......
No preview for this file type
void PSD1_Y()
{
//=========Macro generated from canvas: c/
//========= (Tue Apr 23 16:28:46 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,1000,1200);
//========= (Wed Nov 13 12:07:30 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,800,800);
gStyle->SetOptStat(0);
c->Range(0,0,1,1);
c->SetFillColor(0);
......@@ -14,9 +14,9 @@ void PSD1_Y()
c->SetBottomMargin(0.13);
c->SetFrameBorderMode(0);
TH1F *h__2 = new TH1F("h__2","",1,0,100);
TH1F *h__2 = new TH1F("h__2","",1,0,55);
h__2->SetMinimum(0);
h__2->SetMaximum(0.17);
h__2->SetMaximum(0.18);
h__2->SetStats(0);
Int_t ci; // for color index setting
......@@ -24,7 +24,7 @@ void PSD1_Y()
ci = TColor::GetColor("#000099");
h__2->SetLineColor(ci);
h__2->SetLineWidth(0);
h__2->GetXaxis()->SetTitle("PSD centrality");
h__2->GetXaxis()->SetTitle("PSD centrality (%)");
h__2->GetXaxis()->SetRange(1,1);
h__2->GetXaxis()->SetNdivisions(505);
h__2->GetXaxis()->SetLabelFont(42);
......
No preview for this file type
void PSD2_X()
{
//=========Macro generated from canvas: c/
//========= (Tue Apr 23 16:28:46 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,1000,1200);
//========= (Wed Nov 13 12:07:30 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,800,800);
gStyle->SetOptStat(0);
c->Range(0,0,1,1);
c->SetFillColor(0);
......@@ -14,7 +14,7 @@ void PSD2_X()
c->SetBottomMargin(0.13);
c->SetFrameBorderMode(0);
TH1F *h__3 = new TH1F("h__3","",1,0,100);
TH1F *h__3 = new TH1F("h__3","",1,0,55);
h__3->SetMinimum(0);
h__3->SetMaximum(0.24);
h__3->SetStats(0);
......@@ -24,7 +24,7 @@ void PSD2_X()
ci = TColor::GetColor("#000099");
h__3->SetLineColor(ci);
h__3->SetLineWidth(0);
h__3->GetXaxis()->SetTitle("PSD centrality");
h__3->GetXaxis()->SetTitle("PSD centrality (%)");
h__3->GetXaxis()->SetRange(1,1);
h__3->GetXaxis()->SetNdivisions(505);
h__3->GetXaxis()->SetLabelFont(42);
......
No preview for this file type
void PSD2_Y()
{
//=========Macro generated from canvas: c/
//========= (Tue Apr 23 16:28:46 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,1000,1200);
//========= (Wed Nov 13 12:07:30 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,800,800);
gStyle->SetOptStat(0);
c->Range(0,0,1,1);
c->SetFillColor(0);
......@@ -14,7 +14,7 @@ void PSD2_Y()
c->SetBottomMargin(0.13);
c->SetFrameBorderMode(0);
TH1F *h__4 = new TH1F("h__4","",1,0,100);
TH1F *h__4 = new TH1F("h__4","",1,0,55);
h__4->SetMinimum(0);
h__4->SetMaximum(0.24);
h__4->SetStats(0);
......@@ -24,7 +24,7 @@ void PSD2_Y()
ci = TColor::GetColor("#000099");
h__4->SetLineColor(ci);
h__4->SetLineWidth(0);
h__4->GetXaxis()->SetTitle("PSD centrality");
h__4->GetXaxis()->SetTitle("PSD centrality (%)");
h__4->GetXaxis()->SetRange(1,1);
h__4->GetXaxis()->SetNdivisions(505);
h__4->GetXaxis()->SetLabelFont(42);
......
No preview for this file type
void PSD3_X()
{
//=========Macro generated from canvas: c/
//========= (Tue Apr 23 16:28:46 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,1000,1200);
//========= (Wed Nov 13 12:07:30 2019) by ROOT version 6.12/06
TCanvas *c = new TCanvas("c", "",0,0,800,800);
gStyle->SetOptStat(0);
c->Range(0,0,1,1);
c->SetFillColor(0);
......@@ -14,7 +14,7 @@ void PSD3_X()
c->SetBottomMargin(0.13);
c->SetFrameBorderMode(0);
TH1F *h__5 = new TH1F("h__5","",1,0,100);
TH1F *h__5 = new TH1F("h__5","",1,0,55);
h__5->SetMinimum(0);
h__5->SetMaximum(0.24);
h__5->SetStats(0);
......@@ -24,7 +24,7 @@ void PSD3_X()
ci = TColor::GetColor("#000099");
h__5->SetLineColor(ci);
h__5->SetLineWidth(0);
h__5->GetXaxis()->SetTitle("PSD centrality");
h__5->GetXaxis()->SetTitle("PSD centrality (%)");
h__5->GetXaxis()->SetRange(1,1);
h__5->GetXaxis()->SetNdivisions(505);
h__5->GetXaxis()->SetLabelFont(42);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment