Skip to content

Make tree_cfg much more configurable

Teng Jian Khoo requested to merge khoo/easyjet:multiple-tree-output into master

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 inside tree_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

Merge request reports