icehgcal¶
HGCAL functions.
icehgcal.common¶
- load_root_file(root_path, ids=None, entry_start=0, entry_stop=None, maxevents=None, args=None)[source]¶
(HGCAL-CND)
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
icehgcal.graphio¶
- parse_graph_data_candidate(X, ids, features, graph_param, Y=None, weights=None, entry_start=None, entry_stop=None, EPS=1e-12, null_value=-999.0)[source]¶
EVENT LEVEL (PROCESSING CANDIDATES)
Jagged array data into pytorch-geometric style Data format array.
- Parameters:
X – Jagged array of variables
ids – Variable names as an array of strings
features – List of active global feature strings
graph_param – Graph construction parameters dict
Y – Target class array (if any, typically MC only)
weights – (Re-)weighting array (if any, typically MC only)
- Returns:
List of pytorch-geometric Data objects
icehgcal.preprocess¶
- compute_edges(trk_data, ass_data, gra_data, edge_index, edge_labels, edge_qualities, graph_param)[source]¶
Logic based on (but refined): https://github.com/Abhirikshma/HackathonLinking/blob/master/firstModelAndTraining.ipynb
- Returns:
node, edge, edge_labels