Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:26

0001 
0002 #include "Pythia8/UserHooks.h"
0003 
0004 class PTFilterHook : public Pythia8::UserHooks {
0005 public:
0006   // Constructor and destructor.
0007   PTFilterHook() {}
0008 
0009   //--------------------------------------------------------------------------
0010 
0011   bool initAfterBeams() override;
0012   bool canVetoPT() override { return true; }
0013   double scaleVetoPT() override { return scale_; }
0014   bool doVetoPT(int iPos, const Pythia8::Event& event) override { return checkVetoPT(iPos, event); }
0015   bool checkVetoPT(int iPos, const Pythia8::Event& event);
0016 
0017   //--------------------------------------------------------------------------
0018 
0019 private:
0020   bool filter_;
0021   int quark_;
0022   double scale_;
0023   double quarkY_;
0024   double quarkPt_;
0025 };