/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/UtilAlgos/interface/FreeFunctionSelector.h
30 строк
1016 B
mmusich
Add fillDescriptions to several plugins used at HLT
03 фев 2025, 13:35
03 фев 2025, 13:35
083eb7b
Код
Авторство
О чём код?
#ifndef CommonTools_UtilAlgos_FreeFunctionSelector_h #define CommonTools_UtilAlgos_FreeFunctionSelector_h /* \class FreeFunctionSelector * * \author Luca Lista, INFN * * \version $Id: FreeFunctionSelector.h,v 1.1 2008/01/22 11:17:58 llista Exp $ */ template <typename T, bool (*f)(const T&)> struct FreeFunctionSelector { bool operator()(const T& t) { return f(t); } }; #include "FWCore/Framework/interface/ConsumesCollector.h" #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" namespace reco { namespace modules { template <typename T, bool (*f)(const T&)> struct ParameterAdapter<FreeFunctionSelector<T, f> > { typedef FreeFunctionSelector<T, f> value_type; static value_type make(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC) { return value_type(); } static void fillPSetDescription(edm::ParameterSetDescription& desc) {} }; } // namespace modules } // namespace reco #endif