34 #include "StFtpcHit.h"
35 #include "StRichHit.h"
37 #include "StMcTpcHit.hh"
38 #include "StMcSvtHit.hh"
39 #include "StMcSsdHit.hh"
40 #include "StMcFtpcHit.hh"
41 #include "StMcRichHit.hh"
42 #include "StMcHitComparisons.hh"
43 bool compHit::operator()(
const StHit* h1,
const StHit* h2)
const {
44 if (h1->position().z() != h2->position().z()) {
45 return h1->position().z() < h2->position().z();
47 else if (h1->position().y() != h2->position().y()) {
48 return h1->position().y() < h2->position().y();
50 else return h1->position().x() < h2->position().x();
52 bool compMcHit::operator()(
const StMcHit* h1,
const StMcHit* h2)
const {
53 if (h1->position().z() != h2->position().z()) {
54 return h1->position().z() < h2->position().z();
56 else if (h1->position().y() != h2->position().y()) {
57 return h1->position().y() < h2->position().y();
59 else return h1->position().x() < h2->position().x();
65 if ((phi1 = p1.phi()) != (phi2 = p2.phi()))
67 else return p1.perp() < p2.perp();
71 return crp(h1->position(), h2->position());
75 return crp(h1->position(), h2->position());