CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Variables
isotrackNtupler.py File Reference

Go to the source code of this file.

Namespaces

 isotrackNtupler
 

Variables

list isotrackNtupler.branchesnpu = ['t_Event','t_ieta','t_iphi','t_eHcal']
 
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']
 
tuple isotrackNtupler.cuts1 = (merged['t_selectTk'])
 all ietas More...
 
tuple isotrackNtupler.cuts2 = (merged['t_selectTk'])
 split ieta < 16 More...
 
tuple isotrackNtupler.cuts3 = (merged['t_selectTk'])
 split ieta > 15 More...
 
tuple isotrackNtupler.dfsnpu = pd.DataFrame.from_dict(dictnpu)
 
tuple isotrackNtupler.dfspu = pd.DataFrame.from_dict(dictpu)
 
tuple isotrackNtupler.dictnpu = tree2.arrays(branches=branchesnpu)
 
tuple isotrackNtupler.dictpu = tree1.arrays(branches=branchespu)
 
list isotrackNtupler.final_df_all = merged1[keepvars]
 
list isotrackNtupler.final_df_hi = merged3[keepvars]
 
list isotrackNtupler.final_df_low = merged2[keepvars]
 
tuple isotrackNtupler.fName1 = parser.parse_args()
 
tuple isotrackNtupler.fName2 = parser.parse_args()
 
tuple isotrackNtupler.foutput = parser.parse_args()
 
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']
 
tuple isotrackNtupler.merged = pd.merge(dfspu, dfsnpu , on=['t_Event','t_ieta','t_iphi'])
 
list isotrackNtupler.merged1 = merged.loc[cuts1]
 
list isotrackNtupler.merged2 = merged.loc[cuts2]
 
list isotrackNtupler.merged3 = merged.loc[cuts3]
 
tuple isotrackNtupler.parser = argparse.ArgumentParser()
 
tuple isotrackNtupler.tree1 = uproot.open(fName1,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))
 
tuple isotrackNtupler.tree2 = uproot.open(fName2,xrootdsource=dict(chunkbytes=1024**3, limitbytes=1024**3))