EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
charm_jet_tagging_study Namespace Reference

Functions

def DrawDiffTagEfficiencyPlot
 
def DrawDiffTagYieldPlot
 

Variables

tuple parser argparse.ArgumentParser()
 
string help "Directory containing input files"
 
tuple args parser.parse_args()
 
list branchlist ["Jet.PT", "Jet.Eta", "Jet.Flavor", "Jet.BTag", "Particle.Px", "Particle.Py", "Particle.Pz", "Particle.E"]
 
tuple df eat.UprootLoad([f"../{args.input}/*/out.root"], "Delphes", branches=branchlist)
 
tuple n_gen len(df)
 
dictionary aux_data {}
 
tuple var_array np.concatenate(df[aux_var].to_numpy())
 
dictionary draw_config {}
 
tuple df_20rs2 eat.UprootLoad([f"../CC_DIS_e10_p100_B15_dR5_maxIP3mm_trkpt10_22sigmin_lha_20Rs2/*/out.root"], "Delphes", branches=branchlist)
 
tuple df_21rs2 eat.UprootLoad([f"../CC_DIS_e10_p100_B15_dR5_maxIP3mm_trkpt10_22sigmin_lha_21Rs2/*/out.root"], "Delphes", branches=branchlist)
 
list xvar draw_config['xvar']
 
list xrange draw_config['xrange']
 
list xbins draw_config['xbins']
 
list ylimits draw_config['ylimits']
 
list xlimits draw_config['xlimits']
 
list yunits draw_config['yunits']
 
list xunits draw_config['xunits']
 
tuple charm_ct18nnlo eat.DifferentialTaggingYield(df, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT18NNLO')
 
tuple charm_ct18nnlo_20rs2 eat.DifferentialTaggingYield(df_20rs2, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT1820Rs2')
 
tuple charm_ct18nnlo_21rs2 eat.DifferentialTaggingYield(df_21rs2, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT1821Rs2')
 
list N_20 charm_ct18nnlo_20rs2[2]
 
tuple errN_20 np.zeros(len(N_20))
 
tuple R_N_20 np.ones(len(N_20))
 
list N_21 charm_ct18nnlo_21rs2[2]
 
 diff_20_21 N_21-N_20
 
tuple R_N_diff np.ones(len(N_20))
 
tuple gridspec fig.add_gridspec(ncols=1, nrows=1, width_ratios=[1], height_ratios=[1])
 
list bins charm_ct18nnlo[0]
 
list bin_widths charm_ct18nnlo[1]
 
tuple one_line np.ones(len(bins))
 
tuple ax1 fig.add_subplot(gridspec[0, 0])
 
string R_N_20_label "Stat. Uncertainty [CT18NNLO, $R_s=2s/(\overline{u}+\overline{d})=0.325$ (suppressed)]"
 
list errorboxes
 
tuple pc mpl.collections.PatchCollection(errorboxes, facecolor='#7A6E67', alpha=0.35, label=R_N_20_label)
 
tuple enhanced ax1.errorbar(bins, R_N_diff, xerr = bin_widths/2, marker='s', ms=10, ls='none', linewidth=2, fillstyle='none', color='#003066', label='CT18ZNNLO with enhanced strangeness, $R_s=2s/(\overline{u}+\overline{d})=0.863$')
 
string xvar_symbol "p_T"
 

Function Documentation

def charm_jet_tagging_study.DrawDiffTagEfficiencyPlot (   df,
  draw_config = {} 
)

Definition at line 66 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 66 of file charm_jet_tagging_study.py

Referenced by DrawDiffTagYieldPlot().

+ Here is the caller graph for this function:

def charm_jet_tagging_study.DrawDiffTagYieldPlot (   df,
  draw_config = {},
  process = 'CC_DIS_e10_p100_CT18NNLO' 
)

Definition at line 129 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 129 of file charm_jet_tagging_study.py

References DrawDiffTagEfficiencyPlot().

+ Here is the call graph for this function:

Variable Documentation

tuple charm_jet_tagging_study.args parser.parse_args()

Definition at line 37 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 37 of file charm_jet_tagging_study.py

dictionary charm_jet_tagging_study.aux_data {}

Definition at line 53 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 53 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.ax1 fig.add_subplot(gridspec[0, 0])

Definition at line 318 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 318 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.bin_widths charm_ct18nnlo[1]

Definition at line 313 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 313 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.bins charm_ct18nnlo[0]

Definition at line 312 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 312 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.branchlist ["Jet.PT", "Jet.Eta", "Jet.Flavor", "Jet.BTag", "Particle.Px", "Particle.Py", "Particle.Pz", "Particle.E"]

Definition at line 41 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 41 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.charm_ct18nnlo eat.DifferentialTaggingYield(df, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT18NNLO')

Definition at line 278 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 278 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.charm_ct18nnlo_20rs2 eat.DifferentialTaggingYield(df_20rs2, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT1820Rs2')

Definition at line 279 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 279 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.charm_ct18nnlo_21rs2 eat.DifferentialTaggingYield(df_21rs2, x=xvar, xrange=xrange, xbins=xbins, which='charm', process='CC_DIS_e10_p100_CT1821Rs2')

Definition at line 280 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 280 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.df eat.UprootLoad([f"../{args.input}/*/out.root"], "Delphes", branches=branchlist)

Definition at line 45 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 45 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.df_20rs2 eat.UprootLoad([f"../CC_DIS_e10_p100_B15_dR5_maxIP3mm_trkpt10_22sigmin_lha_20Rs2/*/out.root"], "Delphes", branches=branchlist)

Definition at line 264 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 264 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.df_21rs2 eat.UprootLoad([f"../CC_DIS_e10_p100_B15_dR5_maxIP3mm_trkpt10_22sigmin_lha_21Rs2/*/out.root"], "Delphes", branches=branchlist)

Definition at line 265 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 265 of file charm_jet_tagging_study.py

charm_jet_tagging_study.diff_20_21 N_21-N_20

Definition at line 301 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 301 of file charm_jet_tagging_study.py

dictionary charm_jet_tagging_study.draw_config {}

Definition at line 228 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 228 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.enhanced ax1.errorbar(bins, R_N_diff, xerr = bin_widths/2, marker='s', ms=10, ls='none', linewidth=2, fillstyle='none', color='#003066', label='CT18ZNNLO with enhanced strangeness, $R_s=2s/(\overline{u}+\overline{d})=0.863$')

Definition at line 335 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 335 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.errN_20 np.zeros(len(N_20))

Definition at line 292 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 292 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.errorboxes
Initial value:
1 [mpl.patches.Rectangle((x - xe, y - ye), 2*xe, 2*ye, facecolor='#7A6E67', alpha=0.35,
2  label=R_N_20_label)
3  for x, y, xe, ye in zip(bins, one_line, (bin_widths/2), errN_20/N_20)]

Definition at line 325 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 325 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.gridspec fig.add_gridspec(ncols=1, nrows=1, width_ratios=[1], height_ratios=[1])

Definition at line 310 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 310 of file charm_jet_tagging_study.py

string charm_jet_tagging_study.help "Directory containing input files"

Definition at line 33 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 33 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.N_20 charm_ct18nnlo_20rs2[2]

Definition at line 291 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 291 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.N_21 charm_ct18nnlo_21rs2[2]

Definition at line 299 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 299 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.n_gen len(df)

Definition at line 49 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 49 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.one_line np.ones(len(bins))

Definition at line 315 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 315 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.parser argparse.ArgumentParser()

Definition at line 30 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 30 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.pc mpl.collections.PatchCollection(errorboxes, facecolor='#7A6E67', alpha=0.35, label=R_N_20_label)

Definition at line 330 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 330 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.R_N_20 np.ones(len(N_20))

Definition at line 297 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 297 of file charm_jet_tagging_study.py

string charm_jet_tagging_study.R_N_20_label "Stat. Uncertainty [CT18NNLO, $R_s=2s/(\overline{u}+\overline{d})=0.325$ (suppressed)]"

Definition at line 322 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 322 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.R_N_diff np.ones(len(N_20))

Definition at line 303 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 303 of file charm_jet_tagging_study.py

tuple charm_jet_tagging_study.var_array np.concatenate(df[aux_var].to_numpy())

Definition at line 61 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 61 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.xbins draw_config['xbins']

Definition at line 272 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 272 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.xlimits draw_config['xlimits']

Definition at line 274 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 274 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.xrange draw_config['xrange']

Definition at line 271 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 271 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.xunits draw_config['xunits']

Definition at line 276 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 276 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.xvar draw_config['xvar']

Definition at line 270 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 270 of file charm_jet_tagging_study.py

string charm_jet_tagging_study.xvar_symbol "p_T"

Definition at line 343 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 343 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.ylimits draw_config['ylimits']

Definition at line 273 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 273 of file charm_jet_tagging_study.py

list charm_jet_tagging_study.yunits draw_config['yunits']

Definition at line 275 of file charm_jet_tagging_study.py.

View newest version in sPHENIX GitHub at line 275 of file charm_jet_tagging_study.py