/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
TrackingTools/DetLayers/interface/DetLessZ.h
21 строка
633 B
Shahzad Malik Muzaffar
[TrackingTools] Move public headers on to interface directory
03 авг 2021, 16:15
03 авг 2021, 16:15
7a99a9d
Код
Авторство
О чём код?
#ifndef DetLayers_DetLessZ_H #define DetLayers_DetLessZ_H /** Comparison operator for Dets based on the Z. */ #include "TrackingTools/DetLayers/interface/GeometricSearchDet.h" inline bool isDetLessZ(const GeometricSearchDet* a, const GeometricSearchDet* b) { // multiply by 1+epsilon to make it numericaly stable // the epsilon should depend on the scalar precision, // this is just a quick fix! if (a->position().z() > 0) { return a->position().z() * 1.000001 < b->position().z(); } else if (b->position().z() < 0) { return a->position().z() < b->position().z() * 1.000001; } else return true; } #endif