/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/HistProducer.cc
22 строки
628 B
Chris Jones
Moved plugins to FWCore/Integration/plugins
10 янв 2023, 17:49
10 янв 2023, 17:49
974ebbd
Код
Авторство
О чём код?
#include "TH1F.h" #include "HistProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" namespace edmtest { HistProducer::HistProducer(edm::ParameterSet const&) { produces<TH1F>(); //produces<ThingWithHist>(); } // Functions that gets called by framework every event void HistProducer::produce(edm::StreamID, edm::Event& e, edm::EventSetup const&) const { //Empty Histograms e.put(std::make_unique<TH1F>()); //e.put(std::make_unique<ThingWithHist>()); } } // namespace edmtest using edmtest::HistProducer; DEFINE_FWK_MODULE(HistProducer);