1"""! running hadd from in hps-mc jobs"""
12 """! Run ROOT's histogram/TTree merger
15 - **inputs**: input ROOT files to merge
16 - **outputs**: *single* output file to merge into
18 - **ncores**: number of cores to supply to hadd (default 1)
21 logger = logging.getLogger(
'hpsmc.tools.hadd')
26 super().
__init__(
'hadd', command=
'hadd', **kwargs)
33 if self.
ncores is not None:
36 raise ValueError(
'hadd makes no sense without exactly one output')
39 raise ValueError(
'hadd makes no sense without at least one input')
Run ROOT's histogram/TTree merger.
optional_parameters(self)
Return a list of optional parameters.
cmd_args(self)
Return the command arguments of this component.
Base class for components in a job.