-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating restRoot behaviour #441
Conversation
…t or normal ROOT file
I think that
I guess this should work:
|
However we need to call So I don't really see how to solve this. We need to provide the C-command to the ROOT shell. We could avoid using the instance of analysisTree since we can always access it using Also there was some issues while using std::cout for some reason I am not aware of, but @nkx111 knows more about. |
I think the line is shown when you propagate the file name argument to |
Constructing such complicated command and calling it through gROOT is because we can therefore use those objects in ROOT prompt. I don't know if it is possible to initialize objects outside ROOT environment but still accessible through its prompt. Perhaps by adding it to some global list? |
Ah, right! I see it now that is done for the |
…rk into jgalan-restRoot
…hing of TRestAnalysisTree and TRestEvent and metadata
for more information, see https://pre-commit.ci
I have simplified the opening of I think is possible to add global variables by defining them between the declaration of |
I never used the function opening multi files. I use it for quick inspection of the input file. So, perhaps the multi can be removed |
Simplifying opening of TRestRun and TRestDataSet files
Updates brought by this PR:
Now
restRoot
will be able to open 2 different ROOT files on-the-fly:TRestRun
based files,TRestDataSet
based files and standard ROOT files.When it is a
TRestRun
it will create instances for all metadata objects accessible toTRestRun
together with the analysisTree and the eventTree if available.When it is a
TRestDataSet
it will call toTRestDataSet::Import
to make the dataset readily accessible.When we open a dataset we get:
@lobis @juanangp @nkx111 I would prefer to remove the last line about attaching
_file0
but not idea how or if it is possible.It seems that when doing it using a
TRestRun
file it does not prompt this_file0
line.Main changes are happening in
restRoot
. Remains are just re-factoring.