Derived_quantities module
This module contains the functions to calculate the derived quantities of the HEP dataset. Originally written by David Rousseau, and Victor Estrade.
- derived_quantities.DER_data(data)
data is supposed to be clean (no Weight, no eventId etc…) This function directly modifies the dataframe data so make sure to make a copy if you need to keep data
- derived_quantities.calcul_int(data)
Calculate the px py pz E components of the particles’ 4 momentum.
- Args:
data (pandas.DataFrame): Input data containing the particle properties.
- Returns:
pandas.DataFrame: Dataframe with the derived quantities calculated.
- derived_quantities.f_DER_deltaeta_jet_jet(data)
Calculate the absolute value of the difference of the pseudorapidity of the two jets Parameters: data (dataframe)
- derived_quantities.f_DER_deltar_had_lep(data)
Calculate the delta R between the hadron and the lepton
- derived_quantities.f_DER_lep_eta_centrality(data)
Calculate the centrality of the lepton Parameters: data (dataframe)
- derived_quantities.f_DER_mass_jet_jet(data)
Calculate the invariant mass of the two jets Parameters: data (dataframe)
- derived_quantities.f_DER_mass_transverse_met_lep(data)
Calculate the transverse mass between the MET and the lepton Parameters: data (dataframe)
- derived_quantities.f_DER_mass_vis(data)
Calculate the invariant mass of the hadron and the lepton Parameters: data (dataframe)
- derived_quantities.f_DER_met_phi_centrality(data)
Calculate the centrality of the MET Parameters: data (dataframe)
- derived_quantities.f_DER_prodeta_jet_jet(data)
Calculate the product of the pseudorapidities of the two jets Parameters: data (dataframe)
- derived_quantities.f_DER_pt_h(data)
Calculate the transverse momentum of the hadronic system Parameters: data (dataframe)
- derived_quantities.f_DER_pt_ratio_lep_had(data)
Calculate the ratio of the transverse momentum of the lepton and the hadron Parameters: data (dataframe)
- derived_quantities.f_DER_pt_tot(data)
Calculate the total transverse momentum Parameters: data (dataframe)
- derived_quantities.f_DER_sum_pt(data)
Calculate the sum of the transverse momentum of the lepton, the hadron and the jets Parameters: data (dataframe)
- derived_quantities.f_del_DER(data)
Delete all the unnecessary columns that were used to calculate the DER variables Parameters: data (dataframe)