Skip to content
Snippets Groups Projects
Commit f7977257 authored by Mattias Ellert's avatar Mattias Ellert Committed by Olivier Couet
Browse files

Fix global name not defined errors during documentation generation

parent 13776045
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
import ROOT import ROOT
from array import array from array import array
from math import *
NMAX = 20 NMAX = 20
Z = array( 'f', [0.]*NMAX ) Z = array( 'f', [0.]*NMAX )
...@@ -31,6 +30,7 @@ saves = {} ...@@ -31,6 +30,7 @@ saves = {}
#_______________________________________________________________________________ #_______________________________________________________________________________
def hz_calc( ENERG, DENS, TGRAD, PTMIN, PTMAX, DELP ): def hz_calc( ENERG, DENS, TGRAD, PTMIN, PTMAX, DELP ):
from math import sin, cos, sqrt
global NLOOP global NLOOP
global Z, HZ, PT, INVSIG global Z, HZ, PT, INVSIG
...@@ -104,9 +104,11 @@ def hz_calc( ENERG, DENS, TGRAD, PTMIN, PTMAX, DELP ): ...@@ -104,9 +104,11 @@ def hz_calc( ENERG, DENS, TGRAD, PTMIN, PTMAX, DELP ):
#_______________________________________________________________________________ #_______________________________________________________________________________
def zdemo(): def zdemo():
from array import array
global NLOOP global NLOOP
global Z, HZ, PT, INVSIG global Z, HZ, PT, INVSIG
global saves global saves
global hz_calc
# Create a new canvas. # Create a new canvas.
c1 = ROOT.TCanvas( 'zdemo', 'Monte Carlo Study of Z scaling', 10, 40, 800, 600 ) c1 = ROOT.TCanvas( 'zdemo', 'Monte Carlo Study of Z scaling', 10, 40, 800, 600 )
......
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