Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-08 08:16:14

0001 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0002 #include "Pythia8/Pythia.h"
0003 #include "FWCore/PluginManager/interface/PluginFactory.h"
0004 
0005 // Automatic addition of user hooks to pythia without the need to edit the hadronizer/generator files
0006 typedef edmplugin::PluginFactory<Pythia8::UserHooks*(const edm::ParameterSet&)> CustomHookFactory;
0007 
0008 #define REGISTER_USERHOOK(type) DEFINE_EDM_PLUGIN(CustomHookFactory, type, #type)