CMS 3D CMS Logo

ResonanceDecayFilterHook.h
Go to the documentation of this file.
1 
2 #include "Pythia8/UserHooks.h"
3 #include "Pythia8/Event.h"
4 
5 class ResonanceDecayFilterHook : public Pythia8::UserHooks {
6 
7 public:
8 
9  // Constructor and destructor.
11 
12 //--------------------------------------------------------------------------
13 
14  bool initAfterBeams() override;
15  bool canVetoResonanceDecays() override { return true; }
16  bool doVetoResonanceDecays(Pythia8::Event& process) override { return checkVetoResonanceDecays(process); }
17  bool checkVetoResonanceDecays(const Pythia8::Event& process);
18 
19 //--------------------------------------------------------------------------
20 
21 private:
22  bool filter_;
23  bool exclusive_;
30  std::set<int> mothers_;
31  std::vector<int> daughters_;
32 
33  std::map<int,int> requestedDaughters_;
34  std::map<int,int> observedDaughters_;
35 
36 };
bool checkVetoResonanceDecays(const Pythia8::Event &process)
bool doVetoResonanceDecays(Pythia8::Event &process) override
std::map< int, int > requestedDaughters_
std::map< int, int > observedDaughters_