Make tree_cfg much more configurable
We'd like to have the capability to write multiple output TTrees e.g. in jobs that select events in multiple streams. This is a first step in that direction, providing more configurability in tree_cfg
, which can be called directly to set these trees up:
- ROOT file name and corresponding
THistSvc
stream - Permits the TTree to be placed in a directory if desired (defaults to top level)
- Configures the
THistSvc
insidetree_cfg
to support all of this flexibility
Also adds type hints and some more docstrings
The minituple_cfg
behaviour remains as is, fully specified from the analysis flags. It may be possible to extend the flag handling to support different TTree configs, but this is left for a future MR.
First step towards addressing #84 (closed)
Edited by Teng Jian Khoo