EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDbSimFlagAssociation.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairDbSimFlagAssociation.h
1 
2 #ifndef FAIRDBSIMFLAGASSOCIATION
3 #define FAIRDBSIMFLAGASSOCIATION
4 
5 
6 #include <iosfwd>
7 using std::ostream;
8 #include <list>
9 using std::list;
10 #include <map>
11 using std::map;
12 
13 #include "SimFlag.h"
14 
16 class FairRegistry;
17 
18 ostream& operator<<(ostream& s, const FairDbSimFlagAssociation& simFlagAss);
19 
21 {
22 
23 
24  public:
25 
26 // Typedefs for tired fingers.
27  typedef list<SimFlag::SimFlag_t> SimList_t;
28  typedef map<SimFlag::SimFlag_t,SimList_t > SimMap_t;
29 
30 // Constructors and destructors.
32  virtual ~FairDbSimFlagAssociation();
33 
34 // State testing member functions
35 
37  void Print(ostream& s)const;
38  void Show();
39 
41  static const FairDbSimFlagAssociation& Instance();
42 
43 // State changing member functions.
44 
45  void Clear() { fAssociations.clear(); }
48  }
49  void Set(FairRegistry& reg);
50 
51  private:
52 
55 
56 // Data members
57 
59 
60  ClassDef(FairDbSimFlagAssociation,0) // Association between SimFlag types.
61 
62 };
63 
64 
65 #endif // FAIRDBSIMFLAGASSOCIATION