EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicBlackHole.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicBlackHole.h
1 //
2 // AYK (ayk@bnl.gov), 2015/08/06;
3 //
4 // Parent-hierarchy-related class; see the codes for more details;
5 //
6 
7 #include <utility>
8 #include <set>
9 
10 #ifndef _EIC_BLACK_HOLE_
11 #define _EIC_BLACK_HOLE_
12 
13 class EicBlackHole {
14  public:
17 
22  static std::pair<int, int> GetParentIDs();
23 
24  static void ResetTrackList() {mTracks->clear(); };
25  static void InsertIntoTrackList(unsigned id) {mTracks->insert(id); };
26  static bool IsInTrackList(unsigned id) {
27  return (mTracks->find(id) != mTracks->end());
28  };
29 
30  private:
31  static std::set<unsigned> *mTracks;
32 };
33 
34 #endif