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
d4d80f6c
Commit
d4d80f6c
authored
8 years ago
by
Gerardo Ganis
Browse files
Options
Downloads
Patches
Plain Diff
tutorials/tree: fine-tune TEntryList support in h1Analysis
parent
dc4f24bc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorials/tree/h1analysis.C
+4
-4
4 additions, 4 deletions
tutorials/tree/h1analysis.C
tutorials/tree/h1analysisTreeReader.C
+4
-4
4 additions, 4 deletions
tutorials/tree/h1analysisTreeReader.C
with
8 additions
and
8 deletions
tutorials/tree/h1analysis.C
+
4
−
4
View file @
d4d80f6c
...
@@ -188,15 +188,14 @@ void h1analysis::Begin(TTree * /*tree*/)
...
@@ -188,15 +188,14 @@ void h1analysis::Begin(TTree * /*tree*/)
// This is needed to avoid warnings from output-to-members mapping
// This is needed to avoid warnings from output-to-members mapping
elist
=
0
;
elist
=
0
;
}
}
Info
(
"Begin"
,
"creating an entry-list"
);
}
}
if
(
fillList
)
Info
(
"Begin"
,
"creating an entry-list"
);
// case when one uses the entry list generated in a previous call
// case when one uses the entry list generated in a previous call
if
(
option
.
Contains
(
"useList"
))
{
if
(
option
.
Contains
(
"useList"
))
{
useList
=
kTRUE
;
useList
=
kTRUE
;
if
(
fInput
)
{
if
(
fInput
)
{
// Option "useList" not supported in PROOF directly
// In PROOF option "useList" is processed in SlaveBegin and we do not need
Warning
(
"Begin"
,
"option 'useList' not supported in PROOF - ignoring"
);
// to do anything here
Warning
(
"Begin"
,
"the entry list must be set on the chain *before* calling Process"
);
}
else
{
}
else
{
TFile
f
(
"elist.root"
);
TFile
f
(
"elist.root"
);
elist
=
(
TEntryList
*
)
f
.
Get
(
"elist"
);
elist
=
(
TEntryList
*
)
f
.
Get
(
"elist"
);
...
@@ -243,6 +242,7 @@ void h1analysis::SlaveBegin(TTree *tree)
...
@@ -243,6 +242,7 @@ void h1analysis::SlaveBegin(TTree *tree)
}
}
}
}
if
(
fillList
)
Info
(
"SlaveBegin"
,
"creating an entry-list"
);
if
(
fillList
)
Info
(
"SlaveBegin"
,
"creating an entry-list"
);
if
(
option
.
Contains
(
"useList"
))
useList
=
kTRUE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
tutorials/tree/h1analysisTreeReader.C
+
4
−
4
View file @
d4d80f6c
...
@@ -94,15 +94,14 @@ void h1analysisTreeReader::Begin(TTree* /*myTree*/) {
...
@@ -94,15 +94,14 @@ void h1analysisTreeReader::Begin(TTree* /*myTree*/) {
// This is needed to avoid warnings from output-to-members mapping
// This is needed to avoid warnings from output-to-members mapping
elist
=
0
;
elist
=
0
;
}
}
Info
(
"Begin"
,
"creating an entry-list"
);
}
}
if
(
fillList
)
Info
(
"Begin"
,
"creating an entry-list"
);
// case when one uses the entry list generated in a previous call
// case when one uses the entry list generated in a previous call
if
(
option
.
Contains
(
"useList"
))
{
if
(
option
.
Contains
(
"useList"
))
{
useList
=
kTRUE
;
useList
=
kTRUE
;
if
(
fInput
)
{
if
(
fInput
)
{
// Option "useList" not supported in PROOF directly
// In PROOF option "useList" is processed in SlaveBegin and we do not need
Warning
(
"Begin"
,
"option 'useList' not supported in PROOF - ignoring"
);
// to do anything here
Warning
(
"Begin"
,
"the entry list must be set on the chain *before* calling Process"
);
}
else
{
}
else
{
TFile
f
(
"elist.root"
);
TFile
f
(
"elist.root"
);
elist
=
(
TEntryList
*
)
f
.
Get
(
"elist"
);
elist
=
(
TEntryList
*
)
f
.
Get
(
"elist"
);
...
@@ -147,6 +146,7 @@ void h1analysisTreeReader::SlaveBegin(TTree *myTree){
...
@@ -147,6 +146,7 @@ void h1analysisTreeReader::SlaveBegin(TTree *myTree){
}
}
}
}
if
(
fillList
)
Info
(
"SlaveBegin"
,
"creating an entry-list"
);
if
(
fillList
)
Info
(
"SlaveBegin"
,
"creating an entry-list"
);
if
(
option
.
Contains
(
"useList"
))
useList
=
kTRUE
;
}
}
void
h1analysisTreeReader
::
Terminate
()
{
void
h1analysisTreeReader
::
Terminate
()
{
...
...
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