Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 #include "Pythia8/UserHooks.h"
0003 #include "Pythia8/Event.h"
0004 
0005 class ResonanceDecayFilterHook : public Pythia8::UserHooks {
0006 public:
0007   // Constructor and destructor.
0008   ResonanceDecayFilterHook() {}
0009 
0010   //--------------------------------------------------------------------------
0011 
0012   bool initAfterBeams() override;
0013   bool canVetoResonanceDecays() override { return true; }
0014   bool doVetoResonanceDecays(Pythia8::Event& process) override { return checkVetoResonanceDecays(process); }
0015   bool checkVetoResonanceDecays(const Pythia8::Event& process);
0016 
0017   //--------------------------------------------------------------------------
0018 
0019 private:
0020   bool filter_;
0021   bool exclusive_;
0022   bool eMuAsEquivalent_;
0023   bool eMuTauAsEquivalent_;
0024   bool allNuAsEquivalent_;
0025   bool udscAsEquivalent_;
0026   bool udscbAsEquivalent_;
0027   bool wzAsEquivalent_;
0028   std::set<int> mothers_;
0029   std::vector<int> daughters_;
0030 
0031   std::map<int, int> requestedDaughters_;
0032   std::map<int, int> observedDaughters_;
0033 };