File indexing completed on 2024-04-06 12:19:59
0001 #ifndef GlobalTrigger_L1GtExternalCondition_h
0002 #define GlobalTrigger_L1GtExternalCondition_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include <iosfwd>
0021 #include <string>
0022
0023
0024
0025 #include "L1Trigger/GlobalTrigger/interface/L1GtConditionEvaluation.h"
0026
0027
0028 class L1GtCondition;
0029 class L1GtExternalTemplate;
0030
0031
0032 class L1GtExternalCondition : public L1GtConditionEvaluation {
0033 public:
0034
0035
0036 L1GtExternalCondition();
0037
0038
0039 L1GtExternalCondition(const L1GtCondition *, const bool result);
0040
0041
0042 L1GtExternalCondition(const L1GtExternalCondition &);
0043
0044
0045 ~L1GtExternalCondition() override;
0046
0047
0048 L1GtExternalCondition &operator=(const L1GtExternalCondition &);
0049
0050 public:
0051
0052 const bool evaluateCondition() const override;
0053
0054
0055 void print(std::ostream &myCout) const override;
0056
0057 public:
0058
0059 inline const L1GtExternalTemplate *gtExternalTemplate() const { return m_gtExternalTemplate; }
0060
0061 void setGtExternalTemplate(const L1GtExternalTemplate *);
0062
0063
0064 inline const bool conditionResult() const { return m_conditionResult; }
0065
0066 inline void setConditionResult(const bool result) { m_conditionResult = result; }
0067
0068 private:
0069
0070 void copy(const L1GtExternalCondition &cp);
0071
0072 private:
0073
0074 const L1GtExternalTemplate *m_gtExternalTemplate;
0075
0076
0077 bool m_conditionResult;
0078 };
0079
0080 #endif