src
RecoTracker
TkDetLayers
src
DetGroupElementZLess.h
Go to the documentation of this file.
1
#ifndef TkDetLayers_DetGroupElementZLess_h
2
#define TkDetLayers_DetGroupElementZLess_h
3
4
#pragma GCC visibility push(hidden)
5
class
DetGroupElementZLess
{
6
public
:
7
bool
operator()
(
DetGroup
a
,
DetGroup
b
) {
8
return
(
std::abs
(
a
.front().det()->position().z()) <
std::abs
(
b
.front().det()->position().z()));
9
}
10
};
11
12
#pragma GCC visibility pop
13
#endif
DetGroupElementZLess
Definition:
DetGroupElementZLess.h:5
DetGroup
Definition:
DetGroup.h:41
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
b
double b
Definition:
hdecay.h:118
a
double a
Definition:
hdecay.h:119
DetGroupElementZLess::operator()
bool operator()(DetGroup a, DetGroup b)
Definition:
DetGroupElementZLess.h:7
Generated for CMSSW Reference Manual by
1.8.14