a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
TransverseMomentumCut.hpp
Go to the documentation of this file.
1/*
2 * TransverseMomentumCut.hpp
3 *
4 * Created on: Jan 26, 2012
5 * Author: Ben O'Leary (benjamin.oleary@gmail.com)
6 * Copyright 2012 Ben O'Leary
7 *
8 * This file is part of LesHouchesParserClasses, released under the
9 * GNU General Public License. Please see the accompanying
10 * README.LHPC_CPP.txt file for a full list of files, brief documentation
11 * on how to use these classes, and further details on the license.
12 */
13
14#ifndef TRANSVERSEMOMENTUMCUT_HPP_
15#define TRANSVERSEMOMENTUMCUT_HPP_
16
17#include "../FilterRule.hpp"
18
19namespace LHPC
20{
21 namespace LHEF
22 {
23 namespace FilterRuleClass
24 {
25 // this class returns acceptRatherThanReject if it finds that the
26 // transverse momentum from lineToCheck is less than momentumCut.
28 {
29 public:
30 TransverseMomentumCut( double const momentumCut,
31 bool const acceptRatherThanReject = true );
32 virtual
34
35 virtual bool
36 operator()( ParticleLine const& lineToCheck ) const;
37
38
39 protected:
41 };
42
43
44
45 inline bool
47 ParticleLine const& lineToCheck ) const
48 {
50 {
52 }
53 else
54 {
56 }
57 }
58
59 }
61
62 }
63
64}
65
66#endif /* TRANSVERSEMOMENTUMCUT_HPP_ */
TransverseMomentumCut(double const momentumCut, bool const acceptRatherThanReject=true)
virtual bool operator()(ParticleLine const &lineToCheck) const
bool const acceptRatherThanReject
Definition: FilterRule.hpp:36
double getTransverseMomentumSquared() const
FilterRuleClass::TransverseMomentumCut FilterOnTransverseMomentum