CbmRoot
CbmLitComparators.h
Go to the documentation of this file.
1 #ifndef CBMLITCOMPARATORS_H_
2 #define CBMLITCOMPARATORS_H_
3 
4 #include "data/CbmLitHit.h"
5 #include "data/CbmLitPixelHit.h"
6 #include "data/CbmLitStripHit.h"
9 
10 #include <functional>
11 #include <iostream>
12 
13 
14 //class CompareMaterialInfoZLess:
15 // public std::binary_function<
16 // const CbmLitMaterialInfo&,
17 // const CbmLitMaterialInfo&,
18 // bool>
19 //{
20 //public:
21 // bool operator()(const CbmLitMaterialInfo& mat1, const CbmLitMaterialInfo& mat2) const {
22 // return mat1.GetZpos() < mat2.GetZpos();
23 // }
24 //};
25 //
26 //
27 //
28 //class CompareTrackParamZLess:
29 // public std::binary_function<
30 // const CbmLitTrackParam&,
31 // const CbmLitTrackParam&,
32 // bool>
33 //{
34 //public:
35 // bool operator()(const CbmLitTrackParam& par1, const CbmLitTrackParam& par2) const {
36 // return par1.GetZ() < par2.GetZ();
37 // }
38 //};
39 
40 
41 //class ComparePixelHitPtrYLess :
42 // public std::binary_function<
43 // const CbmLitPixelHit*,
44 // const CbmLitPixelHit*,
45 // bool>
46 //{
47 //public:
48 // bool operator()(const CbmLitPixelHit* hit1, const CbmLitPixelHit* hit2) const {
49 // return hit1->GetY() < hit2->GetY();
50 // }
51 //};
52 //
53 //
54 //
55 //class ComparePixelHitPtrXLess :
56 // public std::binary_function<
57 // const CbmLitPixelHit*,
58 // const CbmLitPixelHit*,
59 // bool>
60 //{
61 //public:
62 // bool operator()(const CbmLitPixelHit* hit1, const CbmLitPixelHit* hit2) const {
63 // return hit1->GetX() < hit2->GetX();
64 // }
65 //};
66 //
67 //
68 //
69 //class CompareHitPtrXULess :
70 // public std::binary_function<
71 // const CbmLitHit*,
72 // const CbmLitHit*,
73 // bool>
74 //{
75 //public:
76 // bool operator()(const CbmLitHit* hit1, const CbmLitHit* hit2) const {
77 // if (hit1 == NULL || hit2 == NULL) return false; // Bug fix from 10.12.2012. Protection against NULL hit pointer.
78 // if (hit1->GetType() == kLITPIXELHIT) {
79 // const CbmLitPixelHit* phit1 = static_cast<const CbmLitPixelHit*>(hit1);
80 // const CbmLitPixelHit* phit2 = static_cast<const CbmLitPixelHit*>(hit2);
81 // return phit1->GetX() < phit2->GetX();
82 // } else if (hit1->GetType() == kLITSTRIPHIT) {
83 // const CbmLitStripHit* shit1 = static_cast<const CbmLitStripHit*>(hit1);
84 // const CbmLitStripHit* shit2 = static_cast<const CbmLitStripHit*>(hit2);
85 // return shit1->GetU() < shit2->GetU();
86 // } else {
87 // std::cout << "CompareHitPtrXULess: HIT TYPE NOT SUPPORTED" << std::endl;
88 // return false;
89 // }
90 // }
91 //};
92 //
93 //
94 //
95 //class CompareStripHitPtrULess :
96 // public std::binary_function<
97 // const CbmLitStripHit*,
98 // const CbmLitStripHit*,
99 // bool>
100 //{
101 //public:
102 // bool operator()(const CbmLitStripHit* hit1, const CbmLitStripHit* hit2) const {
103 // return hit1->GetU() < hit2->GetU();
104 // }
105 //};
106 
107 #endif /*CBMLITCOMPARATORS_H_*/
CbmLitTrackParam.h
Data class for track parameters.
CbmLitStripHit.h
Base data class for strip hits.
CbmLitPixelHit.h
Base data class for pixel hits.
CbmLitMaterialInfo.h
CbmLitHit.h
Base data class for hits.