Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Show more breadcrumbs
Computing
cbmroot
Commits
953dcab5
Commit
953dcab5
authored
4 years ago
by
Administrator
Committed by
Florian Uhlig
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
c2f: Add gFile + gDirectory protection
parent
63b9fff6
No related branches found
No related tags found
1 merge request
!280
Analysis fix tfile glob point
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analysis/PWGC2F/femtoscopy/nicafemto/format/anatree/CbmAnaTreeSource.cxx
+8
-0
8 additions, 0 deletions
.../femtoscopy/nicafemto/format/anatree/CbmAnaTreeSource.cxx
with
8 additions
and
0 deletions
analysis/PWGC2F/femtoscopy/nicafemto/format/anatree/CbmAnaTreeSource.cxx
+
8
−
0
View file @
953dcab5
...
@@ -104,6 +104,10 @@ Int_t CbmAnaTreeSource::ReadEvent(UInt_t unsignedInt) {
...
@@ -104,6 +104,10 @@ Int_t CbmAnaTreeSource::ReadEvent(UInt_t unsignedInt) {
void
CbmAnaTreeSource
::
Close
()
{}
void
CbmAnaTreeSource
::
Close
()
{}
void
CbmAnaTreeSource
::
LoadConf
(
TString
name
)
{
void
CbmAnaTreeSource
::
LoadConf
(
TString
name
)
{
/// Save old global file and folder pointer to avoid messing with FairRoot
TFile
*
oldFile
=
gFile
;
TDirectory
*
oldDir
=
gDirectory
;
TFile
*
f
=
new
TFile
(
name
);
TFile
*
f
=
new
TFile
(
name
);
// TTree *tree = (TTree*)f->Get("aTree");
// TTree *tree = (TTree*)f->Get("aTree");
AnalysisTree
::
Configuration
*
conf
=
AnalysisTree
::
Configuration
*
conf
=
...
@@ -155,6 +159,10 @@ void CbmAnaTreeSource::LoadConf(TString name) {
...
@@ -155,6 +159,10 @@ void CbmAnaTreeSource::LoadConf(TString name) {
conf
->
GetBranchConfig
(
"SimEventHeader"
).
GetFieldId
(
"psi_RP"
);
conf
->
GetBranchConfig
(
"SimEventHeader"
).
GetFieldId
(
"psi_RP"
);
}
}
/// Restore old global file and folder pointer to avoid messing with FairRoot
gFile
=
oldFile
;
gDirectory
=
oldDir
;
f
->
Close
();
f
->
Close
();
delete
f
;
delete
f
;
}
}
...
...
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