CMS 3D CMS Logo

Variables
isotrackRootTreeMaker Namespace Reference

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']
 

Variable Documentation

◆ branches_skim

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.

◆ branchesnpu

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.

◆ branchespu

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.

◆ columns

isotrackRootTreeMaker.columns

Definition at line 58 of file isotrackRootTreeMaker.py.

◆ cuts_npu

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.

◆ cuts_pu

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.

◆ dfsnpu

isotrackRootTreeMaker.dfsnpu = pd.DataFrame.from_dict(dictnpu)

Definition at line 59 of file isotrackRootTreeMaker.py.

◆ dfspu

isotrackRootTreeMaker.dfspu = pd.DataFrame.from_dict(dictpu)

Definition at line 57 of file isotrackRootTreeMaker.py.

◆ dictnpu

isotrackRootTreeMaker.dictnpu = tree2.arrays(branchesnpu, entrystart=npu_start, entrystop=npu_stop)

Definition at line 55 of file isotrackRootTreeMaker.py.

◆ dictpu

isotrackRootTreeMaker.dictpu = tree1.arrays(branchespu, entrystart=int(start), entrystop=int(stop))

Definition at line 43 of file isotrackRootTreeMaker.py.

◆ final_df_hi

isotrackRootTreeMaker.final_df_hi = merged3[keepvars]

Definition at line 88 of file isotrackRootTreeMaker.py.

◆ fName1

isotrackRootTreeMaker.fName1 = parser.parse_args().filePU

Definition at line 24 of file isotrackRootTreeMaker.py.

◆ fName2

isotrackRootTreeMaker.fName2 = parser.parse_args().fileNPU

Definition at line 25 of file isotrackRootTreeMaker.py.

◆ foutput

isotrackRootTreeMaker.foutput = parser.parse_args().opfilename

Definition at line 26 of file isotrackRootTreeMaker.py.

◆ help

isotrackRootTreeMaker.help

Definition at line 17 of file isotrackRootTreeMaker.py.

◆ i

int isotrackRootTreeMaker.i = 0

Definition at line 49 of file isotrackRootTreeMaker.py.

◆ keepvars

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.

◆ merged

isotrackRootTreeMaker.merged = pd.merge(dfspu, dfsnpu , on=['t_Event','t_ieta','t_iphi'])

Definition at line 77 of file isotrackRootTreeMaker.py.

◆ merged3

isotrackRootTreeMaker.merged3 = merged

Definition at line 82 of file isotrackRootTreeMaker.py.

◆ npu_entries

isotrackRootTreeMaker.npu_entries = tree2.numentries

Definition at line 45 of file isotrackRootTreeMaker.py.

◆ npu_start

int isotrackRootTreeMaker.npu_start = 0

Definition at line 48 of file isotrackRootTreeMaker.py.

◆ npu_stop

isotrackRootTreeMaker.npu_stop = index+scale

Definition at line 52 of file isotrackRootTreeMaker.py.

◆ parser

isotrackRootTreeMaker.parser = argparse.ArgumentParser()

Definition at line 15 of file isotrackRootTreeMaker.py.

◆ scale

int isotrackRootTreeMaker.scale = 5000000

Definition at line 47 of file isotrackRootTreeMaker.py.

◆ start

isotrackRootTreeMaker.start = parser.parse_args().start

Definition at line 27 of file isotrackRootTreeMaker.py.

◆ stop

isotrackRootTreeMaker.stop = parser.parse_args().end

Definition at line 28 of file isotrackRootTreeMaker.py.

◆ tree1

isotrackRootTreeMaker.tree1 = uproot3.open(fName1)['hcalIsoTrkAnalyzer/CalibTree']

Definition at line 31 of file isotrackRootTreeMaker.py.

◆ tree2

isotrackRootTreeMaker.tree2 = uproot3.open(fName2)['hcalIsoTrkAnalyzer/CalibTree']

Definition at line 34 of file isotrackRootTreeMaker.py.