Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:58

0001 #ifndef GeneratorInterface_Pythia8Interface_SuepDecay_h
0002 #define GeneratorInterface_Pythia8Interface_SuepDecay_h
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/PluginManager/interface/PluginFactory.h"
0006 #include "Pythia8/Pythia.h"
0007 #include "GeneratorInterface/Pythia8Interface/interface/SuepShower.h"
0008 #include <memory>
0009 #include "GeneratorInterface/Pythia8Interface/interface/CustomHook.h"
0010 
0011 // Adapted by Kevin Pedro to run on cmssw as a user hook
0012 class SuepDecay : public Pythia8::UserHooks {
0013 public:
0014   SuepDecay(const edm::ParameterSet& iConfig);
0015   ~SuepDecay() override {}
0016 
0017   bool initAfterBeams() override;
0018 
0019   bool canVetoProcessLevel() override { return true; }
0020   bool doVetoProcessLevel(Pythia8::Event& event) override;
0021 
0022 protected:
0023   int idMediator_, idDark_;
0024   float temperature_, mDark_;
0025   std::unique_ptr<SuepShower> suep_shower_;
0026 };
0027 
0028 REGISTER_USERHOOK(SuepDecay);
0029 #endif