CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Variables
isotrackNtupler Namespace Reference

Variables

list branchesnpu = ['t_Event','t_ieta','t_iphi','t_eHcal']
 
list branchespu = ['t_Run','t_Event','t_nVtx','t_ieta','t_iphi','t_p','t_pt','t_gentrackP','t_eMipDR','t_eHcal','t_eHcal10','t_eHcal30','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_selectTk','t_qltyFlag']
 
tuple cuts1 = (merged['t_selectTk'])
 all ietas More...
 
tuple cuts2 = (merged['t_selectTk'])
 split ieta < 16 More...
 
tuple cuts3 = (merged['t_selectTk'])
 split ieta > 15 More...
 
tuple dfsnpu = pd.DataFrame.from_dict(dictnpu)
 
tuple dfspu = pd.DataFrame.from_dict(dictpu)
 
tuple dictnpu = tree2.arrays(branches=branchesnpu)
 
tuple dictpu = tree1.arrays(branches=branchespu)
 
list final_df_all = merged1[keepvars]
 
list final_df_hi = merged3[keepvars]
 
list final_df_low = merged2[keepvars]
 
tuple fName1 = parser.parse_args()
 
tuple fName2 = parser.parse_args()
 
tuple foutput = parser.parse_args()
 
list keepvars = ['t_nVtx','t_ieta','t_eHcal10','t_eHcal30','t_delta','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_pt','t_eHcal_x','t_eHcal_y','t_p','t_eMipDR']
 
tuple merged = pd.merge(dfspu, dfsnpu , on=['t_Event','t_ieta','t_iphi'])
 
list merged1 = merged.loc[cuts1]
 
list merged2 = merged.loc[cuts2]
 
list merged3 = merged.loc[cuts3]
 
tuple parser = argparse.ArgumentParser()
 
tuple tree1 = uproot.open(fName1,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))
 
tuple tree2 = uproot.open(fName2,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))
 

Variable Documentation

list isotrackNtupler.branchesnpu = ['t_Event','t_ieta','t_iphi','t_eHcal']

Definition at line 34 of file isotrackNtupler.py.

list isotrackNtupler.branchespu = ['t_Run','t_Event','t_nVtx','t_ieta','t_iphi','t_p','t_pt','t_gentrackP','t_eMipDR','t_eHcal','t_eHcal10','t_eHcal30','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_selectTk','t_qltyFlag']

Definition at line 33 of file isotrackNtupler.py.

tuple isotrackNtupler.cuts1 = (merged['t_selectTk'])

all ietas

Definition at line 54 of file isotrackNtupler.py.

tuple isotrackNtupler.cuts2 = (merged['t_selectTk'])

split ieta < 16

Definition at line 64 of file isotrackNtupler.py.

Referenced by IsoTrig.beginJob().

tuple isotrackNtupler.cuts3 = (merged['t_selectTk'])

split ieta > 15

Definition at line 75 of file isotrackNtupler.py.

tuple isotrackNtupler.dfsnpu = pd.DataFrame.from_dict(dictnpu)

Definition at line 40 of file isotrackNtupler.py.

tuple isotrackNtupler.dfspu = pd.DataFrame.from_dict(dictpu)

Definition at line 38 of file isotrackNtupler.py.

tuple isotrackNtupler.dictnpu = tree2.arrays(branches=branchesnpu)

Definition at line 37 of file isotrackNtupler.py.

tuple isotrackNtupler.dictpu = tree1.arrays(branches=branchespu)

Definition at line 36 of file isotrackNtupler.py.

list isotrackNtupler.final_df_all = merged1[keepvars]

Definition at line 59 of file isotrackNtupler.py.

list isotrackNtupler.final_df_hi = merged3[keepvars]

Definition at line 80 of file isotrackNtupler.py.

list isotrackNtupler.final_df_low = merged2[keepvars]

Definition at line 69 of file isotrackNtupler.py.

tuple isotrackNtupler.fName1 = parser.parse_args()

Definition at line 21 of file isotrackNtupler.py.

tuple isotrackNtupler.fName2 = parser.parse_args()

Definition at line 22 of file isotrackNtupler.py.

tuple isotrackNtupler.foutput = parser.parse_args()

Definition at line 23 of file isotrackNtupler.py.

list isotrackNtupler.keepvars = ['t_nVtx','t_ieta','t_eHcal10','t_eHcal30','t_delta','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_pt','t_eHcal_x','t_eHcal_y','t_p','t_eMipDR']

Definition at line 49 of file isotrackNtupler.py.

tuple isotrackNtupler.merged = pd.merge(dfspu, dfsnpu , on=['t_Event','t_ieta','t_iphi'])
tuple isotrackNtupler.merged1 = merged.loc[cuts1]

Definition at line 55 of file isotrackNtupler.py.

tuple isotrackNtupler.merged2 = merged.loc[cuts2]

Definition at line 65 of file isotrackNtupler.py.

tuple isotrackNtupler.merged3 = merged.loc[cuts3]

Definition at line 76 of file isotrackNtupler.py.

tuple isotrackNtupler.parser = argparse.ArgumentParser()

Definition at line 15 of file isotrackNtupler.py.

tuple isotrackNtupler.tree1 = uproot.open(fName1,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))

Definition at line 27 of file isotrackNtupler.py.

tuple isotrackNtupler.tree2 = uproot.open(fName2,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))

Definition at line 30 of file isotrackNtupler.py.