Public Types | Public Member Functions | Public Attributes | List of all members
dune::AnalysisTreeDataStruct::TrackDataStruct Class Reference

Public Types

template<typename T >
using TrackData_t = std::vector< T >
 
template<typename T >
using PlaneData_t = std::vector< BoxedArray< T[kNplanes]>>
 
template<typename T >
using HitData_t = std::vector< BoxedArray< T[kNplanes][kMaxTrackHits]>>
 
template<typename T >
using HitCoordData_t = std::vector< BoxedArray< T[kNplanes][kMaxTrackHits][3]>>
 

Public Member Functions

 TrackDataStruct ()
 Creates an empty tracker data structure. More...
 
 TrackDataStruct (size_t maxTracks)
 Creates a tracker data structure allowing up to maxTracks tracks. More...
 
void Clear ()
 
void SetMaxTracks (size_t maxTracks)
 
void Resize (size_t nTracks)
 
void SetAddresses (TTree *pTree, std::string tracker, bool isCosmics)
 
size_t GetMaxTracks () const
 
size_t GetMaxPlanesPerTrack (int=0) const
 
size_t GetMaxHitsPerTrack (int=0, int=0) const
 

Public Attributes

size_t MaxTracks
 maximum number of storable tracks More...
 
Short_t ntracks
 
PlaneData_t< Float_t > trkke
 
PlaneData_t< Float_t > trkrange
 
PlaneData_t< Int_t > trkidtruth
 
PlaneData_t< Short_t > trkorigin
 
PlaneData_t< Int_t > trkpdgtruth
 
PlaneData_t< Float_t > trkefftruth
 
PlaneData_t< Float_t > trkpurtruth
 
PlaneData_t< Float_t > trkpitchc
 
PlaneData_t< Short_t > ntrkhits
 
HitData_t< Float_t > trkdedx
 
HitData_t< Float_t > trkdqdx
 
HitData_t< Float_t > trkresrg
 
HitData_t< Int_t > trktpc
 
HitCoordData_t< Float_t > trkxyz
 
TrackData_t< Short_t > trkId
 
TrackData_t< Short_t > trkncosmictags_tagger
 
TrackData_t< Float_t > trkcosmicscore_tagger
 
TrackData_t< Short_t > trkcosmictype_tagger
 
TrackData_t< Short_t > trkncosmictags_containmenttagger
 
TrackData_t< Float_t > trkcosmicscore_containmenttagger
 
TrackData_t< Short_t > trkcosmictype_containmenttagger
 
TrackData_t< Short_t > trkncosmictags_flashmatch
 
TrackData_t< Float_t > trkcosmicscore_flashmatch
 
TrackData_t< Short_t > trkcosmictype_flashmatch
 
TrackData_t< Float_t > trkstartx
 
TrackData_t< Float_t > trkstarty
 
TrackData_t< Float_t > trkstartz
 
TrackData_t< Float_t > trkstartd
 
TrackData_t< Float_t > trkendx
 
TrackData_t< Float_t > trkendy
 
TrackData_t< Float_t > trkendz
 
TrackData_t< Float_t > trkendd
 
TrackData_t< Float_t > trkflashT0
 
TrackData_t< Float_t > trktrueT0
 
TrackData_t< Float_t > trkpurity
 
TrackData_t< Float_t > trkcompleteness
 
TrackData_t< int > trkg4id
 
TrackData_t< int > trkorig
 
TrackData_t< Float_t > trktheta
 
TrackData_t< Float_t > trkphi
 
TrackData_t< Float_t > trkstartdcosx
 
TrackData_t< Float_t > trkstartdcosy
 
TrackData_t< Float_t > trkstartdcosz
 
TrackData_t< Float_t > trkenddcosx
 
TrackData_t< Float_t > trkenddcosy
 
TrackData_t< Float_t > trkenddcosz
 
TrackData_t< Float_t > trkthetaxz
 
TrackData_t< Float_t > trkthetayz
 
TrackData_t< Float_t > trkmom
 
TrackData_t< Float_t > trklen
 
TrackData_t< Float_t > trkmomrange
 
TrackData_t< Float_t > trkmommschi2
 
TrackData_t< Float_t > trkmommsllhd
 
TrackData_t< Short_t > trksvtxid
 
TrackData_t< Short_t > trkevtxid
 
PlaneData_t< Int_t > trkpidpdg
 
PlaneData_t< Float_t > trkpidchi
 
PlaneData_t< Float_t > trkpidchipr
 
PlaneData_t< Float_t > trkpidchika
 
PlaneData_t< Float_t > trkpidchipi
 
PlaneData_t< Float_t > trkpidchimu
 
PlaneData_t< Float_t > trkpidpida
 
TrackData_t< Float_t > trkpidmvamu
 
TrackData_t< Float_t > trkpidmvae
 
TrackData_t< Float_t > trkpidmvapich
 
TrackData_t< Float_t > trkpidmvaphoton
 
TrackData_t< Float_t > trkpidmvapr
 
TrackData_t< Short_t > trkpidbestplane
 
TrackData_t< Short_t > trkhasPFParticle
 
TrackData_t< Short_t > trkPFParticleID
 

Detailed Description

Tracker algorithm result

Can connect to a tree, clear its fields and resize its data.

Definition at line 183 of file AnalysisTree_module.cc.

Member Typedef Documentation

Definition at line 200 of file AnalysisTree_module.cc.

Definition at line 198 of file AnalysisTree_module.cc.

Definition at line 196 of file AnalysisTree_module.cc.

Definition at line 194 of file AnalysisTree_module.cc.

Constructor & Destructor Documentation

dune::AnalysisTreeDataStruct::TrackDataStruct::TrackDataStruct ( )
inline

Creates an empty tracker data structure.

Definition at line 280 of file AnalysisTree_module.cc.

dune::AnalysisTreeDataStruct::TrackDataStruct::TrackDataStruct ( size_t  maxTracks)
inline

Creates a tracker data structure allowing up to maxTracks tracks.

Definition at line 282 of file AnalysisTree_module.cc.

Member Function Documentation

void dune::AnalysisTreeDataStruct::TrackDataStruct::Clear ( )

Definition at line 1560 of file AnalysisTree_module.cc.

1560  {
1561  Resize(MaxTracks);
1562  ntracks = 0;
1563 
1564  FillWith(trkId , -9999 );
1565  FillWith(trkncosmictags_tagger, -9999 );
1566  FillWith(trkcosmicscore_tagger, -99999.);
1567  FillWith(trkcosmictype_tagger, -9999 );
1568  FillWith(trkncosmictags_containmenttagger, -9999 );
1569  FillWith(trkcosmicscore_containmenttagger, -99999.);
1570  FillWith(trkcosmictype_containmenttagger, -9999 );
1571  FillWith(trkncosmictags_flashmatch, -9999 );
1572  FillWith(trkcosmicscore_flashmatch, -99999.);
1573  FillWith(trkcosmictype_flashmatch, -9999 );
1574  FillWith(trkstartx , -99999.);
1575  FillWith(trkstarty , -99999.);
1576  FillWith(trkstartz , -99999.);
1577  FillWith(trkstartd , -99999.);
1578  FillWith(trkendx , -99999.);
1579  FillWith(trkendy , -99999.);
1580  FillWith(trkendz , -99999.);
1581  FillWith(trkendd , -99999.);
1582  FillWith(trkflashT0 , -99999.);
1583  FillWith(trktrueT0 , -99999.);
1584  FillWith(trkg4id , -99999 );
1585  FillWith(trkpurity , -99999.);
1586  FillWith(trkcompleteness, -99999.);
1587  FillWith(trkorig , -99999 );
1588  FillWith(trktheta , -99999.);
1589  FillWith(trkphi , -99999.);
1590  FillWith(trkstartdcosx, -99999.);
1591  FillWith(trkstartdcosy, -99999.);
1592  FillWith(trkstartdcosz, -99999.);
1593  FillWith(trkenddcosx , -99999.);
1594  FillWith(trkenddcosy , -99999.);
1595  FillWith(trkenddcosz , -99999.);
1596  FillWith(trkthetaxz , -99999.);
1597  FillWith(trkthetayz , -99999.);
1598  FillWith(trkmom , -99999.);
1599  FillWith(trkmomrange , -99999.);
1600  FillWith(trkmommschi2 , -99999.);
1601  FillWith(trkmommsllhd , -99999.);
1602  FillWith(trklen , -99999.);
1603  FillWith(trksvtxid , -1);
1604  FillWith(trkevtxid , -1);
1605  FillWith(trkpidbestplane, -1);
1606  FillWith(trkpidmvamu , -99999.);
1607  FillWith(trkpidmvae , -99999.);
1608  FillWith(trkpidmvapich, -99999.);
1609  FillWith(trkpidmvaphoton , -99999.);
1610  FillWith(trkpidmvapr , -99999.);
1611 
1612  FillWith(trkhasPFParticle, -1);
1613  FillWith(trkPFParticleID , -1);
1614 
1615  for (size_t iTrk = 0; iTrk < MaxTracks; ++iTrk){
1616 
1617  // the following are BoxedArray's;
1618  // their iterators traverse all the array dimensions
1619  FillWith(trkke[iTrk] , -99999.);
1620  FillWith(trkrange[iTrk] , -99999.);
1621  FillWith(trkidtruth[iTrk] , -99999 );
1622  FillWith(trkorigin[iTrk] , -1 );
1623  FillWith(trkpdgtruth[iTrk], -99999 );
1624  FillWith(trkefftruth[iTrk], -99999.);
1625  FillWith(trkpurtruth[iTrk], -99999.);
1626  FillWith(trkpitchc[iTrk] , -99999.);
1627  FillWith(ntrkhits[iTrk] , -9999 );
1628 
1629  FillWith(trkdedx[iTrk], 0.);
1630  FillWith(trkdqdx[iTrk], 0.);
1631  FillWith(trkresrg[iTrk], 0.);
1632  FillWith(trktpc[iTrk], -1);
1633  FillWith(trkxyz[iTrk], 0.);
1634 
1635  FillWith(trkpidpdg[iTrk] , -1);
1636  FillWith(trkpidchi[iTrk] , -99999.);
1637  FillWith(trkpidchipr[iTrk] , -99999.);
1638  FillWith(trkpidchika[iTrk] , -99999.);
1639  FillWith(trkpidchipi[iTrk] , -99999.);
1640  FillWith(trkpidchimu[iTrk] , -99999.);
1641  FillWith(trkpidpida[iTrk] , -99999.);
1642  } // for track
1643 
1644 } // dune::AnalysisTreeDataStruct::TrackDataStruct::Clear()
size_t MaxTracks
maximum number of storable tracks
size_t dune::AnalysisTreeDataStruct::TrackDataStruct::GetMaxHitsPerTrack ( int  = 0,
int  = 0 
) const
inline

Definition at line 292 of file AnalysisTree_module.cc.

293  { return (size_t) kMaxTrackHits; }
constexpr int kMaxTrackHits
size_t dune::AnalysisTreeDataStruct::TrackDataStruct::GetMaxPlanesPerTrack ( int  = 0) const
inline

Definition at line 290 of file AnalysisTree_module.cc.

291  { return (size_t) kNplanes; }
constexpr int kNplanes
size_t dune::AnalysisTreeDataStruct::TrackDataStruct::GetMaxTracks ( ) const
inline

Definition at line 289 of file AnalysisTree_module.cc.

289 { return MaxTracks; }
size_t MaxTracks
maximum number of storable tracks
void dune::AnalysisTreeDataStruct::TrackDataStruct::Resize ( size_t  nTracks)

Definition at line 1479 of file AnalysisTree_module.cc.

1480 {
1481  MaxTracks = nTracks;
1482 
1483  trkId.resize(MaxTracks);
1493  trkstartx.resize(MaxTracks);
1494  trkstarty.resize(MaxTracks);
1495  trkstartz.resize(MaxTracks);
1496  trkstartd.resize(MaxTracks);
1497  trkendx.resize(MaxTracks);
1498  trkendy.resize(MaxTracks);
1499  trkendz.resize(MaxTracks);
1500  trkendd.resize(MaxTracks);
1501  trkflashT0.resize(MaxTracks);
1502  trktrueT0.resize(MaxTracks);
1503  trktheta.resize(MaxTracks);
1504  trkphi.resize(MaxTracks);
1505  trkstartdcosx.resize(MaxTracks);
1506  trkstartdcosy.resize(MaxTracks);
1507  trkstartdcosz.resize(MaxTracks);
1508  trkenddcosx.resize(MaxTracks);
1509  trkenddcosy.resize(MaxTracks);
1510  trkenddcosz.resize(MaxTracks);
1511  trkthetaxz.resize(MaxTracks);
1512  trkthetayz.resize(MaxTracks);
1513  trkmom.resize(MaxTracks);
1514  trkmomrange.resize(MaxTracks);
1515  trkmommschi2.resize(MaxTracks);
1516  trkmommsllhd.resize(MaxTracks);
1517  trklen.resize(MaxTracks);
1518  trksvtxid.resize(MaxTracks);
1519  trkevtxid.resize(MaxTracks);
1520  // PID variables
1521  trkpidpdg.resize(MaxTracks);
1522  trkpidchi.resize(MaxTracks);
1523  trkpidchipr.resize(MaxTracks);
1524  trkpidchika.resize(MaxTracks);
1525  trkpidchipi.resize(MaxTracks);
1526  trkpidchimu.resize(MaxTracks);
1527  trkpidpida.resize(MaxTracks);
1528  trkpidbestplane.resize(MaxTracks);
1529  trkpidmvamu.resize(MaxTracks);
1530  trkpidmvae.resize(MaxTracks);
1531  trkpidmvapich.resize(MaxTracks);
1532  trkpidmvaphoton.resize(MaxTracks);
1533  trkpidmvapr.resize(MaxTracks);
1534 
1535  trkke.resize(MaxTracks);
1536  trkrange.resize(MaxTracks);
1537  trkidtruth.resize(MaxTracks);
1538  trkorigin.resize(MaxTracks);
1539  trkpdgtruth.resize(MaxTracks);
1540  trkefftruth.resize(MaxTracks);
1541  trkpurtruth.resize(MaxTracks);
1542  trkpurity.resize(MaxTracks);
1543  trkcompleteness.resize(MaxTracks);
1544  trkg4id.resize(MaxTracks);
1545  trkorig.resize(MaxTracks);
1546  trkpitchc.resize(MaxTracks);
1547  ntrkhits.resize(MaxTracks);
1548 
1549  trkdedx.resize(MaxTracks);
1550  trkdqdx.resize(MaxTracks);
1551  trkresrg.resize(MaxTracks);
1552  trktpc.resize(MaxTracks);
1553  trkxyz.resize(MaxTracks);
1554 
1555  trkhasPFParticle.resize(MaxTracks);
1556  trkPFParticleID.resize(MaxTracks);
1557 
1558 } // dune::AnalysisTreeDataStruct::TrackDataStruct::Resize()
size_t MaxTracks
maximum number of storable tracks
void dune::AnalysisTreeDataStruct::TrackDataStruct::SetAddresses ( TTree *  pTree,
std::string  tracker,
bool  isCosmics 
)

Definition at line 1647 of file AnalysisTree_module.cc.

1649  {
1650  if (MaxTracks == 0) return; // no tracks, no tree!
1651 
1652  dune::AnalysisTreeDataStruct::BranchCreator CreateBranch(pTree);
1653 
1654  AutoResettingStringSteam sstr;
1655  sstr() << kMaxTrackHits;
1656  std::string MaxTrackHitsIndexStr("[" + sstr.str() + "]");
1657 
1658  std::string TrackLabel = tracker;
1659  std::string BranchName;
1660 
1661  BranchName = "ntracks_" + TrackLabel;
1662  CreateBranch(BranchName, &ntracks, BranchName + "/S");
1663  std::string NTracksIndexStr = "[" + BranchName + "]";
1664 
1665  BranchName = "trkId_" + TrackLabel;
1666  CreateBranch(BranchName, trkId, BranchName + NTracksIndexStr + "/S");
1667 
1668  BranchName = "trkncosmictags_tagger_" + TrackLabel;
1669  CreateBranch(BranchName, trkncosmictags_tagger, BranchName + NTracksIndexStr + "/S");
1670 
1671  BranchName = "trkcosmicscore_tagger_" + TrackLabel;
1672  CreateBranch(BranchName, trkcosmicscore_tagger, BranchName + NTracksIndexStr + "/F");
1673 
1674  BranchName = "trkcosmictype_tagger_" + TrackLabel;
1675  CreateBranch(BranchName, trkcosmictype_tagger, BranchName + NTracksIndexStr + "/S");
1676 
1677  BranchName = "trkncosmictags_containmenttagger_" + TrackLabel;
1678  CreateBranch(BranchName, trkncosmictags_containmenttagger, BranchName + NTracksIndexStr + "/S");
1679 
1680  BranchName = "trkcosmicscore_containmenttagger_" + TrackLabel;
1681  CreateBranch(BranchName, trkcosmicscore_containmenttagger, BranchName + NTracksIndexStr + "/F");
1682 
1683  BranchName = "trkcosmictype_containmenttagger_" + TrackLabel;
1684  CreateBranch(BranchName, trkcosmictype_containmenttagger, BranchName + NTracksIndexStr + "/S");
1685 
1686  BranchName = "trkncosmictags_flashmatch_" + TrackLabel;
1687  CreateBranch(BranchName, trkncosmictags_flashmatch, BranchName + NTracksIndexStr + "/S");
1688 
1689  BranchName = "trkcosmicscore_flashmatch_" + TrackLabel;
1690  CreateBranch(BranchName, trkcosmicscore_flashmatch, BranchName + NTracksIndexStr + "/F");
1691 
1692  BranchName = "trkcosmictype_flashmatch_" + TrackLabel;
1693  CreateBranch(BranchName, trkcosmictype_flashmatch, BranchName + NTracksIndexStr + "/S");
1694 
1695  BranchName = "trkke_" + TrackLabel;
1696  CreateBranch(BranchName, trkke, BranchName + NTracksIndexStr + "[3]/F");
1697 
1698  BranchName = "trkrange_" + TrackLabel;
1699  CreateBranch(BranchName, trkrange, BranchName + NTracksIndexStr + "[3]/F");
1700 
1701  BranchName = "trkidtruth_" + TrackLabel;
1702  CreateBranch(BranchName, trkidtruth, BranchName + NTracksIndexStr + "[3]/I");
1703 
1704  BranchName = "trkorigin_" + TrackLabel;
1705  CreateBranch(BranchName, trkorigin, BranchName + NTracksIndexStr + "[3]/S");
1706 
1707  BranchName = "trkpdgtruth_" + TrackLabel;
1708  CreateBranch(BranchName, trkpdgtruth, BranchName + NTracksIndexStr + "[3]/I");
1709 
1710  BranchName = "trkefftruth_" + TrackLabel;
1711  CreateBranch(BranchName, trkefftruth, BranchName + NTracksIndexStr + "[3]/F");
1712 
1713  BranchName = "trkpurtruth_" + TrackLabel;
1714  CreateBranch(BranchName, trkpurtruth, BranchName + NTracksIndexStr + "[3]/F");
1715 
1716  BranchName = "trkpitchc_" + TrackLabel;
1717  CreateBranch(BranchName, trkpitchc, BranchName + NTracksIndexStr + "[3]/F");
1718 
1719  BranchName = "ntrkhits_" + TrackLabel;
1720  CreateBranch(BranchName, ntrkhits, BranchName + NTracksIndexStr + "[3]/S");
1721 
1722  if (!isCosmics){
1723  BranchName = "trkdedx_" + TrackLabel;
1724  CreateBranch(BranchName, trkdedx, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1725 
1726  BranchName = "trkdqdx_" + TrackLabel;
1727  CreateBranch(BranchName, trkdqdx, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1728 
1729  BranchName = "trkresrg_" + TrackLabel;
1730  CreateBranch(BranchName, trkresrg, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/F");
1731 
1732  BranchName = "trktpc_" + TrackLabel;
1733  CreateBranch(BranchName, trktpc, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "/I");
1734 
1735  BranchName = "trkxyz_" + TrackLabel;
1736  CreateBranch(BranchName, trkxyz, BranchName + NTracksIndexStr + "[3]" + MaxTrackHitsIndexStr + "[3]" + "/F");
1737  }
1738 
1739  BranchName = "trkstartx_" + TrackLabel;
1740  CreateBranch(BranchName, trkstartx, BranchName + NTracksIndexStr + "/F");
1741 
1742  BranchName = "trkstarty_" + TrackLabel;
1743  CreateBranch(BranchName, trkstarty, BranchName + NTracksIndexStr + "/F");
1744 
1745  BranchName = "trkstartz_" + TrackLabel;
1746  CreateBranch(BranchName, trkstartz, BranchName + NTracksIndexStr + "/F");
1747 
1748  BranchName = "trkstartd_" + TrackLabel;
1749  CreateBranch(BranchName, trkstartd, BranchName + NTracksIndexStr + "/F");
1750 
1751  BranchName = "trkendx_" + TrackLabel;
1752  CreateBranch(BranchName, trkendx, BranchName + NTracksIndexStr + "/F");
1753 
1754  BranchName = "trkendy_" + TrackLabel;
1755  CreateBranch(BranchName, trkendy, BranchName + NTracksIndexStr + "/F");
1756 
1757  BranchName = "trkendz_" + TrackLabel;
1758  CreateBranch(BranchName, trkendz, BranchName + NTracksIndexStr + "/F");
1759 
1760  BranchName = "trkendd_" + TrackLabel;
1761  CreateBranch(BranchName, trkendd, BranchName + NTracksIndexStr + "/F");
1762 
1763  BranchName = "trkflashT0_" + TrackLabel;
1764  CreateBranch(BranchName, trkflashT0, BranchName + NTracksIndexStr + "/F");
1765 
1766  BranchName = "trktrueT0_" + TrackLabel;
1767  CreateBranch(BranchName, trktrueT0, BranchName + NTracksIndexStr + "/F");
1768 
1769  BranchName = "trkg4id_" + TrackLabel;
1770  CreateBranch(BranchName, trkg4id, BranchName + NTracksIndexStr + "/I");
1771 
1772  BranchName = "trkorig_" + TrackLabel;
1773  CreateBranch(BranchName, trkorig, BranchName + NTracksIndexStr + "/I");
1774 
1775  BranchName = "trkpurity_" + TrackLabel;
1776  CreateBranch(BranchName, trkpurity, BranchName + NTracksIndexStr + "/F");
1777 
1778  BranchName = "trkcompleteness_" + TrackLabel;
1779  CreateBranch(BranchName, trkcompleteness, BranchName + NTracksIndexStr + "/F");
1780 
1781  BranchName = "trktheta_" + TrackLabel;
1782  CreateBranch(BranchName, trktheta, BranchName + NTracksIndexStr + "/F");
1783 
1784  BranchName = "trkphi_" + TrackLabel;
1785  CreateBranch(BranchName, trkphi, BranchName + NTracksIndexStr + "/F");
1786 
1787  BranchName = "trkstartdcosx_" + TrackLabel;
1788  CreateBranch(BranchName, trkstartdcosx, BranchName + NTracksIndexStr + "/F");
1789 
1790  BranchName = "trkstartdcosy_" + TrackLabel;
1791  CreateBranch(BranchName, trkstartdcosy, BranchName + NTracksIndexStr + "/F");
1792 
1793  BranchName = "trkstartdcosz_" + TrackLabel;
1794  CreateBranch(BranchName, trkstartdcosz, BranchName + NTracksIndexStr + "/F");
1795 
1796  BranchName = "trkenddcosx_" + TrackLabel;
1797  CreateBranch(BranchName, trkenddcosx, BranchName + NTracksIndexStr + "/F");
1798 
1799  BranchName = "trkenddcosy_" + TrackLabel;
1800  CreateBranch(BranchName, trkenddcosy, BranchName + NTracksIndexStr + "/F");
1801 
1802  BranchName = "trkenddcosz_" + TrackLabel;
1803  CreateBranch(BranchName, trkenddcosz, BranchName + NTracksIndexStr + "/F");
1804 
1805  BranchName = "trkthetaxz_" + TrackLabel;
1806  CreateBranch(BranchName, trkthetaxz, BranchName + NTracksIndexStr + "/F");
1807 
1808  BranchName = "trkthetayz_" + TrackLabel;
1809  CreateBranch(BranchName, trkthetayz, BranchName + NTracksIndexStr + "/F");
1810 
1811  BranchName = "trkmom_" + TrackLabel;
1812  CreateBranch(BranchName, trkmom, BranchName + NTracksIndexStr + "/F");
1813 
1814  BranchName = "trkmomrange_" + TrackLabel;
1815  CreateBranch(BranchName, trkmomrange, BranchName + NTracksIndexStr + "/F");
1816 
1817  BranchName = "trkmommschi2_" + TrackLabel;
1818  CreateBranch(BranchName, trkmommschi2, BranchName + NTracksIndexStr + "/F");
1819 
1820  BranchName = "trkmommsllhd_" + TrackLabel;
1821  CreateBranch(BranchName, trkmommsllhd, BranchName + NTracksIndexStr + "/F");
1822 
1823  BranchName = "trklen_" + TrackLabel;
1824  CreateBranch(BranchName, trklen, BranchName + NTracksIndexStr + "/F");
1825 
1826  BranchName = "trksvtxid_" + TrackLabel;
1827  CreateBranch(BranchName, trksvtxid, BranchName + NTracksIndexStr + "/S");
1828 
1829  BranchName = "trkevtxid_" + TrackLabel;
1830  CreateBranch(BranchName, trkevtxid, BranchName + NTracksIndexStr + "/S");
1831 
1832  BranchName = "trkpidmvamu_" + TrackLabel;
1833  CreateBranch(BranchName, trkpidmvamu, BranchName + NTracksIndexStr + "/F");
1834 
1835  BranchName = "trkpidmvae_" + TrackLabel;
1836  CreateBranch(BranchName, trkpidmvae, BranchName + NTracksIndexStr + "/F");
1837 
1838  BranchName = "trkpidmvapich_" + TrackLabel;
1839  CreateBranch(BranchName, trkpidmvapich, BranchName + NTracksIndexStr + "/F");
1840 
1841  BranchName = "trkpidmvaphoton_" + TrackLabel;
1842  CreateBranch(BranchName, trkpidmvaphoton, BranchName + NTracksIndexStr + "/F");
1843 
1844  BranchName = "trkpidmvapr_" + TrackLabel;
1845  CreateBranch(BranchName, trkpidmvapr, BranchName + NTracksIndexStr + "/F");
1846 
1847  BranchName = "trkpidpdg_" + TrackLabel;
1848  CreateBranch(BranchName, trkpidpdg, BranchName + NTracksIndexStr + "[3]/I");
1849 
1850  BranchName = "trkpidchi_" + TrackLabel;
1851  CreateBranch(BranchName, trkpidchi, BranchName + NTracksIndexStr + "[3]/F");
1852 
1853  BranchName = "trkpidchipr_" + TrackLabel;
1854  CreateBranch(BranchName, trkpidchipr, BranchName + NTracksIndexStr + "[3]/F");
1855 
1856  BranchName = "trkpidchika_" + TrackLabel;
1857  CreateBranch(BranchName, trkpidchika, BranchName + NTracksIndexStr + "[3]/F");
1858 
1859  BranchName = "trkpidchipi_" + TrackLabel;
1860  CreateBranch(BranchName, trkpidchipi, BranchName + NTracksIndexStr + "[3]/F");
1861 
1862  BranchName = "trkpidchimu_" + TrackLabel;
1863  CreateBranch(BranchName, trkpidchimu, BranchName + NTracksIndexStr + "[3]/F");
1864 
1865  BranchName = "trkpidpida_" + TrackLabel;
1866  CreateBranch(BranchName, trkpidpida, BranchName + NTracksIndexStr + "[3]/F");
1867 
1868  BranchName = "trkpidbestplane_" + TrackLabel;
1869  CreateBranch(BranchName, trkpidbestplane, BranchName + NTracksIndexStr + "/S");
1870 
1871  BranchName = "trkhasPFParticle_" + TrackLabel;
1872  CreateBranch(BranchName, trkhasPFParticle, BranchName + NTracksIndexStr + "/S");
1873 
1874  BranchName = "trkPFParticleID_" + TrackLabel;
1875  CreateBranch(BranchName, trkPFParticleID, BranchName + NTracksIndexStr + "/S");
1876 
1877 } // dune::AnalysisTreeDataStruct::TrackDataStruct::SetAddresses()
constexpr int kMaxTrackHits
std::string string
Definition: nybbler.cc:12
Little helper functor class to create or reset branches in a tree.
size_t MaxTracks
maximum number of storable tracks
void dune::AnalysisTreeDataStruct::TrackDataStruct::SetMaxTracks ( size_t  maxTracks)
inline

Definition at line 284 of file AnalysisTree_module.cc.

285  { MaxTracks = maxTracks; Resize(MaxTracks); }
size_t MaxTracks
maximum number of storable tracks

Member Data Documentation

size_t dune::AnalysisTreeDataStruct::TrackDataStruct::MaxTracks

maximum number of storable tracks

Definition at line 202 of file AnalysisTree_module.cc.

Short_t dune::AnalysisTreeDataStruct::TrackDataStruct::ntracks

Definition at line 204 of file AnalysisTree_module.cc.

PlaneData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::ntrkhits

Definition at line 213 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcompleteness

Definition at line 242 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmicscore_containmenttagger

Definition at line 226 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmicscore_flashmatch

Definition at line 229 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmicscore_tagger

Definition at line 223 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmictype_containmenttagger

Definition at line 227 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmictype_flashmatch

Definition at line 230 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkcosmictype_tagger

Definition at line 224 of file AnalysisTree_module.cc.

HitData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkdedx

Definition at line 214 of file AnalysisTree_module.cc.

HitData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkdqdx

Definition at line 215 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkefftruth

Definition at line 210 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkendd

Definition at line 238 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosx

Definition at line 250 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosy

Definition at line 251 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkenddcosz

Definition at line 252 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkendx

Definition at line 235 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkendy

Definition at line 236 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkendz

Definition at line 237 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkevtxid

Definition at line 261 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkflashT0

Definition at line 239 of file AnalysisTree_module.cc.

TrackData_t<int> dune::AnalysisTreeDataStruct::TrackDataStruct::trkg4id

Definition at line 243 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkhasPFParticle

Definition at line 276 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkId

Definition at line 221 of file AnalysisTree_module.cc.

PlaneData_t<Int_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkidtruth

Definition at line 207 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkke

Definition at line 205 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trklen

Definition at line 256 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkmom

Definition at line 255 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkmommschi2

Definition at line 258 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkmommsllhd

Definition at line 259 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkmomrange

Definition at line 257 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkncosmictags_containmenttagger

Definition at line 225 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkncosmictags_flashmatch

Definition at line 228 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkncosmictags_tagger

Definition at line 222 of file AnalysisTree_module.cc.

TrackData_t<int> dune::AnalysisTreeDataStruct::TrackDataStruct::trkorig

Definition at line 244 of file AnalysisTree_module.cc.

PlaneData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkorigin

Definition at line 208 of file AnalysisTree_module.cc.

PlaneData_t<Int_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpdgtruth

Definition at line 209 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkPFParticleID

Definition at line 277 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkphi

Definition at line 246 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidbestplane

Definition at line 274 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidchi

Definition at line 263 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidchika

Definition at line 265 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidchimu

Definition at line 267 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidchipi

Definition at line 266 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidchipr

Definition at line 264 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidmvae

Definition at line 270 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidmvamu

Definition at line 269 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidmvaphoton

Definition at line 272 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidmvapich

Definition at line 271 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidmvapr

Definition at line 273 of file AnalysisTree_module.cc.

PlaneData_t<Int_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidpdg

Definition at line 262 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpidpida

Definition at line 268 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpitchc

Definition at line 212 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpurity

Definition at line 241 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkpurtruth

Definition at line 211 of file AnalysisTree_module.cc.

PlaneData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkrange

Definition at line 206 of file AnalysisTree_module.cc.

HitData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkresrg

Definition at line 216 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartd

Definition at line 234 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosx

Definition at line 247 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosy

Definition at line 248 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartdcosz

Definition at line 249 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartx

Definition at line 231 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstarty

Definition at line 232 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkstartz

Definition at line 233 of file AnalysisTree_module.cc.

TrackData_t<Short_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trksvtxid

Definition at line 260 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trktheta

Definition at line 245 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkthetaxz

Definition at line 253 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkthetayz

Definition at line 254 of file AnalysisTree_module.cc.

HitData_t<Int_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trktpc

Definition at line 217 of file AnalysisTree_module.cc.

TrackData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trktrueT0

Definition at line 240 of file AnalysisTree_module.cc.

HitCoordData_t<Float_t> dune::AnalysisTreeDataStruct::TrackDataStruct::trkxyz

Definition at line 218 of file AnalysisTree_module.cc.


The documentation for this class was generated from the following file: