Changeset dd5e213 in git
- Timestamp:
- Jan 27, 2017, 3:15:13 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 50759fb
- Parents:
- 95b3531
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Validation.cpp
r95b3531 rdd5e213 1456 1456 TLegend *leg_trkpi_eff_eta = (TLegend*)leg_trkpi_res_eta->Clone(); 1457 1457 1458 1459 TGraphErrors gr_trkpi_res_pt[n_etabins], gr_trkpi_eff_pt[n_etabins], gr_trkpi_res_eta[n_ptbins], gr_trkpi_eff_eta[n_ptbins]; 1458 TGraphErrors *gr_trkpi_res_pt = new TGraphErrors[n_etabins]; 1459 TGraphErrors *gr_trkpi_eff_pt = new TGraphErrors[n_etabins]; 1460 TGraphErrors *gr_trkpi_res_eta = new TGraphErrors[n_ptbins]; 1461 TGraphErrors *gr_trkpi_eff_eta = new TGraphErrors[n_ptbins]; 1460 1462 TH1D* h_trkpi_eff_pt, *h_trkpi_eff_eta; 1461 1463 1462 std::vector<resolPlot> plots_trkpi_res_pt[n_etabins], plots_trkpi_res_eta[n_ptbins]; 1464 std::vector<resolPlot> *plots_trkpi_res_pt = new std::vector<resolPlot>[n_etabins]; 1465 std::vector<resolPlot> *plots_trkpi_res_eta = new std::vector<resolPlot>[n_ptbins]; 1463 1466 1464 1467 // loop over eta bins … … 1559 1562 TLegend *leg_trkele_eff_eta = (TLegend*)leg_trkele_res_eta->Clone(); 1560 1563 1561 TGraphErrors gr_trkele_res_pt[n_etabins], gr_trkele_eff_pt[n_etabins], gr_trkele_res_eta[n_ptbins], gr_trkele_eff_eta[n_ptbins]; 1564 TGraphErrors *gr_trkele_res_pt = new TGraphErrors[n_etabins]; 1565 TGraphErrors *gr_trkele_eff_pt = new TGraphErrors[n_etabins]; 1566 TGraphErrors *gr_trkele_res_eta = new TGraphErrors[n_ptbins]; 1567 TGraphErrors *gr_trkele_eff_eta = new TGraphErrors[n_ptbins]; 1568 1562 1569 TH1D* h_trkele_eff_pt, *h_trkele_eff_eta; 1563 1570 1564 std::vector<resolPlot> plots_trkele_res_pt[n_etabins], plots_trkele_res_eta[n_ptbins]; 1571 std::vector<resolPlot> *plots_trkele_res_pt = new std::vector<resolPlot>[n_etabins]; 1572 std::vector<resolPlot> *plots_trkele_res_eta = new std::vector<resolPlot>[n_ptbins]; 1565 1573 1566 1574 // loop over eta bins … … 1663 1671 1664 1672 1665 TGraphErrors gr_trkmu_res_pt[n_etabins], gr_trkmu_eff_pt[n_etabins], gr_trkmu_res_eta[n_ptbins], gr_trkmu_eff_eta[n_ptbins]; 1673 TGraphErrors *gr_trkmu_res_pt = new TGraphErrors[n_etabins]; 1674 TGraphErrors *gr_trkmu_eff_pt = new TGraphErrors[n_etabins]; 1675 TGraphErrors *gr_trkmu_res_eta = new TGraphErrors[n_ptbins]; 1676 TGraphErrors *gr_trkmu_eff_eta = new TGraphErrors[n_ptbins]; 1677 1666 1678 TH1D* h_trkmu_eff_pt, *h_trkmu_eff_eta; 1667 1679 1668 std::vector<resolPlot> plots_trkmu_res_pt[n_etabins], plots_trkmu_res_eta[n_ptbins]; 1680 std::vector<resolPlot> *plots_trkmu_res_pt = new std::vector<resolPlot>[n_etabins]; 1681 std::vector<resolPlot> *plots_trkmu_res_eta = new std::vector<resolPlot>[n_ptbins]; 1669 1682 1670 1683 // loop over eta bins … … 1764 1777 TLegend *leg_ecal_res_eta = new TLegend(0.60,0.59,0.95,0.90); 1765 1778 1766 TGraphErrors gr_ecal_res_e[n_etabins], gr_ecal_res_eta[n_ptbins]; 1767 1768 std::vector<resolPlot> plots_ecal_res_e[n_etabins], plots_ecal_res_eta[n_ptbins]; 1779 TGraphErrors *gr_ecal_res_e = new TGraphErrors[n_etabins]; 1780 TGraphErrors *gr_ecal_res_eta = new TGraphErrors[n_ptbins]; 1781 1782 std::vector<resolPlot> *plots_ecal_res_e = new std::vector<resolPlot>[n_etabins]; 1783 std::vector<resolPlot> *plots_ecal_res_eta = new std::vector<resolPlot>[n_ptbins]; 1769 1784 1770 1785 // loop over eta bins … … 1833 1848 TLegend *leg_hcal_res_eta = new TLegend(0.60,0.59,0.95,0.90); 1834 1849 1835 TGraphErrors gr_hcal_res_e[n_etabins], gr_hcal_res_eta[n_ptbins]; 1836 1837 std::vector<resolPlot> plots_hcal_res_e[n_etabins], plots_hcal_res_eta[n_ptbins]; 1850 TGraphErrors *gr_hcal_res_e = new TGraphErrors[n_etabins]; 1851 TGraphErrors *gr_hcal_res_eta = new TGraphErrors[n_ptbins]; 1852 1853 std::vector<resolPlot> *plots_hcal_res_e = new std::vector<resolPlot>[n_etabins]; 1854 std::vector<resolPlot> *plots_hcal_res_eta = new std::vector<resolPlot>[n_ptbins]; 1838 1855 1839 1856 // loop over eta bins … … 1903 1920 TLegend *leg_pfele_res_eta[n_ptbins]; 1904 1921 1905 TGraphErrors gr_pfele_res_e[n_etabins]; 1906 TGraphErrors gr_pfele_res_eta[n_ptbins]; 1907 1908 TGraphErrors gr_trkele_res_e[n_etabins]; 1909 TGraphErrors gr_trkele_res_eeta[n_ptbins]; 1910 1911 std::vector<resolPlot> plots_pfele_res_e[n_etabins], plots_pfele_res_eta[n_ptbins]; 1912 std::vector<resolPlot> plots_trkele_res_e[n_etabins], plots_trkele_res_eeta[n_ptbins]; 1922 TGraphErrors *gr_pfele_res_e = new TGraphErrors[n_etabins]; 1923 TGraphErrors *gr_pfele_res_eta = new TGraphErrors[n_ptbins]; 1924 TGraphErrors *gr_trkele_res_e = new TGraphErrors[n_etabins]; 1925 TGraphErrors *gr_trkele_res_eeta = new TGraphErrors[n_ptbins]; 1926 1927 std::vector<resolPlot> *plots_pfele_res_e = new std::vector<resolPlot>[n_etabins]; 1928 std::vector<resolPlot> *plots_pfele_res_eta = new std::vector<resolPlot>[n_ptbins]; 1929 std::vector<resolPlot> *plots_trkele_res_e = new std::vector<resolPlot>[n_etabins]; 1930 std::vector<resolPlot> *plots_trkele_res_eeta = new std::vector<resolPlot>[n_ptbins]; 1913 1931 1914 1932 TCanvas *c_pfele_res_e[n_etabins]; … … 2010 2028 TLegend *leg_pfpi_res_eta[n_ptbins]; 2011 2029 2012 TGraphErrors gr_pfpi_res_e[n_etabins]; 2013 TGraphErrors gr_pfpi_res_eta[n_ptbins]; 2014 2015 TGraphErrors gr_trkpi_res_e[n_etabins]; 2016 TGraphErrors gr_trkpi_res_eeta[n_ptbins]; 2017 2018 std::vector<resolPlot> plots_pfpi_res_e[n_etabins], plots_pfpi_res_eta[n_ptbins]; 2019 std::vector<resolPlot> plots_trkpi_res_e[n_etabins], plots_trkpi_res_eeta[n_ptbins]; 2030 TGraphErrors *gr_pfpi_res_e = new TGraphErrors[n_etabins]; 2031 TGraphErrors *gr_pfpi_res_eta = new TGraphErrors[n_ptbins]; 2032 2033 TGraphErrors *gr_trkpi_res_e = new TGraphErrors[n_etabins]; 2034 TGraphErrors *gr_trkpi_res_eeta = new TGraphErrors[n_ptbins]; 2035 2036 std::vector<resolPlot> *plots_pfpi_res_e = new std::vector<resolPlot>[n_etabins]; 2037 std::vector<resolPlot> *plots_pfpi_res_eta = new std::vector<resolPlot>[n_ptbins]; 2038 std::vector<resolPlot> *plots_trkpi_res_e = new std::vector<resolPlot>[n_etabins]; 2039 std::vector<resolPlot> *plots_trkpi_res_eeta = new std::vector<resolPlot>[n_ptbins]; 2020 2040 2021 2041 TCanvas *c_pfpi_res_e[n_etabins]; … … 2119 2139 TLegend *leg_pfjet_res_eta[n_ptbins]; 2120 2140 2121 TGraphErrors gr_pfjet_res_e[n_etabins]; 2122 TGraphErrors gr_pfjet_res_eta[n_ptbins]; 2123 2124 TGraphErrors gr_cajet_res_e[n_etabins]; 2125 TGraphErrors gr_cajet_res_eta[n_ptbins]; 2126 2127 std::vector<resolPlot> plots_pfjet_res_e[n_etabins], plots_pfjet_res_eta[n_ptbins]; 2128 std::vector<resolPlot> plots_cajet_res_e[n_etabins], plots_cajet_res_eta[n_ptbins]; 2141 TGraphErrors *gr_pfjet_res_e = new TGraphErrors[n_etabins]; 2142 TGraphErrors *gr_pfjet_res_eta = new TGraphErrors[n_ptbins]; 2143 2144 TGraphErrors *gr_cajet_res_e = new TGraphErrors[n_etabins]; 2145 TGraphErrors *gr_cajet_res_eta = new TGraphErrors[n_ptbins]; 2146 2147 std::vector<resolPlot> *plots_pfjet_res_e = new std::vector<resolPlot>[n_etabins]; 2148 std::vector<resolPlot> *plots_pfjet_res_eta = new std::vector<resolPlot>[n_ptbins]; 2149 std::vector<resolPlot> *plots_cajet_res_e = new std::vector<resolPlot>[n_etabins]; 2150 std::vector<resolPlot> *plots_cajet_res_eta = new std::vector<resolPlot>[n_ptbins]; 2129 2151 2130 2152 TCanvas *c_pfjet_res_e[n_etabins]; … … 2260 2282 TLegend *leg_recele_eff_eta = new TLegend(0.55,0.22,0.90,0.48); 2261 2283 2262 TGraphErrors gr_recele_eff_pt[n_etabins], gr_recele_eff_eta[n_ptbins]; 2284 TGraphErrors *gr_recele_eff_pt = new TGraphErrors[n_etabins]; 2285 TGraphErrors *gr_recele_eff_eta = new TGraphErrors[n_ptbins]; 2263 2286 TH1D* h_recele_eff_pt, *h_recele_eff_eta; 2264 2287 … … 2325 2348 TLegend *leg_recmu_eff_eta = new TLegend(0.55,0.22,0.90,0.48); 2326 2349 2327 TGraphErrors gr_recmu_eff_pt[n_etabins], gr_recmu_eff_eta[n_ptbins]; 2350 TGraphErrors *gr_recmu_eff_pt = new TGraphErrors[n_etabins]; 2351 TGraphErrors *gr_recmu_eff_eta = new TGraphErrors[n_ptbins]; 2328 2352 TH1D* h_recmu_eff_pt, *h_recmu_eff_eta; 2329 2353 … … 2390 2414 TLegend *leg_recpho_eff_eta = new TLegend(0.55,0.22,0.90,0.48); 2391 2415 2392 TGraphErrors gr_recpho_eff_pt[n_etabins], gr_recpho_eff_eta[n_ptbins]; 2416 TGraphErrors *gr_recpho_eff_pt = new TGraphErrors[n_etabins]; 2417 TGraphErrors *gr_recpho_eff_eta = new TGraphErrors[n_ptbins]; 2393 2418 TH1D* h_recpho_eff_pt, *h_recpho_eff_eta; 2394 2419 … … 2455 2480 TLegend *leg_recbjet_eff_eta = new TLegend(0.50,0.22,0.90,0.48); 2456 2481 2457 TGraphErrors gr_recbjet_eff_pt[n_etabins], gr_recbjet_eff_eta[n_ptbins]; 2482 TGraphErrors *gr_recbjet_eff_pt = new TGraphErrors[n_etabins]; 2483 TGraphErrors *gr_recbjet_eff_eta = new TGraphErrors[n_ptbins]; 2458 2484 TH1D* h_recbjet_eff_pt, *h_recbjet_eff_eta; 2459 2485 … … 2517 2543 TLegend *leg_recbjet_cmis_eta = new TLegend(0.50,0.64,0.90,0.90); 2518 2544 2519 TGraphErrors gr_recbjet_cmis_pt[n_etabins], gr_recbjet_cmis_eta[n_ptbins]; 2545 TGraphErrors *gr_recbjet_cmis_pt = new TGraphErrors[n_etabins]; 2546 TGraphErrors *gr_recbjet_cmis_eta = new TGraphErrors[n_ptbins]; 2520 2547 TH1D* h_recbjet_cmis_pt, *h_recbjet_cmis_eta; 2521 2548 … … 2579 2606 TLegend *leg_recbjet_lmis_eta = new TLegend(0.50,0.64,0.90,0.90); 2580 2607 2581 TGraphErrors gr_recbjet_lmis_pt[n_etabins], gr_recbjet_lmis_eta[n_ptbins]; 2608 TGraphErrors *gr_recbjet_lmis_pt = new TGraphErrors[n_etabins]; 2609 TGraphErrors *gr_recbjet_lmis_eta = new TGraphErrors[n_ptbins]; 2582 2610 TH1D* h_recbjet_lmis_pt, *h_recbjet_lmis_eta; 2583 2611 … … 2644 2672 TLegend *leg_rectaujet_eff_eta = new TLegend(0.50,0.22,0.90,0.48); 2645 2673 2646 TGraphErrors gr_rectaujet_eff_pt[n_etabins], gr_rectaujet_eff_eta[n_ptbins]; 2674 TGraphErrors *gr_rectaujet_eff_pt = new TGraphErrors[n_etabins]; 2675 TGraphErrors *gr_rectaujet_eff_eta = new TGraphErrors[n_ptbins]; 2647 2676 TH1D* h_rectaujet_eff_pt, *h_rectaujet_eff_eta; 2648 2677 … … 2708 2737 TLegend *leg_rectaujet_mis_eta = new TLegend(0.50,0.64,0.90,0.90); 2709 2738 2710 TGraphErrors gr_rectaujet_mis_pt[n_etabins], gr_rectaujet_mis_eta[n_ptbins]; 2739 TGraphErrors *gr_rectaujet_mis_pt = new TGraphErrors[n_etabins]; 2740 TGraphErrors *gr_rectaujet_mis_eta = new TGraphErrors[n_ptbins]; 2711 2741 TH1D* h_rectaujet_mis_pt, *h_rectaujet_mis_eta; 2712 2742
Note:
See TracChangeset
for help on using the changeset viewer.