icetrg

High Level Trigger (HLT) functions.

icetrg.common

load_root_file(root_path, ids=None, entry_start=0, entry_stop=None, maxevents=None, args=None)[source]

Loads the root files.

Parameters:

root_path – paths to root files (list)

Returns:

columnar data Y: class labels W: event weights ids: columnar variable string (list) info: trigger and pre-selection acceptance x efficiency information (dict)

Return type:

X

process_root(rootfile, tree, isMC, args, entry_start=0, entry_stop=None, maxevents=None)[source]
splitfactor(x, y, w, ids, args)[source]

Transform data into different datatypes.

Parameters:
  • data – jagged arrays

  • args – arguments dictionary

Returns:

dictionary with different data representations