The current dataframe_to_root() function seems to throw an error when the first row of the data contains no truth peaks. We don't want this, cause sometimes we produce data with no truth peaks by chance or to look at noise. A line was added here to avoid this - it defines the branch type in root by looking for the first non-zero row of the data.
The current
dataframe_to_root()
function seems to throw an error when the first row of the data contains no truth peaks. We don't want this, cause sometimes we produce data with no truth peaks by chance or to look at noise. A line was added here to avoid this - it defines the branch type in root by looking for the first non-zero row of the data.