StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiMapUtilities.h
1 #ifndef StiMapUtilities_h
2 #define StiMapUtilities_h
3 
4 #include <string>
5 using std::string;
6 class StiDetector;
7 class StiHit;
8 class StTpcHit;
9 class StiTrackNode;
10 template<class NodeType> class StiCompositeTreeNode;
11 
12 //Structure for hit map key
13 struct HitMapKey {
14  bool operator==(const HitMapKey&) const;
15  double refangle;
16  double position;
17 };
18 
19 //Functor for ordering hit map key
21  MapKeyLessThan() : reftolerance(.01), postolerance(.01) {};
22  bool operator() (const HitMapKey&, const HitMapKey&) const;
23  double reftolerance;
24  double postolerance;
25 };
26 
27 // Structure for material, shape, or detector name map key
28 struct NameMapKey {
29  NameMapKey(const string& str){ name = str; }
30  NameMapKey(){}
31  bool operator==(const NameMapKey&) const;
32  bool operator<(const NameMapKey&) const;
33  string name;
34 };
35 
36 //Detector sorter
38 {
39  bool operator() (const StiCompositeTreeNode<StiDetector> *, const StiCompositeTreeNode<StiDetector> *) const;
40 };
41 
42 struct SetHitUsed
43 {
44  void operator() (StiTrackNode&);
45 };
47 {
48  void operator() (StiTrackNode&);
49 };
50 
51 #endif
52 
53 
Definition: StiHit.h:51