Variables | |
list | branches_skim = ['t_Event','t_ieta','t_iphi','t_p','t_eHcal','t_eHcal10','t_eHcal30'] |
list | branchesnpu = ['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'] |
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'] |
columns | |
tuple | cuts_npu = (dfsnpu['t_selectTk'])&(dfsnpu['t_qltyFlag'])&(dfsnpu['t_hmaxNearP']<20)&(dfsnpu['t_eMipDR']<1)&(abs(dfsnpu['t_p'] - 50)<10)&(dfsnpu['t_eHcal']>10) |
tuple | cuts_pu = (dfspu['t_selectTk'])&(dfspu['t_qltyFlag'])&(dfspu['t_hmaxNearP']<20)&(dfspu['t_eMipDR']<1)&(abs(dfspu['t_p'] - 50)<10)&(dfspu['t_eHcal']>10) |
dfsnpu = pd.DataFrame.from_dict(dictnpu) | |
dfspu = pd.DataFrame.from_dict(dictpu) | |
dictnpu = tree2.arrays(branchesnpu, entrystart=npu_start, entrystop=npu_stop) | |
dictpu = tree1.arrays(branchespu, entrystart=int(start), entrystop=int(stop)) | |
final_df_hi = merged3[keepvars] | |
fName1 = parser.parse_args().filePU | |
fName2 = parser.parse_args().fileNPU | |
foutput = parser.parse_args().opfilename | |
help | |
int | i = 0 |
list | keepvars = ['t_nVtx','t_ieta','t_eHcal10_x','t_eHcal30_x','t_delta_x','t_eHcal10_y','t_eHcal30_y','t_delta_y','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_pt','t_eHcal_x','t_eHcal_y','t_p_x','t_p_y','t_eMipDR'] |
merged = pd.merge(dfspu, dfsnpu , on=['t_Event','t_ieta','t_iphi']) | |
merged3 = merged | |
npu_entries = tree2.numentries | |
int | npu_start = 0 |
int | npu_stop = index+scale |
parser = argparse.ArgumentParser() | |
int | scale = 5000000 |
start = parser.parse_args().start | |
stop = parser.parse_args().end | |
tree1 = uproot3.open(fName1)['hcalIsoTrkAnalyzer/CalibTree'] | |
tree2 = uproot3.open(fName2)['hcalIsoTrkAnalyzer/CalibTree'] | |
list isotrackRootTreeMaker.branches_skim = ['t_Event','t_ieta','t_iphi','t_p','t_eHcal','t_eHcal10','t_eHcal30'] |
Definition at line 74 of file isotrackRootTreeMaker.py.
list isotrackRootTreeMaker.branchesnpu = ['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 41 of file isotrackRootTreeMaker.py.
list isotrackRootTreeMaker.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 39 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.columns |
Definition at line 58 of file isotrackRootTreeMaker.py.
tuple isotrackRootTreeMaker.cuts_npu = (dfsnpu['t_selectTk'])&(dfsnpu['t_qltyFlag'])&(dfsnpu['t_hmaxNearP']<20)&(dfsnpu['t_eMipDR']<1)&(abs(dfsnpu['t_p'] - 50)<10)&(dfsnpu['t_eHcal']>10) |
Definition at line 67 of file isotrackRootTreeMaker.py.
tuple isotrackRootTreeMaker.cuts_pu = (dfspu['t_selectTk'])&(dfspu['t_qltyFlag'])&(dfspu['t_hmaxNearP']<20)&(dfspu['t_eMipDR']<1)&(abs(dfspu['t_p'] - 50)<10)&(dfspu['t_eHcal']>10) |
Definition at line 65 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.dfsnpu = pd.DataFrame.from_dict(dictnpu) |
Definition at line 59 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.dfspu = pd.DataFrame.from_dict(dictpu) |
Definition at line 57 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.dictnpu = tree2.arrays(branchesnpu, entrystart=npu_start, entrystop=npu_stop) |
Definition at line 55 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.dictpu = tree1.arrays(branchespu, entrystart=int(start), entrystop=int(stop)) |
Definition at line 43 of file isotrackRootTreeMaker.py.
Definition at line 88 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.fName1 = parser.parse_args().filePU |
Definition at line 24 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.fName2 = parser.parse_args().fileNPU |
Definition at line 25 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.foutput = parser.parse_args().opfilename |
Definition at line 26 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.help |
Definition at line 17 of file isotrackRootTreeMaker.py.
int isotrackRootTreeMaker.i = 0 |
Definition at line 49 of file isotrackRootTreeMaker.py.
list isotrackRootTreeMaker.keepvars = ['t_nVtx','t_ieta','t_eHcal10_x','t_eHcal30_x','t_delta_x','t_eHcal10_y','t_eHcal30_y','t_delta_y','t_hmaxNearP','t_emaxNearP','t_hAnnular','t_eAnnular','t_rhoh','t_pt','t_eHcal_x','t_eHcal_y','t_p_x','t_p_y','t_eMipDR'] |
Definition at line 80 of file isotrackRootTreeMaker.py.
Definition at line 77 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.merged3 = merged |
Definition at line 82 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.npu_entries = tree2.numentries |
Definition at line 45 of file isotrackRootTreeMaker.py.
int isotrackRootTreeMaker.npu_start = 0 |
Definition at line 48 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.npu_stop = index+scale |
Definition at line 52 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.parser = argparse.ArgumentParser() |
Definition at line 15 of file isotrackRootTreeMaker.py.
int isotrackRootTreeMaker.scale = 5000000 |
Definition at line 47 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.start = parser.parse_args().start |
Definition at line 27 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.stop = parser.parse_args().end |
Definition at line 28 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.tree1 = uproot3.open(fName1)['hcalIsoTrkAnalyzer/CalibTree'] |
Definition at line 31 of file isotrackRootTreeMaker.py.
isotrackRootTreeMaker.tree2 = uproot3.open(fName2)['hcalIsoTrkAnalyzer/CalibTree'] |
Definition at line 34 of file isotrackRootTreeMaker.py.