![]() |
ATLAS Offline Software
|
Functions | |
| def | DrawTLatex (x, y, text, size=18, font=43, align=11) |
| def | saveHisto (plot_options, histo) |
Variables | |
| parser | |
| description | |
| string | prog = 'plotIsoValidation', |
| formatter_class = argparse.ArgumentDefaultsHelpFormatter) | |
| help | |
| default | |
| action | |
| options = parser.parse_args() | |
| inFile = ROOT.TFile.Open(options.inFile, "READ") | |
| anaTree = inFile.Get("IsoCorrTest") | |
| Elec_Track_Iso = ROOT.TH1D("elec_track_iso", "track isolation", 55, -5, 50) | |
| Prepare the histograms to be filled in the simple analysis. More... | |
| Elec_Calo_Iso = ROOT.TH1D("elec_calo_iso", "calorimeter isolation", 55, -5, 50) | |
| Muon_Track_Iso = ROOT.TH1D("muon_track_iso", "track isolation", 55, -5, 50) | |
| Muon_Calo_Iso = ROOT.TH1D("muon_calo_iso", "calorimeter isolation", 55, -5, 50) | |
| Elec_RelTrack_Iso = ROOT.TH1D("elec_rel_track_iso", "track isolation", 52, -0.04, 1) | |
| Isolation / pt of the particles. More... | |
| Elec_RelCalo_Iso = ROOT.TH1D("elec_rel_calo_iso", "track isolation", 52, -0.04, 1) | |
| Muon_RelTrack_Iso = ROOT.TH1D("muon_rel_track_iso", "track isolation", 52, -0.04, 1) | |
| Muon_RelCalo_Iso = ROOT.TH1D("muon_rel_calo_iso", "track isolation", 52, -0.04, 1) | |
| Elec_Track_polution_dR = ROOT.TH2D("elec_track_polution_dR", "track_isolaiton against dR",50, 0, 0.5, 100, -1.5, 1.5 ) | |
| Isolation / track of the closest particle — deltaR. More... | |
| Elec_Topo_polution_dR = ROOT.TH2D("elec_calo_polution_dR", "calorimeter isolation against dR",50, 0, 0.5, 100, -1.5, 1.5) | |
| Muon_Track_polution_dR = ROOT.TH2D("muon_track_polution_dR", "track_isolaiton against dR", 50, 0, 0.5, 100, -1.5, 1.5) | |
| Muon_Topo_polution_dR = ROOT.TH2D("muon_calo_polution_dR", "calorimeter isolation against dR", 50, 0, 0.5, 100, -1.5, 1.5) | |
| N_Isolated_Muon = ROOT.TH1D("N_muons", "Isolated #mu", 6, 0, 6); | |
| N_Isolated_Elec = ROOT.TH1D("N_elec", "Elec #mu", 6, 0, 6); | |
| list | AllHistos |
| treeReader = ROOT.TTreeReader("IsoCorrTest", inFile) | |
| list | branch_names = [ B.GetName() for B in anaTree.GetListOfBranches() ] |
| list | mu_trk_cone_names = [b [ b.find("Corr" if options.useCorrectedCones else "Orig") + 5 :] for b in branch_names if b.find("Muons_%s_pt"%("Corr" if options.useCorrectedCones else "Orig")) != -1] |
| Find the isolation variables in the list of branches. More... | |
| list | mu_calo_cone_names |
| list | el_trk_cone_names = [ b [ b.find("Corr" if options.useCorrectedCones else "Orig") + 5 :] for b in branch_names if b.find("Electrons_%s_pt"%("Corr" if options.useCorrectedCones else "Orig")) != -1] |
| list | el_calo_cone_names |
| mu_pt = ROOT.TTreeReaderArray(float)(treeReader, "Muons_pt") | |
| mu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Muons_eta") | |
| mu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Muons_phi") | |
| mu_trk = ROOT.TTreeReaderArray(float)(treeReader, "Muons_trackPt") | |
| mu_clu = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterEt") | |
| mu_clu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterEta") | |
| mu_clu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterPhi") | |
| int | mu_trk_iso = ROOT.TTreeReaderArray(float)(treeReader, "Muons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig", mu_trk_cone_names[0])) if len(mu_trk_cone_names) > 0 else None |
| int | mu_calo_iso = ROOT.TTreeReaderArray(float)(treeReader, "Muons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig",mu_calo_cone_names[0])) if len (mu_calo_cone_names) > 0 else None |
| el_pt = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_pt") | |
| el_eta = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_eta") | |
| el_phi = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_phi") | |
| el_trk = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_trackPt") | |
| el_clu = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterEt") | |
| el_clu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterEta") | |
| el_clu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterPhi") | |
| int | el_trk_iso = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig", el_trk_cone_names[0])) if len(el_trk_cone_names) > 0 else None |
| int | el_calo_iso = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig",el_calo_cone_names[0])) if len(el_calo_cone_names) > 0 else None |
| el_pass_iso = ROOT.TTreeReaderArray(bool)(treeReader, "Muons_%sPassIso"%("Corr" if options.useCorrectedCones else "Orig")) | |
| mu_pass_iso = ROOT.TTreeReaderArray(bool)(treeReader, "Electrons_%sPassIso"%("Corr" if options.useCorrectedCones else "Orig")) | |
| list | muon_t_vec = [] |
| list | elec_t_vec = [] |
| list | elec_t_calo_vec = [] |
| list | muon_t_calo_vec = [] |
| mu = ROOT.TLorentzVector() | |
| calo_mu = ROOT.TLorentzVector() | |
| el = ROOT.TLorentzVector() | |
| calo_el = ROOT.TLorentzVector() | |
| dummy_canvas = ROOT.TCanvas("dummy", "dummy", 800, 600) | |
| Fill the muon histogram. More... | |
| bool | saved_once = False |
| def plotIsoValidation.DrawTLatex | ( | x, | |
| y, | |||
| text, | |||
size = 18, |
|||
font = 43, |
|||
align = 11 |
|||
| ) |
Definition at line 7 of file plotIsoValidation.py.
| def plotIsoValidation.saveHisto | ( | plot_options, | |
| histo | |||
| ) |
Definition at line 17 of file plotIsoValidation.py.
| plotIsoValidation.action |
Definition at line 49 of file plotIsoValidation.py.
| list plotIsoValidation.AllHistos |
Definition at line 112 of file plotIsoValidation.py.
| plotIsoValidation.anaTree = inFile.Get("IsoCorrTest") |
Definition at line 61 of file plotIsoValidation.py.
| list plotIsoValidation.branch_names = [ B.GetName() for B in anaTree.GetListOfBranches() ] |
Definition at line 128 of file plotIsoValidation.py.
| plotIsoValidation.calo_el = ROOT.TLorentzVector() |
Definition at line 200 of file plotIsoValidation.py.
| plotIsoValidation.calo_mu = ROOT.TLorentzVector() |
Definition at line 192 of file plotIsoValidation.py.
| plotIsoValidation.default |
Definition at line 47 of file plotIsoValidation.py.
| plotIsoValidation.description |
Definition at line 42 of file plotIsoValidation.py.
| plotIsoValidation.dummy_canvas = ROOT.TCanvas("dummy", "dummy", 800, 600) |
Fill the muon histogram.
Fill the muon histogram
Definition at line 243 of file plotIsoValidation.py.
| plotIsoValidation.el = ROOT.TLorentzVector() |
Definition at line 197 of file plotIsoValidation.py.
| list plotIsoValidation.el_calo_cone_names |
Definition at line 136 of file plotIsoValidation.py.
| int plotIsoValidation.el_calo_iso = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig",el_calo_cone_names[0])) if len(el_calo_cone_names) > 0 else None |
Definition at line 172 of file plotIsoValidation.py.
| plotIsoValidation.el_clu = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterEt") |
Definition at line 167 of file plotIsoValidation.py.
| plotIsoValidation.el_clu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterEta") |
Definition at line 168 of file plotIsoValidation.py.
| plotIsoValidation.el_clu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_clusterPhi") |
Definition at line 169 of file plotIsoValidation.py.
| plotIsoValidation.el_eta = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_eta") |
Definition at line 164 of file plotIsoValidation.py.
| plotIsoValidation.el_pass_iso = ROOT.TTreeReaderArray(bool)(treeReader, "Muons_%sPassIso"%("Corr" if options.useCorrectedCones else "Orig")) |
Definition at line 174 of file plotIsoValidation.py.
| plotIsoValidation.el_phi = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_phi") |
Definition at line 165 of file plotIsoValidation.py.
| plotIsoValidation.el_pt = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_pt") |
Definition at line 163 of file plotIsoValidation.py.
| plotIsoValidation.el_trk = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_trackPt") |
Definition at line 166 of file plotIsoValidation.py.
| list plotIsoValidation.el_trk_cone_names = [ b [ b.find("Corr" if options.useCorrectedCones else "Orig") + 5 :] for b in branch_names if b.find("Electrons_%s_pt"%("Corr" if options.useCorrectedCones else "Orig")) != -1] |
Definition at line 135 of file plotIsoValidation.py.
| int plotIsoValidation.el_trk_iso = ROOT.TTreeReaderArray(float)(treeReader, "Electrons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig", el_trk_cone_names[0])) if len(el_trk_cone_names) > 0 else None |
Definition at line 171 of file plotIsoValidation.py.
| plotIsoValidation.Elec_Calo_Iso = ROOT.TH1D("elec_calo_iso", "calorimeter isolation", 55, -5, 50) |
Definition at line 70 of file plotIsoValidation.py.
| plotIsoValidation.Elec_RelCalo_Iso = ROOT.TH1D("elec_rel_calo_iso", "track isolation", 52, -0.04, 1) |
Definition at line 81 of file plotIsoValidation.py.
| plotIsoValidation.Elec_RelTrack_Iso = ROOT.TH1D("elec_rel_track_iso", "track isolation", 52, -0.04, 1) |
Isolation / pt of the particles.
Definition at line 79 of file plotIsoValidation.py.
| list plotIsoValidation.elec_t_calo_vec = [] |
Definition at line 182 of file plotIsoValidation.py.
| list plotIsoValidation.elec_t_vec = [] |
Definition at line 180 of file plotIsoValidation.py.
| plotIsoValidation.Elec_Topo_polution_dR = ROOT.TH2D("elec_calo_polution_dR", "calorimeter isolation against dR",50, 0, 0.5, 100, -1.5, 1.5) |
Definition at line 94 of file plotIsoValidation.py.
| plotIsoValidation.Elec_Track_Iso = ROOT.TH1D("elec_track_iso", "track isolation", 55, -5, 50) |
Prepare the histograms to be filled in the simple analysis.
Definition at line 68 of file plotIsoValidation.py.
| plotIsoValidation.Elec_Track_polution_dR = ROOT.TH2D("elec_track_polution_dR", "track_isolaiton against dR",50, 0, 0.5, 100, -1.5, 1.5 ) |
Isolation / track of the closest particle — deltaR.
Definition at line 90 of file plotIsoValidation.py.
| plotIsoValidation.formatter_class = argparse.ArgumentDefaultsHelpFormatter) |
Definition at line 44 of file plotIsoValidation.py.
| plotIsoValidation.help |
Definition at line 46 of file plotIsoValidation.py.
| plotIsoValidation.inFile = ROOT.TFile.Open(options.inFile, "READ") |
Definition at line 56 of file plotIsoValidation.py.
| plotIsoValidation.mu = ROOT.TLorentzVector() |
Definition at line 189 of file plotIsoValidation.py.
| list plotIsoValidation.mu_calo_cone_names |
Definition at line 131 of file plotIsoValidation.py.
| int plotIsoValidation.mu_calo_iso = ROOT.TTreeReaderArray(float)(treeReader, "Muons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig",mu_calo_cone_names[0])) if len (mu_calo_cone_names) > 0 else None |
Definition at line 161 of file plotIsoValidation.py.
| plotIsoValidation.mu_clu = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterEt") |
Definition at line 155 of file plotIsoValidation.py.
| plotIsoValidation.mu_clu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterEta") |
Definition at line 156 of file plotIsoValidation.py.
| plotIsoValidation.mu_clu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Muons_clusterPhi") |
Definition at line 157 of file plotIsoValidation.py.
| plotIsoValidation.mu_eta = ROOT.TTreeReaderArray(float)(treeReader, "Muons_eta") |
Definition at line 151 of file plotIsoValidation.py.
| plotIsoValidation.mu_pass_iso = ROOT.TTreeReaderArray(bool)(treeReader, "Electrons_%sPassIso"%("Corr" if options.useCorrectedCones else "Orig")) |
Definition at line 175 of file plotIsoValidation.py.
| plotIsoValidation.mu_phi = ROOT.TTreeReaderArray(float)(treeReader, "Muons_phi") |
Definition at line 152 of file plotIsoValidation.py.
| plotIsoValidation.mu_pt = ROOT.TTreeReaderArray(float)(treeReader, "Muons_pt") |
Definition at line 150 of file plotIsoValidation.py.
| plotIsoValidation.mu_trk = ROOT.TTreeReaderArray(float)(treeReader, "Muons_trackPt") |
Definition at line 153 of file plotIsoValidation.py.
| list plotIsoValidation.mu_trk_cone_names = [b [ b.find("Corr" if options.useCorrectedCones else "Orig") + 5 :] for b in branch_names if b.find("Muons_%s_pt"%("Corr" if options.useCorrectedCones else "Orig")) != -1] |
Find the isolation variables in the list of branches.
Definition at line 130 of file plotIsoValidation.py.
| int plotIsoValidation.mu_trk_iso = ROOT.TTreeReaderArray(float)(treeReader, "Muons_%s_%s"%("Corr" if options.useCorrectedCones else "Orig", mu_trk_cone_names[0])) if len(mu_trk_cone_names) > 0 else None |
Definition at line 160 of file plotIsoValidation.py.
| plotIsoValidation.Muon_Calo_Iso = ROOT.TH1D("muon_calo_iso", "calorimeter isolation", 55, -5, 50) |
Definition at line 75 of file plotIsoValidation.py.
| plotIsoValidation.Muon_RelCalo_Iso = ROOT.TH1D("muon_rel_calo_iso", "track isolation", 52, -0.04, 1) |
Definition at line 86 of file plotIsoValidation.py.
| plotIsoValidation.Muon_RelTrack_Iso = ROOT.TH1D("muon_rel_track_iso", "track isolation", 52, -0.04, 1) |
Definition at line 84 of file plotIsoValidation.py.
| list plotIsoValidation.muon_t_calo_vec = [] |
Definition at line 183 of file plotIsoValidation.py.
| list plotIsoValidation.muon_t_vec = [] |
Definition at line 179 of file plotIsoValidation.py.
| plotIsoValidation.Muon_Topo_polution_dR = ROOT.TH2D("muon_calo_polution_dR", "calorimeter isolation against dR", 50, 0, 0.5, 100, -1.5, 1.5) |
Definition at line 102 of file plotIsoValidation.py.
| plotIsoValidation.Muon_Track_Iso = ROOT.TH1D("muon_track_iso", "track isolation", 55, -5, 50) |
Definition at line 73 of file plotIsoValidation.py.
| plotIsoValidation.Muon_Track_polution_dR = ROOT.TH2D("muon_track_polution_dR", "track_isolaiton against dR", 50, 0, 0.5, 100, -1.5, 1.5) |
Definition at line 98 of file plotIsoValidation.py.
| plotIsoValidation.N_Isolated_Elec = ROOT.TH1D("N_elec", "Elec #mu", 6, 0, 6); |
Definition at line 109 of file plotIsoValidation.py.
| plotIsoValidation.N_Isolated_Muon = ROOT.TH1D("N_muons", "Isolated #mu", 6, 0, 6); |
Definition at line 106 of file plotIsoValidation.py.
| plotIsoValidation.options = parser.parse_args() |
Definition at line 50 of file plotIsoValidation.py.
| plotIsoValidation.parser |
Definition at line 42 of file plotIsoValidation.py.
| string plotIsoValidation.prog = 'plotIsoValidation', |
Definition at line 43 of file plotIsoValidation.py.
| plotIsoValidation.saved_once = False |
Definition at line 247 of file plotIsoValidation.py.
| plotIsoValidation.treeReader = ROOT.TTreeReader("IsoCorrTest", inFile) |
Definition at line 127 of file plotIsoValidation.py.
1.8.18