StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcHitComparisons.hh
1 /**********************************************
2  *
3  * $Id: StMcHitComparisons.hh,v 2.5 2005/11/22 21:44:52 fisyak Exp $
4  *
5  * Author: Manuel Calderon de la Barca Sanchez
6  ***********************************************
7  * Description: Define the comparisons to be used
8  * in the multimaps
9  * & sorting of containers
10  *
11  ***********************************************
12  * $Log: StMcHitComparisons.hh,v $
13  * Revision 2.5 2005/11/22 21:44:52 fisyak
14  * Add compress Print for McEvent, add Ssd collections
15  *
16  * Revision 2.4 2005/07/06 21:49:51 calderon
17  * StThreeVector.hh -> StThreeVectorF.hh
18  *
19  * Revision 2.3 2005/07/06 20:05:28 calderon
20  * Remove forward declaration of StThreeVectorF, use #include, and only in
21  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
22  * only a typedef, only template version of StThreeVector exists now.
23  *
24  * Revision 2.2 2000/06/09 19:52:07 calderon
25  * No longer use 2 different functions for SVT and TPC that do the same thing,
26  * just use one function for the base class
27  *
28  * Revision 2.1 2000/03/07 15:09:54 calderon
29  * Initial Revision.
30  * Comparisons used for sorting the hit containers, and
31  * for ordering the hits in the multimaps.
32  *
33  *
34  **********************************************/
35 #ifndef StMcHitComparisons_HH
36 #define StMcHitComparisons_HH
37 class StHit;
38 class StTpcHit;
39 class StSvtHit;
40 class StSsdHit;
41 class StFtpcHit;
42 class StRichHit;
43 
44 class StMcHit;
45 class StMcTpcHit;
46 class StMcSvtHit;
47 class StMcSsdHit;
48 class StMcFtpcHit;
49 class StMcRichHit;
50 #include "StThreeVectorF.hh"
51 
52 #if (defined __SUNPRO_CC && (__SUNPRO_CC < 0x500))
53 // bool is defined in utility for SUNPRO_CC 4.2
54 #include <utility>
55 #endif
56 struct compHit{
57  bool operator()(const StHit*, const StHit*) const;
58 };
59 
60 struct compMcHit{
61  bool operator()(const StMcHit*, const StMcHit*) const;
62 };
63 
64 // struct compTpcHit{
65 // bool operator()(const StTpcHit* h1,const StTpcHit* h2) const;
66 // };
67 
68 // struct compMcTpcHit{
69 // bool operator()(const StMcTpcHit* h1,const StMcTpcHit* h2) const;
70 // };
71 
72 // struct compSvtHit{
73 // bool operator()(const StSvtHit* h1,const StSvtHit* h2) const;
74 // };
75 
76 // struct compMcSvtHit{
77 // bool operator()(const StMcSvtHit* h1,const StMcSvtHit* h2) const;
78 // };
79 
80 struct compRPhi{
81  bool operator()(const StThreeVectorF&, const StThreeVectorF&) const;
82 };
83 struct compFtpcHit{
84  bool operator()(const StFtpcHit*,const StFtpcHit*) const;
85 };
87  bool operator()(const StMcFtpcHit*,const StMcFtpcHit*) const;
88 };
89 
90 #endif
Definition: StHit.h:125