Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:19:06

0001 #ifndef CLUSKEYITER__H
0002 #define CLUSKEYITER__H
0003 
0004 // an iterator to loop over all the TrkrClusters for a given track
0005 #include <trackbase/TrkrDefs.h>
0006 #include <set>
0007 
0008 class SvtxTrack;
0009 
0010 struct ClusKeyIter
0011 {
0012   typedef std::set<TrkrDefs::cluskey> ClusterKeySet;
0013   typedef ClusterKeySet::iterator ClusterKeyIter;
0014 
0015   ClusKeyIter(SvtxTrack* _track);
0016   // data
0017   SvtxTrack* track;
0018   bool in_silicon;
0019   bool has_tpc;
0020   bool no_data;  // neither a tpc nor a silicon seed
0021   ClusterKeyIter iter{};
0022   ClusterKeyIter iter_end_silicon{};
0023 
0024   ClusKeyIter begin();
0025   ClusKeyIter end();
0026 
0027   void operator++();
0028   TrkrDefs::cluskey operator*();
0029   bool operator!=(const ClusKeyIter& rhs);
0030 };
0031 
0032 #endif