GeneratorInterface
Pythia8Interface
interface
CustomHook.h
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
#include "Pythia8/Pythia.h"
3
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
4
5
// Automatic addition of user hooks to pythia without the need to edit the hadronizer/generator files
6
typedef
edmplugin::PluginFactory<Pythia8::UserHooks*(const edm::ParameterSet&)>
CustomHookFactory
;
7
8
#define REGISTER_USERHOOK(type) DEFINE_EDM_PLUGIN(CustomHookFactory, type, #type)
ParameterSet.h
CustomHookFactory
edmplugin::PluginFactory< Pythia8::UserHooks *(const edm::ParameterSet &)> CustomHookFactory
Definition:
CustomHook.h:6
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
PluginFactory.h
Generated for CMSSW Reference Manual by
1.8.14