/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoParticleFlow/PFProducer/interface/BlockElementLinkerBase.h
30 строк
1 KB
Cms Build
Clang-Format
26 июн 2019, 16:47
26 июн 2019, 16:47
5f3babb
Код
Авторство
О чём код?
#ifndef __BlockElementLinkerBase_H__ #define __BlockElementLinkerBase_H__ #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/ParticleFlowReco/interface/PFBlockElement.h" #include <string> class BlockElementLinkerBase { public: BlockElementLinkerBase(const edm::ParameterSet& conf) : _linkerName(conf.getParameter<std::string>("linkerName")) {} BlockElementLinkerBase(const BlockElementLinkerBase&) = delete; virtual ~BlockElementLinkerBase() = default; BlockElementLinkerBase& operator=(const BlockElementLinkerBase&) = delete; virtual bool linkPrefilter(const reco::PFBlockElement*, const reco::PFBlockElement*) const { return true; } virtual double testLink(const reco::PFBlockElement*, const reco::PFBlockElement*) const = 0; const std::string& name() const { return _linkerName; } private: const std::string _linkerName; }; #include "FWCore/PluginManager/interface/PluginFactory.h" typedef edmplugin::PluginFactory<BlockElementLinkerBase*(const edm::ParameterSet&)> BlockElementLinkerFactory; #endif