Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClusKeyIter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ClusKeyIter.h
1 #ifndef CLUSKEYITER__H
2 #define CLUSKEYITER__H
3 
4 // an iterator to loop over all the TrkrClusters for a given track
5 #include <set>
6 #include <trackbase/TrkrDefs.h>
7 
8 class SvtxTrack;
9 
10 struct ClusKeyIter {
11  typedef std::set<TrkrDefs::cluskey> ClusterKeySet;
12  typedef ClusterKeySet::iterator ClusterKeyIter;
13 
14  ClusKeyIter(SvtxTrack* _track);
15  // data
17  bool in_silicon;
18  bool has_tpc;
19  bool no_data; // neither a tpc nor a silicon seed
22 
24  ClusKeyIter end();
25 
26  void operator++();
28  bool operator!=(const ClusKeyIter& rhs);
29 };
30 
31 
32 
33 #endif