StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Sti
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
20
struct
MapKeyLessThan
{
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
37
struct
StiDetectorNodePositionLessThan
38
{
39
bool
operator() (
const
StiCompositeTreeNode<StiDetector>
*,
const
StiCompositeTreeNode<StiDetector>
*)
const
;
40
};
41
42
struct
SetHitUsed
43
{
44
void
operator() (
StiTrackNode
&);
45
};
46
struct
SetHitUnused
47
{
48
void
operator() (
StiTrackNode
&);
49
};
50
51
#endif
52
53
StiDetectorNodePositionLessThan
Definition:
StiMapUtilities.h:37
StiCompositeTreeNode
Definition:
StiCompositeTreeNode.h:94
StiHit
Definition:
StiHit.h:51
NameMapKey
Definition:
StiMapUtilities.h:28
MapKeyLessThan
Definition:
StiMapUtilities.h:20
StTpcHit
Definition:
StTpcHit.h:119
SetHitUnused
Definition:
StiMapUtilities.h:46
HitMapKey
Definition:
StiMapUtilities.h:13
SetHitUsed
Definition:
StiMapUtilities.h:42
StiDetector
Definition:
StiDetector.h:29
StiTrackNode
Definition:
StiTrackNode.h:116
Generated by
1.8.5