1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "Pythia8/UserHooks.h"
class PTFilterHook : public Pythia8::UserHooks {
public:
// Constructor and destructor.
PTFilterHook() {}
//--------------------------------------------------------------------------
bool initAfterBeams() override;
bool canVetoPT() override { return true; }
double scaleVetoPT() override { return scale_; }
bool doVetoPT(int iPos, const Pythia8::Event& event) override { return checkVetoPT(iPos, event); }
bool checkVetoPT(int iPos, const Pythia8::Event& event);
//--------------------------------------------------------------------------
private:
bool filter_;
int quark_;
double scale_;
double quarkY_;
double quarkPt_;
};
|