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
8f669c1e
Commit
8f669c1e
authored
10 years ago
by
Ivana Hrivnacova
Browse files
Options
Downloads
Patches
Plain Diff
Replaced extern gMC variable with a macro (to make it available in Cling)
parent
da8d0131
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
montecarlo/vmc/inc/TVirtualMC.h
+1
-5
1 addition, 5 deletions
montecarlo/vmc/inc/TVirtualMC.h
montecarlo/vmc/src/TVirtualMC.cxx
+0
-3
0 additions, 3 deletions
montecarlo/vmc/src/TVirtualMC.cxx
with
1 addition
and
8 deletions
montecarlo/vmc/inc/TVirtualMC.h
+
1
−
5
View file @
8f669c1e
...
...
@@ -877,11 +877,7 @@ private:
ClassDef
(
TVirtualMC
,
1
)
//Interface to Monte Carlo
};
#if !defined(__CINT__)
R__EXTERN
TMCThreadLocal
TVirtualMC
*
gMC
;
#else
R__EXTERN
TVirtualMC
*
gMC
;
#endif
#define gMC (TVirtualMC::GetMC())
#endif //ROOT_TVirtualMC
This diff is collapsed.
Click to expand it.
montecarlo/vmc/src/TVirtualMC.cxx
+
0
−
3
View file @
8f669c1e
...
...
@@ -27,7 +27,6 @@
ClassImp
(
TVirtualMC
)
TMCThreadLocal
TVirtualMC
*
TVirtualMC
::
fgMC
=
0
;
TMCThreadLocal
TVirtualMC
*
gMC
;
//_____________________________________________________________________________
TVirtualMC
::
TVirtualMC
(
const
char
*
name
,
const
char
*
title
,
...
...
@@ -45,7 +44,6 @@ TVirtualMC::TVirtualMC(const char *name, const char *title,
Warning
(
"TVirtualMC"
,
"Cannot initialise twice MonteCarlo class"
);
}
else
{
fgMC
=
this
;
gMC
=
this
;
fApplication
=
TVirtualMCApplication
::
Instance
();
...
...
@@ -78,7 +76,6 @@ TVirtualMC::~TVirtualMC()
// Destructor
//
fgMC
=
0
;
gMC
=
0
;
}
//
...
...
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