a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
PseudorapidityCut.cpp
Go to the documentation of this file.
1/*
2 * PseudorapidityCut.cpp
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#include "LHEF.hpp"
15
16namespace LHPC
17{
18 namespace LHEF
19 {
20 namespace FilterRuleClass
21 {
22 PseudorapidityCut::PseudorapidityCut( double const minimumPseudorapidity,
23 double const maximumPseudorapidity,
24 bool const acceptRatherThanReject ) :
25 FilterRule( acceptRatherThanReject ),
26 minimumPseudorapidity( minimumPseudorapidity ),
27 maximumPseudorapidity( maximumPseudorapidity )
28 {
29 // just an initialization list.
30 }
31
33 double const absoluteMaximumPseudorapidity,
34 bool const acceptRatherThanReject ) :
35 FilterRule( acceptRatherThanReject ),
36 minimumPseudorapidity( -absoluteMaximumPseudorapidity ),
37 maximumPseudorapidity( absoluteMaximumPseudorapidity )
38 {
39 // just an initialization list.
40 }
41
43 {
44 // does nothing.
45 }
46
47 }
48
49 }
50
51}
PseudorapidityCut(double const minimumPseudorapidity, double const maximumPseudorapidity, bool const acceptRatherThanReject=true)