Skip to content

WIP: Dynamic list of root files to read.#14

Open
inkdot7 wants to merge 1 commit intohanstt:mainfrom
inkdot7:dynfilelist
Open

WIP: Dynamic list of root files to read.#14
inkdot7 wants to merge 1 commit intohanstt:mainfrom
inkdot7:dynfilelist

Conversation

@inkdot7
Copy link
Contributor

@inkdot7 inkdot7 commented Aug 5, 2023

This is an ugly (therefore, WIP) hack that adds a dynamic list of files. When the current source (root file) runs out of data, the dynamic list is consulted for new lines of text instead of exiting the input loop. For every new line, it is attempted to be set as the root file for the TTreeReader. Lines may be added during program operation. If no new line is found, the input thread sleeps a second and tries again.

The dynamic file list file name is given with an option -l. Note that so far, one input file still needs to be given on the command line.

Particularly ugly is the handling of the control flow in the input thread. Something is not working correctly on exit (i.e. when the program is exited by closing its window).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments