1727 {
1728 MsgStream log(
msgSvc(), name());
1729
1730 NTuplePtr nt1(
ntupleSvc(),
"mdcHoughFinder/hit");
1731 if ( nt1 ){
1732 ntuple_hit= nt1;
1733 } else {
1734 ntuple_hit=
ntupleSvc()->book(
"mdcHoughFinder/hit", CLID_ColumnWiseTuple,
"hit");
1735 if(ntuple_hit){
1736 ntuple_hit->addItem("hit_run", m_hit_run);
1737 ntuple_hit->addItem("hit_evt", m_hit_evt);
1738 ntuple_hit->addItem("hit_nhit", m_hit_nhit, 0, 10000);
1739 ntuple_hit->addItem("hit_hitid", m_hit_nhit, m_hit_hitid);
1740 ntuple_hit->addItem("hit_layer", m_hit_nhit, m_hit_layer);
1741 ntuple_hit->addItem("hit_wire", m_hit_nhit, m_hit_wire);
1742 ntuple_hit->addItem("hit_x", m_hit_nhit, m_hit_x);
1743 ntuple_hit->addItem("hit_y", m_hit_nhit, m_hit_y);
1744 ntuple_hit->addItem("hit_z", m_hit_nhit, m_hit_z);
1745 ntuple_hit->addItem("hit_driftdist", m_hit_nhit, m_hit_driftdist);
1746 ntuple_hit->addItem("hit_drifttime", m_hit_nhit, m_hit_drifttime);
1747 ntuple_hit->addItem("hit_flag", m_hit_nhit, m_hit_flag);
1748 ntuple_hit->addItem("hit_truth_x", m_hit_nhit, m_hit_truth_x);
1749 ntuple_hit->addItem("hit_truth_y", m_hit_nhit, m_hit_truth_y);
1750 ntuple_hit->addItem("hit_truth_z", m_hit_nhit, m_hit_truth_z);
1751 ntuple_hit->addItem("hit_truth_drift", m_hit_nhit, m_hit_truth_drift);
1752 ntuple_hit->addItem("hit_truth_ambig", m_hit_nhit, m_hit_truth_ambig);
1753 } else { log << MSG::ERROR << "Cannot book tuple mdcHoughFinder/hit" <<endmsg;
1754 return StatusCode::FAILURE;
1755 }
1756 }
1757
1758 NTuplePtr nt2(
ntupleSvc(),
"mdcHoughFinder/hot");
1759 if ( nt2 ){
1760 ntuple_hot = nt2;
1761 } else {
1762 ntuple_hot =
ntupleSvc()->book(
"mdcHoughFinder/hot", CLID_ColumnWiseTuple,
"hot");
1763 if(ntuple_hot){
1764 ntuple_hot->addItem("hot_run", m_hot_run);
1765 ntuple_hot->addItem("hot_evt", m_hot_evt);
1766 ntuple_hot->addItem("hot_trk", m_hot_trk);
1767 ntuple_hot->addItem("hot_nhot", m_hot_nhot, 0, 1000 );
1768 ntuple_hot->addItem("hot_hitid", m_hot_nhot, m_hot_hitid);
1769 ntuple_hot->addItem("hot_layer", m_hot_nhot, m_hot_layer);
1770 ntuple_hot->addItem("hot_wire", m_hot_nhot, m_hot_wire);
1771 ntuple_hot->addItem("hot_x", m_hot_nhot, m_hot_x);
1772 ntuple_hot->addItem("hot_y", m_hot_nhot, m_hot_y);
1773 ntuple_hot->addItem("hot_z", m_hot_nhot, m_hot_z);
1774 ntuple_hot->addItem("hot_x0", m_hot_nhot, m_hot_x0);
1775 ntuple_hot->addItem("hot_y0", m_hot_nhot, m_hot_y0);
1776 ntuple_hot->addItem("hot_z0", m_hot_nhot, m_hot_z0);
1777 ntuple_hot->addItem("hot_s0", m_hot_nhot, m_hot_s0);
1778 ntuple_hot->addItem("hot_x1", m_hot_nhot, m_hot_x1);
1779 ntuple_hot->addItem("hot_y1", m_hot_nhot, m_hot_y1);
1780 ntuple_hot->addItem("hot_z1", m_hot_nhot, m_hot_z1);
1781 ntuple_hot->addItem("hot_s1", m_hot_nhot, m_hot_s1);
1782 ntuple_hot->addItem("hot_drift", m_hot_nhot, m_hot_drift);
1783 ntuple_hot->addItem("hot_flag", m_hot_nhot, m_hot_flag);
1784 ntuple_hot->addItem("hot_deltaD", m_hot_nhot, m_hot_deltaD);
1785 ntuple_hot->addItem("hot_truth_x", m_hot_nhot, m_hot_truth_x);
1786 ntuple_hot->addItem("hot_truth_y", m_hot_nhot, m_hot_truth_y);
1787 ntuple_hot->addItem("hot_truth_z", m_hot_nhot, m_hot_truth_z);
1788 ntuple_hot->addItem("hot_truth_drift", m_hot_nhot, m_hot_truth_drift);
1789 ntuple_hot->addItem("hot_truth_ambig", m_hot_nhot, m_hot_truth_ambig);
1790
1791 } else { log << MSG::ERROR << "Cannot book tuple mdcHoughFinder/hot" <<endmsg;
1792 return StatusCode::FAILURE;
1793 }
1794 }
1795
1796 NTuplePtr nt3(
ntupleSvc(),
"mdcHoughFinder/trk");
1797 if ( nt3 ){
1798 ntuple_trk = nt3;
1799 } else {
1800 ntuple_trk =
ntupleSvc()->book(
"mdcHoughFinder/trk", CLID_ColumnWiseTuple,
"trk");
1801 if(ntuple_trk){
1802 ntuple_trk->addItem("trk_run", m_trk_run);
1803 ntuple_trk->addItem("trk_evt", m_trk_evt);
1804 ntuple_trk->addItem("trk_ntrk", m_trk_ntrk);
1805 ntuple_trk->addItem("trk_size", m_trk_size, 0, 100);
1806 ntuple_trk->addItem("trk_trackId", m_trk_size, m_trk_trackId);
1807 ntuple_trk->addItem("trk_charge", m_trk_size, m_trk_charge);
1808 ntuple_trk->addItem("trk_dr", m_trk_size, m_trk_dr);
1809 ntuple_trk->addItem("trk_phi0", m_trk_size, m_trk_phi0);
1810 ntuple_trk->addItem("trk_kappa", m_trk_size, m_trk_kappa);
1811 ntuple_trk->addItem("trk_dz", m_trk_size, m_trk_dz);
1812 ntuple_trk->addItem("trk_tanl", m_trk_size, m_trk_tanl);
1813 ntuple_trk->addItem("trk_pxy", m_trk_size, m_trk_pxy);
1814 ntuple_trk->addItem("trk_px", m_trk_size, m_trk_px);
1815 ntuple_trk->addItem("trk_py", m_trk_size, m_trk_py);
1816 ntuple_trk->addItem("trk_pz", m_trk_size, m_trk_pz);
1817 ntuple_trk->addItem("trk_p", m_trk_size, m_trk_p);
1818 ntuple_trk->addItem("trk_theta", m_trk_size, m_trk_theta);
1819 ntuple_trk->addItem("trk_phi", m_trk_size, m_trk_phi);
1820 ntuple_trk->addItem("trk_x", m_trk_size, m_trk_x);
1821 ntuple_trk->addItem("trk_y", m_trk_size, m_trk_y);
1822 ntuple_trk->addItem("trk_z", m_trk_size, m_trk_z);
1823 ntuple_trk->addItem("trk_r", m_trk_size, m_trk_r);
1824 ntuple_trk->addItem("trk_chi2", m_trk_size, m_trk_chi2);
1825 ntuple_trk->addItem("trk_fiTerm", m_trk_size, m_trk_fiTerm);
1826 ntuple_trk->addItem("trk_matchChi2", m_trk_size, m_trk_matchChi2);
1827 ntuple_trk->addItem("trk_nhit", m_trk_size, m_trk_nhit);
1828 ntuple_trk->addItem("trk_ncluster", m_trk_size, m_trk_ncluster);
1829 ntuple_trk->addItem("trk_stat", m_trk_size, m_trk_stat);
1830 ntuple_trk->addItem("trk_ndof", m_trk_size, m_trk_ndof);
1831 ntuple_trk->addItem("trk_nster", m_trk_size, m_trk_nster);
1832 ntuple_trk->addItem("trk_nlayer", m_trk_size, m_trk_nlayer);
1833 ntuple_trk->addItem("trk_firstLayer", m_trk_size, m_trk_firstLayer);
1834 ntuple_trk->addItem("trk_lastLayer", m_trk_size, m_trk_lastLayer);
1835 ntuple_trk->addItem("trk_nCgemXClusters", m_trk_size, m_trk_nCgemXClusters);
1836 ntuple_trk->addItem("trk_nCgemVClusters", m_trk_size, m_trk_nCgemVClusters);
1837 ntuple_trk->addItem("trk_nhop", m_trk_size, m_trk_nhop);
1838 ntuple_trk->addItem("trk_nhot", m_trk_size, m_trk_nhot);
1839 ntuple_trk->addItem("trk_Xc", m_trk_size, m_trk_Xc);
1840 ntuple_trk->addItem("trk_Yc", m_trk_size, m_trk_Yc);
1841 ntuple_trk->addItem("trk_R", m_trk_size, m_trk_R);
1842
1843 ntuple_trk->addItem("trk_truth_charge", m_trk_size, m_trk_truth_charge);
1844 ntuple_trk->addItem("trk_truth_dr", m_trk_size, m_trk_truth_dr);
1845 ntuple_trk->addItem("trk_truth_phi0", m_trk_size, m_trk_truth_phi0);
1846 ntuple_trk->addItem("trk_truth_kappa", m_trk_size, m_trk_truth_kappa);
1847 ntuple_trk->addItem("trk_truth_dz", m_trk_size, m_trk_truth_dz);
1848 ntuple_trk->addItem("trk_truth_tanl", m_trk_size, m_trk_truth_tanl);
1849 ntuple_trk->addItem("trk_truth_pxy", m_trk_size, m_trk_truth_pxy);
1850 ntuple_trk->addItem("trk_truth_px", m_trk_size, m_trk_truth_px);
1851 ntuple_trk->addItem("trk_truth_py", m_trk_size, m_trk_truth_py);
1852 ntuple_trk->addItem("trk_truth_pz", m_trk_size, m_trk_truth_pz);
1853 ntuple_trk->addItem("trk_truth_p", m_trk_size, m_trk_truth_p);
1854 ntuple_trk->addItem("trk_truth_theta", m_trk_size, m_trk_truth_theta);
1855 ntuple_trk->addItem("trk_truth_phi", m_trk_size, m_trk_truth_phi);
1856 ntuple_trk->addItem("trk_truth_x", m_trk_size, m_trk_truth_x);
1857 ntuple_trk->addItem("trk_truth_y", m_trk_size, m_trk_truth_y);
1858 ntuple_trk->addItem("trk_truth_z", m_trk_size, m_trk_truth_z);
1859 ntuple_trk->addItem("trk_truth_r", m_trk_size, m_trk_truth_r);
1860 ntuple_trk->addItem("trk_truth_cosTheta", m_trk_size, m_trk_truth_cosTheta);
1861 ntuple_trk->addItem("trk_truth_Xc", m_trk_size, m_trk_truth_Xc);
1862 ntuple_trk->addItem("trk_truth_Yc", m_trk_size, m_trk_truth_Yc);
1863 ntuple_trk->addItem("trk_truth_R", m_trk_size, m_trk_truth_R);
1864
1865 } else { log << MSG::ERROR << "Cannot book tuple mdcHoughFinder/trk" <<endmsg;
1866 return StatusCode::FAILURE;
1867 }
1868 }
1869 return StatusCode::SUCCESS;
1870}