/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/FTLRecHit/interface/FTLRecHitComparison.h
20 строк
684 B
Matti Kortelainen
Move stored types in io_v1 namespace, reset class versions to 3
22 май 2026, 18:18
22 май 2026, 18:18
909f324
Код
Авторство
О чём код?
#ifndef DataFormats_FTLRecHitComparison_H #define DataFormats_FTLRecHitComparison_H #include "DataFormats/FTLRecHit/interface/FTLRecHit.h" //ordering capability mandatory for lazy getter framework // Comparison operators namespace io_v1 { inline bool operator<(const FTLRecHit& one, const FTLRecHit& other) { if (one.detid() == other.detid()) { return one.energy() < other.energy(); } return one.detid() < other.detid(); } inline bool operator<(const FTLRecHit& one, const uint32_t& detid) { return one.detid() < detid; } inline bool operator<(const uint32_t& detid, const FTLRecHit& other) { return detid < other.detid(); } } // namespace io_v1 #endif