/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoMuon/Navigation/interface/MuonDetLayerMap.h
41 строка
1 KB
Cms Build
Clang-Format
24 май 2019, 00:16
24 май 2019, 00:16
876d1ce
Код
Авторство
О чём код?
#ifndef MuonDetLayerMap_h #define MuonDetLayerMap_h #include "TrackingTools/DetLayers/interface/BarrelDetLayer.h" #include "TrackingTools/DetLayers/interface/ForwardDetLayer.h" #include "RecoMuon/Navigation/interface/MuonEtaRange.h" #include <map> #include <functional> /** \class MuonDetLayerComp * * Sort the of BarrelDetLayers by radius, ForwardDetLayer by |Z|. * * * \author : Stefano Lacaprara, Nicola Amapane * * */ struct MuonDetLayerComp { bool operator()(const BarrelDetLayer* l1, const BarrelDetLayer* l2) const { if (l1->specificSurface().radius() < l2->specificSurface().radius()) return true; return false; } bool operator()(const ForwardDetLayer* l1, const ForwardDetLayer* l2) const { if (fabs(l1->surface().position().z()) < fabs(l2->surface().position().z())) return true; return false; } }; // FIXME: these names are too generic... typedef std::map<const BarrelDetLayer*, MuonEtaRange, MuonDetLayerComp> MapB; typedef std::map<const ForwardDetLayer*, MuonEtaRange, MuonDetLayerComp> MapE; typedef MapB::const_iterator MapBI; typedef MapE::const_iterator MapEI; #endif