Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
f7977257
Commit
f7977257
authored
8 years ago
by
Mattias Ellert
Committed by
Olivier Couet
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix global name not defined errors during documentation generation
parent
13776045
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/pyroot/zdemo.py
+3
-1
3 additions, 1 deletion
tutorials/pyroot/zdemo.py
with
3 additions
and
1 deletion
tutorials/pyroot/zdemo.py
+
3
−
1
View file @
f7977257
...
...
@@ -18,7 +18,6 @@
import
ROOT
from
array
import
array
from
math
import
*
NMAX
=
20
Z
=
array
(
'
f
'
,
[
0.
]
*
NMAX
)
...
...
@@ -31,6 +30,7 @@ saves = {}
#_______________________________________________________________________________
def
hz_calc
(
ENERG
,
DENS
,
TGRAD
,
PTMIN
,
PTMAX
,
DELP
):
from
math
import
sin
,
cos
,
sqrt
global
NLOOP
global
Z
,
HZ
,
PT
,
INVSIG
...
...
@@ -104,9 +104,11 @@ def hz_calc( ENERG, DENS, TGRAD, PTMIN, PTMAX, DELP ):
#_______________________________________________________________________________
def
zdemo
():
from
array
import
array
global
NLOOP
global
Z
,
HZ
,
PT
,
INVSIG
global
saves
global
hz_calc
# Create a new canvas.
c1
=
ROOT
.
TCanvas
(
'
zdemo
'
,
'
Monte Carlo Study of Z scaling
'
,
10
,
40
,
800
,
600
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment