/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoParticleFlow/PFProducer/interface/PFBlockElementSCEqual.h
23 строки
883 B
Cms Build
Clang-Format
26 июн 2019, 16:47
26 июн 2019, 16:47
5f3babb
Код
Авторство
О чём код?
#ifndef RecoParticleFlow_PFProducer_PFBlockElementSCEqual #define RecoParticleFlow_PFProducer_PFBlockElementSCEqual #include "DataFormats/ParticleFlowReco/interface/PFBlockElementSuperCluster.h" #include "DataFormats/ParticleFlowReco/interface/PFBlockElement.h" class PFBlockElementSCEqual { public: PFBlockElementSCEqual(reco::SuperClusterRef scRef) : ref_(scRef) { ; } inline bool operator()(const std::unique_ptr<reco::PFBlockElement>& el) { return (el->type() == reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el.get()))->superClusterRef() == ref_); } inline bool operator()(const reco::PFBlockElement* el) { return (el->type() == reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef() == ref_); } private: reco::SuperClusterRef ref_; }; #endif