Skip to content
Snippets Groups Projects
Commit 83dd8722 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

Merge branch 'NPTool.2.dev' of gitlab.in2p3.fr:np/nptool into NPTool.2.dev

parents accda40d 46c50450
No related branches found
No related tags found
No related merge requests found
Pipeline #124950 passed
...@@ -157,10 +157,11 @@ void CompareExsAt4MeV(){ ...@@ -157,10 +157,11 @@ void CompareExsAt4MeV(){
gate4p3->SetLineColor(kViolet); gate4p3->SetLineColor(kViolet);
gate4p3->GetXaxis()->SetRangeUser(0.,5.); gate4p3->GetXaxis()->SetRangeUser(0.,5.);
cout << " 3.0 - Red" << endl; cout << " 3.0 - Red\n"
cout << " 3.5 - Blue" << endl; << " 3.5 - Blue\n"
cout << " 3.9 - Green" << endl; << " 3.9 - Green\n"
cout << " 4.3 - Violet" << endl; << " 4.3 - Violet"
<< endl;
} }
...@@ -176,21 +177,19 @@ void CompareSimExp(){ ...@@ -176,21 +177,19 @@ void CompareSimExp(){
hexp->GetYaxis()->SetTitle("Counts / 0.1 MeV"); hexp->GetYaxis()->SetTitle("Counts / 0.1 MeV");
hexp->SetLineColor(kRed); hexp->SetLineColor(kRed);
TFile* simfile = new TFile("../../../Outputs/Analysis/SimTest_18June.root", "READ"); TFile* simfile = new TFile("../../../Outputs/Analysis/SimTest_18June_30mill.root", "READ");
TTree* simtree = (TTree*) simfile->FindObjectAny("PhysicsTree"); TTree* simtree = (TTree*) simfile->FindObjectAny("PhysicsTree");
simtree->Draw("Ex>>hsim(70,-1,6)","","same"); simtree->Draw("Ex>>hsim(70,-1,6)","Mugast.TelescopeNumber>0 && Mugast.TelescopeNumber<8","same");
TH1F* hsim = (TH1F*) gDirectory->Get("hsim"); TH1F* hsim = (TH1F*) gDirectory->Get("hsim");
hsim->SetLineColor(kBlue); hsim->SetLineColor(kBlue);
auto legend = new TLegend(0.7,0.8,0.9,0.9); auto legend = new TLegend(0.7,0.8,0.9,0.9);
legend->AddEntry(hexp,"Experiment","l"); legend->AddEntry(hexp,"Experiment","l");
legend->AddEntry(hsim,"Simulation","l"); legend->AddEntry(hsim,"Simulation","l");
legend->Draw(); legend->Draw();
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
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