/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
TrackingTools/GeomPropagators/interface/PropagationDirectionFromPath.h
19 строк
714 B
Cms Build
Clang-Format
27 май 2019, 05:59
27 май 2019, 05:59
4ed5991
Код
Авторство
О чём код?
#ifndef _CR_PropagationDirectionFromPath #define _CR_PropagationDirectionFromPath #include "DataFormats/TrajectorySeed/interface/PropagationDirection.h" /** \class PropagationDirectionFromPath * Converts sign of path to propagation direction. */ class PropagationDirectionFromPath { public: /// Direction from sign of path length inline PropagationDirection operator()(const double& s) const { return s >= 0 ? alongMomentum : oppositeToMomentum; } /// Direction from second argument, from sign of path length, inline PropagationDirection operator()(const double& s, const PropagationDirection propDir) const { if (propDir != anyDirection) return propDir; return (*this)(s); } }; #endif