/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/Pythia8Interface/interface/CustomHook.h
8 строк
427 B
cericeci
Added small macro for defining user hook+Some minor code changes
23 ноя 2021, 20:42
23 ноя 2021, 20:42
acf8af1
Код
Авторство
О чём код?
#include "FWCore/ParameterSet/interface/ParameterSet.h" #include "Pythia8/Pythia.h" #include "FWCore/PluginManager/interface/PluginFactory.h" // Automatic addition of user hooks to pythia without the need to edit the hadronizer/generator files typedef edmplugin::PluginFactory<Pythia8::UserHooks*(const edm::ParameterSet&)> CustomHookFactory; #define REGISTER_USERHOOK(type) DEFINE_EDM_PLUGIN(CustomHookFactory, type, #type)