1654 AutoResettingStringSteam sstr;
1656 std::string MaxTrackHitsIndexStr(
"[" + sstr.str() +
"]");
1661 BranchName =
"ntracks_" + TrackLabel;
1662 CreateBranch(BranchName, &
ntracks, BranchName +
"/S");
1663 std::string NTracksIndexStr =
"[" + BranchName +
"]";
1665 BranchName =
"trkId_" + TrackLabel;
1666 CreateBranch(BranchName,
trkId, BranchName + NTracksIndexStr +
"/S");
1668 BranchName =
"trkncosmictags_tagger_" + TrackLabel;
1671 BranchName =
"trkcosmicscore_tagger_" + TrackLabel;
1674 BranchName =
"trkcosmictype_tagger_" + TrackLabel;
1677 BranchName =
"trkncosmictags_containmenttagger_" + TrackLabel;
1680 BranchName =
"trkcosmicscore_containmenttagger_" + TrackLabel;
1683 BranchName =
"trkcosmictype_containmenttagger_" + TrackLabel;
1686 BranchName =
"trkncosmictags_flashmatch_" + TrackLabel;
1689 BranchName =
"trkcosmicscore_flashmatch_" + TrackLabel;
1692 BranchName =
"trkcosmictype_flashmatch_" + TrackLabel;
1695 BranchName =
"trkke_" + TrackLabel;
1696 CreateBranch(BranchName,
trkke, BranchName + NTracksIndexStr +
"[3]/F");
1698 BranchName =
"trkrange_" + TrackLabel;
1699 CreateBranch(BranchName,
trkrange, BranchName + NTracksIndexStr +
"[3]/F");
1701 BranchName =
"trkidtruth_" + TrackLabel;
1702 CreateBranch(BranchName,
trkidtruth, BranchName + NTracksIndexStr +
"[3]/I");
1704 BranchName =
"trkorigin_" + TrackLabel;
1705 CreateBranch(BranchName,
trkorigin, BranchName + NTracksIndexStr +
"[3]/S");
1707 BranchName =
"trkpdgtruth_" + TrackLabel;
1708 CreateBranch(BranchName,
trkpdgtruth, BranchName + NTracksIndexStr +
"[3]/I");
1710 BranchName =
"trkefftruth_" + TrackLabel;
1711 CreateBranch(BranchName,
trkefftruth, BranchName + NTracksIndexStr +
"[3]/F");
1713 BranchName =
"trkpurtruth_" + TrackLabel;
1714 CreateBranch(BranchName,
trkpurtruth, BranchName + NTracksIndexStr +
"[3]/F");
1716 BranchName =
"trkpitchc_" + TrackLabel;
1717 CreateBranch(BranchName,
trkpitchc, BranchName + NTracksIndexStr +
"[3]/F");
1719 BranchName =
"ntrkhits_" + TrackLabel;
1720 CreateBranch(BranchName,
ntrkhits, BranchName + NTracksIndexStr +
"[3]/S");
1723 BranchName =
"trkdedx_" + TrackLabel;
1724 CreateBranch(BranchName,
trkdedx, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1726 BranchName =
"trkdqdx_" + TrackLabel;
1727 CreateBranch(BranchName,
trkdqdx, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1729 BranchName =
"trkresrg_" + TrackLabel;
1730 CreateBranch(BranchName,
trkresrg, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1732 BranchName =
"trktpc_" + TrackLabel;
1733 CreateBranch(BranchName,
trktpc, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/I");
1735 BranchName =
"trkxyz_" + TrackLabel;
1736 CreateBranch(BranchName,
trkxyz, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"[3]" +
"/F");
1739 BranchName =
"trkstartx_" + TrackLabel;
1740 CreateBranch(BranchName,
trkstartx, BranchName + NTracksIndexStr +
"/F");
1742 BranchName =
"trkstarty_" + TrackLabel;
1743 CreateBranch(BranchName,
trkstarty, BranchName + NTracksIndexStr +
"/F");
1745 BranchName =
"trkstartz_" + TrackLabel;
1746 CreateBranch(BranchName,
trkstartz, BranchName + NTracksIndexStr +
"/F");
1748 BranchName =
"trkstartd_" + TrackLabel;
1749 CreateBranch(BranchName,
trkstartd, BranchName + NTracksIndexStr +
"/F");
1751 BranchName =
"trkendx_" + TrackLabel;
1752 CreateBranch(BranchName,
trkendx, BranchName + NTracksIndexStr +
"/F");
1754 BranchName =
"trkendy_" + TrackLabel;
1755 CreateBranch(BranchName,
trkendy, BranchName + NTracksIndexStr +
"/F");
1757 BranchName =
"trkendz_" + TrackLabel;
1758 CreateBranch(BranchName,
trkendz, BranchName + NTracksIndexStr +
"/F");
1760 BranchName =
"trkendd_" + TrackLabel;
1761 CreateBranch(BranchName,
trkendd, BranchName + NTracksIndexStr +
"/F");
1763 BranchName =
"trkflashT0_" + TrackLabel;
1764 CreateBranch(BranchName,
trkflashT0, BranchName + NTracksIndexStr +
"/F");
1766 BranchName =
"trktrueT0_" + TrackLabel;
1767 CreateBranch(BranchName,
trktrueT0, BranchName + NTracksIndexStr +
"/F");
1769 BranchName =
"trkg4id_" + TrackLabel;
1770 CreateBranch(BranchName,
trkg4id, BranchName + NTracksIndexStr +
"/I");
1772 BranchName =
"trkorig_" + TrackLabel;
1773 CreateBranch(BranchName,
trkorig, BranchName + NTracksIndexStr +
"/I");
1775 BranchName =
"trkpurity_" + TrackLabel;
1776 CreateBranch(BranchName,
trkpurity, BranchName + NTracksIndexStr +
"/F");
1778 BranchName =
"trkcompleteness_" + TrackLabel;
1779 CreateBranch(BranchName,
trkcompleteness, BranchName + NTracksIndexStr +
"/F");
1781 BranchName =
"trktheta_" + TrackLabel;
1782 CreateBranch(BranchName,
trktheta, BranchName + NTracksIndexStr +
"/F");
1784 BranchName =
"trkphi_" + TrackLabel;
1785 CreateBranch(BranchName,
trkphi, BranchName + NTracksIndexStr +
"/F");
1787 BranchName =
"trkstartdcosx_" + TrackLabel;
1788 CreateBranch(BranchName,
trkstartdcosx, BranchName + NTracksIndexStr +
"/F");
1790 BranchName =
"trkstartdcosy_" + TrackLabel;
1791 CreateBranch(BranchName,
trkstartdcosy, BranchName + NTracksIndexStr +
"/F");
1793 BranchName =
"trkstartdcosz_" + TrackLabel;
1794 CreateBranch(BranchName,
trkstartdcosz, BranchName + NTracksIndexStr +
"/F");
1796 BranchName =
"trkenddcosx_" + TrackLabel;
1797 CreateBranch(BranchName,
trkenddcosx, BranchName + NTracksIndexStr +
"/F");
1799 BranchName =
"trkenddcosy_" + TrackLabel;
1800 CreateBranch(BranchName,
trkenddcosy, BranchName + NTracksIndexStr +
"/F");
1802 BranchName =
"trkenddcosz_" + TrackLabel;
1803 CreateBranch(BranchName,
trkenddcosz, BranchName + NTracksIndexStr +
"/F");
1805 BranchName =
"trkthetaxz_" + TrackLabel;
1806 CreateBranch(BranchName,
trkthetaxz, BranchName + NTracksIndexStr +
"/F");
1808 BranchName =
"trkthetayz_" + TrackLabel;
1809 CreateBranch(BranchName,
trkthetayz, BranchName + NTracksIndexStr +
"/F");
1811 BranchName =
"trkmom_" + TrackLabel;
1812 CreateBranch(BranchName,
trkmom, BranchName + NTracksIndexStr +
"/F");
1814 BranchName =
"trkmomrange_" + TrackLabel;
1815 CreateBranch(BranchName,
trkmomrange, BranchName + NTracksIndexStr +
"/F");
1817 BranchName =
"trkmommschi2_" + TrackLabel;
1818 CreateBranch(BranchName,
trkmommschi2, BranchName + NTracksIndexStr +
"/F");
1820 BranchName =
"trkmommsllhd_" + TrackLabel;
1821 CreateBranch(BranchName,
trkmommsllhd, BranchName + NTracksIndexStr +
"/F");
1823 BranchName =
"trklen_" + TrackLabel;
1824 CreateBranch(BranchName,
trklen, BranchName + NTracksIndexStr +
"/F");
1826 BranchName =
"trksvtxid_" + TrackLabel;
1827 CreateBranch(BranchName,
trksvtxid, BranchName + NTracksIndexStr +
"/S");
1829 BranchName =
"trkevtxid_" + TrackLabel;
1830 CreateBranch(BranchName,
trkevtxid, BranchName + NTracksIndexStr +
"/S");
1832 BranchName =
"trkpidmvamu_" + TrackLabel;
1833 CreateBranch(BranchName,
trkpidmvamu, BranchName + NTracksIndexStr +
"/F");
1835 BranchName =
"trkpidmvae_" + TrackLabel;
1836 CreateBranch(BranchName,
trkpidmvae, BranchName + NTracksIndexStr +
"/F");
1838 BranchName =
"trkpidmvapich_" + TrackLabel;
1839 CreateBranch(BranchName,
trkpidmvapich, BranchName + NTracksIndexStr +
"/F");
1841 BranchName =
"trkpidmvaphoton_" + TrackLabel;
1842 CreateBranch(BranchName,
trkpidmvaphoton, BranchName + NTracksIndexStr +
"/F");
1844 BranchName =
"trkpidmvapr_" + TrackLabel;
1845 CreateBranch(BranchName,
trkpidmvapr, BranchName + NTracksIndexStr +
"/F");
1847 BranchName =
"trkpidpdg_" + TrackLabel;
1848 CreateBranch(BranchName,
trkpidpdg, BranchName + NTracksIndexStr +
"[3]/I");
1850 BranchName =
"trkpidchi_" + TrackLabel;
1851 CreateBranch(BranchName,
trkpidchi, BranchName + NTracksIndexStr +
"[3]/F");
1853 BranchName =
"trkpidchipr_" + TrackLabel;
1854 CreateBranch(BranchName,
trkpidchipr, BranchName + NTracksIndexStr +
"[3]/F");
1856 BranchName =
"trkpidchika_" + TrackLabel;
1857 CreateBranch(BranchName,
trkpidchika, BranchName + NTracksIndexStr +
"[3]/F");
1859 BranchName =
"trkpidchipi_" + TrackLabel;
1860 CreateBranch(BranchName,
trkpidchipi, BranchName + NTracksIndexStr +
"[3]/F");
1862 BranchName =
"trkpidchimu_" + TrackLabel;
1863 CreateBranch(BranchName,
trkpidchimu, BranchName + NTracksIndexStr +
"[3]/F");
1865 BranchName =
"trkpidpida_" + TrackLabel;
1866 CreateBranch(BranchName,
trkpidpida, BranchName + NTracksIndexStr +
"[3]/F");
1868 BranchName =
"trkpidbestplane_" + TrackLabel;
1869 CreateBranch(BranchName,
trkpidbestplane, BranchName + NTracksIndexStr +
"/S");
1871 BranchName =
"trkhasPFParticle_" + TrackLabel;
1872 CreateBranch(BranchName,
trkhasPFParticle, BranchName + NTracksIndexStr +
"/S");
1874 BranchName =
"trkPFParticleID_" + TrackLabel;
1875 CreateBranch(BranchName,
trkPFParticleID, BranchName + NTracksIndexStr +
"/S");
HitData_t< Float_t > trkdedx
TrackData_t< Short_t > trkncosmictags_flashmatch
TrackData_t< Short_t > trkncosmictags_containmenttagger
TrackData_t< Float_t > trkenddcosz
TrackData_t< Float_t > trkthetaxz
HitData_t< Int_t > trktpc
TrackData_t< Short_t > trkcosmictype_flashmatch
TrackData_t< Float_t > trkflashT0
PlaneData_t< Float_t > trkpidchipr
PlaneData_t< Float_t > trkpidchipi
TrackData_t< Float_t > trkenddcosx
constexpr int kMaxTrackHits
HitData_t< Float_t > trkresrg
PlaneData_t< Float_t > trkefftruth
TrackData_t< Float_t > trkstartd
TrackData_t< Float_t > trkmommschi2
TrackData_t< int > trkg4id
TrackData_t< Short_t > trkcosmictype_containmenttagger
TrackData_t< Short_t > trkId
TrackData_t< Short_t > trkcosmictype_tagger
TrackData_t< Short_t > trkpidbestplane
TrackData_t< Float_t > trkcompleteness
TrackData_t< Float_t > trkmom
TrackData_t< Float_t > trkpurity
TrackData_t< int > trkorig
TrackData_t< Float_t > trkpidmvapr
TrackData_t< Float_t > trktrueT0
TrackData_t< Float_t > trkthetayz
TrackData_t< Float_t > trkpidmvamu
TrackData_t< Float_t > trkcosmicscore_flashmatch
TrackData_t< Float_t > trkendx
TrackData_t< Float_t > trkendd
TrackData_t< Float_t > trkendy
HitData_t< Float_t > trkdqdx
HitCoordData_t< Float_t > trkxyz
TrackData_t< Float_t > trkphi
PlaneData_t< Float_t > trkpidchi
PlaneData_t< Short_t > trkorigin
PlaneData_t< Float_t > trkpurtruth
TrackData_t< Float_t > trkpidmvaphoton
TrackData_t< Float_t > trkstartdcosz
TrackData_t< Short_t > trkevtxid
TrackData_t< Short_t > trkncosmictags_tagger
TrackData_t< Float_t > trkenddcosy
Little helper functor class to create or reset branches in a tree.
TrackData_t< Short_t > trkhasPFParticle
TrackData_t< Float_t > trkstartx
PlaneData_t< Int_t > trkpidpdg
TrackData_t< Float_t > trkstartz
PlaneData_t< Float_t > trkrange
TrackData_t< Short_t > trkPFParticleID
PlaneData_t< Short_t > ntrkhits
TrackData_t< Float_t > trkstarty
PlaneData_t< Int_t > trkpdgtruth
TrackData_t< Float_t > trkpidmvapich
PlaneData_t< Float_t > trkpidchimu
PlaneData_t< Float_t > trkke
size_t MaxTracks
maximum number of storable tracks
PlaneData_t< Float_t > trkpitchc
TrackData_t< Float_t > trkcosmicscore_containmenttagger
TrackData_t< Float_t > trklen
PlaneData_t< Int_t > trkidtruth
TrackData_t< Float_t > trkstartdcosy
TrackData_t< Float_t > trkendz
TrackData_t< Float_t > trkmomrange
TrackData_t< Short_t > trksvtxid
TrackData_t< Float_t > trkstartdcosx
TrackData_t< Float_t > trkcosmicscore_tagger
TrackData_t< Float_t > trkmommsllhd
PlaneData_t< Float_t > trkpidchika
PlaneData_t< Float_t > trkpidpida
TrackData_t< Float_t > trktheta
TrackData_t< Float_t > trkpidmvae