a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
InitialOrIntermediateOrFinalState.hpp
Go to the documentation of this file.
1/*
2 * InitialOrIntermediateOrFinalState.hpp
3 *
4 * Created on: Jan 30, 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 INITIALORINTERMEDIATEORFINALSTATE_HPP_
15#define INITIALORINTERMEDIATEORFINALSTATE_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
26 // getInitialOrIntermediateOrFinalState() matches acceptableValue.
28 {
29 public:
31 {
34 finalState = 1
35 };
36
38 bool const acceptRatherThanReject = true );
40 bool const acceptRatherThanReject = true );
41 virtual
43
44 virtual bool
45 operator()( ParticleLine const& lineToCheck ) const;
46
47
48 protected:
50 };
51
52
53
54 inline bool
56 ParticleLine const& lineToCheck ) const
57 {
60 {
62 }
63 else
64 {
66 }
67 }
68
69 }
71
72 }
73
74}
75
76#endif /* INITIALORINTERMEDIATEORFINALSTATE_HPP_ */
InitialOrIntermediateOrFinalState(stateType const acceptableValue, bool const acceptRatherThanReject=true)
bool const acceptRatherThanReject
Definition: FilterRule.hpp:36
int getInitialOrIntermediateOrFinalState() const
FilterRuleClass::InitialOrIntermediateOrFinalState FilterOnState