/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/UtilAlgos/interface/DetSetCounterSelector.h
27 строк
985 B
mmusich
introduce the possibility to count the number of counts per DetSet and use it in PixelOccupancyFilter in order to count the total number of pixel dets with at least N and at most M clusters in an event
23 сен 2023, 15:57
23 сен 2023, 15:57
e9f9952
Код
Авторство
О чём код?
#ifndef UtilAlgos_DetSetCounterSelector_h #define UtilAlgos_DetSetCounterSelector_h #include "FWCore/Framework/interface/ConsumesCollector.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h" #include "CommonTools/Utils/interface/DetSetCounterSelector.h" namespace reco { namespace modules { template <> struct ParameterAdapter<DetSetCounterSelector> { static DetSetCounterSelector make(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC) { return DetSetCounterSelector(cfg.getParameter<unsigned int>("minDetSetCounts"), cfg.getParameter<unsigned int>("maxDetSetCounts")); } static void fillPSetDescription(edm::ParameterSetDescription& desc) { desc.add<unsigned int>("minDetSetCounts", 0); desc.add<unsigned int>("maxDetSetCounts", 0); } }; } // namespace modules } // namespace reco #endif