Skip to content
Snippets Groups Projects
Commit 0472dbf9 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

Revert "[Math] Reduce to the minimum the usage of R__LOAD_LIBRARY in tutorials"

This reverts commit 21d726ba.
This change is platform dependent! Everything works on ubuntu16, but fails
on other platform. The change is reverted for 6.13, waiting to understand more
about this difference.
parent 7cf40ecd
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
void Bessel() void Bessel()
{ {
R__LOAD_LIBRARY(libMathMore);
TCanvas *DistCanvas = new TCanvas("DistCanvas", "Bessel functions example", 10, 10, 800, 600); TCanvas *DistCanvas = new TCanvas("DistCanvas", "Bessel functions example", 10, 10, 800, 600);
DistCanvas->SetFillColor(17); DistCanvas->SetFillColor(17);
DistCanvas->Divide(2, 2); DistCanvas->Divide(2, 2);
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
void FeldmanCousins() void FeldmanCousins()
{ {
if (!gROOT->GetClass("TFeldmanCousins"))
R__LOAD_LIBRARY(libPhysics);
TFeldmanCousins f; TFeldmanCousins f;
// calculate either the upper or lower limit for 10 observed // calculate either the upper or lower limit for 10 observed
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
void Legendre() void Legendre()
{ {
R__LOAD_LIBRARY(libMathMore);
TCanvas *Canvas = new TCanvas("DistCanvas", "Legendre polynomials example", 10, 10, 750, 600); TCanvas *Canvas = new TCanvas("DistCanvas", "Legendre polynomials example", 10, 10, 750, 600);
Canvas->SetGrid(); Canvas->SetGrid();
TLegend *leg = new TLegend(0.5, 0.7, 0.4, 0.89); TLegend *leg = new TLegend(0.5, 0.7, 0.4, 0.89);
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
import ROOT import ROOT
ROOT.gSystem.Load("libMathMore")
Canvas = ROOT.TCanvas("DistCanvas", "Legendre polynomials example", 10, 10, 750, 600) Canvas = ROOT.TCanvas("DistCanvas", "Legendre polynomials example", 10, 10, 750, 600)
Canvas.SetGrid() Canvas.SetGrid()
leg = ROOT.TLegend(0.5, 0.7, 0.4, 0.89) leg = ROOT.TLegend(0.5, 0.7, 0.4, 0.89)
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
void LegendreAssoc() void LegendreAssoc()
{ {
R__LOAD_LIBRARY(libMathMore);
std::cout <<"Drawing associate Legendre Polynomials.." << std::endl; std::cout <<"Drawing associate Legendre Polynomials.." << std::endl;
TCanvas *Canvas = new TCanvas("DistCanvas", "Associate Legendre polynomials", 10, 10, 800, 500); TCanvas *Canvas = new TCanvas("DistCanvas", "Associate Legendre polynomials", 10, 10, 800, 500);
Canvas->Divide(2,1); Canvas->Divide(2,1);
......
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