EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CbmLitComparators.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmLitComparators.h
1
#ifndef CBMLITCOMPARATORS_H_
2
#define CBMLITCOMPARATORS_H_
3
4
#include "data/CbmLitHit.h"
5
#include "data/CbmLitStripHit.h"
6
#include "data/CbmLitPixelHit.h"
7
#include "data/CbmLitTrackParam.h"
8
#include "propagation/CbmLitMaterialInfo.h"
9
10
#include <functional>
11
#include <iostream>
12
13
14
15
//class CompareMaterialInfoZLess:
16
// public std::binary_function<
17
// const CbmLitMaterialInfo&,
18
// const CbmLitMaterialInfo&,
19
// bool>
20
//{
21
//public:
22
// bool operator()(const CbmLitMaterialInfo& mat1, const CbmLitMaterialInfo& mat2) const {
23
// return mat1.GetZpos() < mat2.GetZpos();
24
// }
25
//};
26
//
27
//
28
//
29
//class CompareTrackParamZLess:
30
// public std::binary_function<
31
// const CbmLitTrackParam&,
32
// const CbmLitTrackParam&,
33
// bool>
34
//{
35
//public:
36
// bool operator()(const CbmLitTrackParam& par1, const CbmLitTrackParam& par2) const {
37
// return par1.GetZ() < par2.GetZ();
38
// }
39
//};
40
41
42
43
//class ComparePixelHitPtrYLess :
44
// public std::binary_function<
45
// const CbmLitPixelHit*,
46
// const CbmLitPixelHit*,
47
// bool>
48
//{
49
//public:
50
// bool operator()(const CbmLitPixelHit* hit1, const CbmLitPixelHit* hit2) const {
51
// return hit1->GetY() < hit2->GetY();
52
// }
53
//};
54
//
55
//
56
//
57
//class ComparePixelHitPtrXLess :
58
// public std::binary_function<
59
// const CbmLitPixelHit*,
60
// const CbmLitPixelHit*,
61
// bool>
62
//{
63
//public:
64
// bool operator()(const CbmLitPixelHit* hit1, const CbmLitPixelHit* hit2) const {
65
// return hit1->GetX() < hit2->GetX();
66
// }
67
//};
68
//
69
//
70
//
71
//class CompareHitPtrXULess :
72
// public std::binary_function<
73
// const CbmLitHit*,
74
// const CbmLitHit*,
75
// bool>
76
//{
77
//public:
78
// bool operator()(const CbmLitHit* hit1, const CbmLitHit* hit2) const {
79
// if (hit1 == NULL || hit2 == NULL) return false; // Bug fix from 10.12.2012. Protection against NULL hit pointer.
80
// if (hit1->GetType() == kLITPIXELHIT) {
81
// const CbmLitPixelHit* phit1 = static_cast<const CbmLitPixelHit*>(hit1);
82
// const CbmLitPixelHit* phit2 = static_cast<const CbmLitPixelHit*>(hit2);
83
// return phit1->GetX() < phit2->GetX();
84
// } else if (hit1->GetType() == kLITSTRIPHIT) {
85
// const CbmLitStripHit* shit1 = static_cast<const CbmLitStripHit*>(hit1);
86
// const CbmLitStripHit* shit2 = static_cast<const CbmLitStripHit*>(hit2);
87
// return shit1->GetU() < shit2->GetU();
88
// } else {
89
// std::cout << "CompareHitPtrXULess: HIT TYPE NOT SUPPORTED" << std::endl;
90
// return false;
91
// }
92
// }
93
//};
94
//
95
//
96
//
97
//class CompareStripHitPtrULess :
98
// public std::binary_function<
99
// const CbmLitStripHit*,
100
// const CbmLitStripHit*,
101
// bool>
102
//{
103
//public:
104
// bool operator()(const CbmLitStripHit* hit1, const CbmLitStripHit* hit2) const {
105
// return hit1->GetU() < hit2->GetU();
106
// }
107
//};
108
109
#endif
/*CBMLITCOMPARATORS_H_*/
EicRoot
blob
master
littrack
std
utils
CbmLitComparators.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration