CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GlobalTriggerObjectMap.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1GlobalTriggerObjectMap_h
2 #define L1GlobalTrigger_L1GlobalTriggerObjectMap_h
3 
18 // system include files
19 #include <string>
20 #include <vector>
21 
22 #include <iosfwd>
23 
24 // user include files
27 
29 
30 // forward declarations
31 
32 // class declaration
34 {
35 
36 public:
37 
40 
43 
44 public:
45 
47  inline const std::string & algoName() const
48  {
49  return m_algoName;
50  }
51 
52  void setAlgoName(const std::string& algoNameValue) {
53  m_algoName = algoNameValue;
54  }
55 
57  inline int algoBitNumber() const
58  {
59  return m_algoBitNumber;
60  }
61 
62  void setAlgoBitNumber(int algoBitNumberValue)
63  {
64  m_algoBitNumber = algoBitNumberValue;
65  }
66 
69  inline bool algoGtlResult() const {
70  return m_algoGtlResult;
71  }
72 
73  void setAlgoGtlResult(bool algoGtlResultValue) {
74  m_algoGtlResult = algoGtlResultValue;
75  }
76 
79  inline const std::vector<CombinationsInCond>& combinationVector() const
80  {
81  return m_combinationVector;
82  }
83 
84  void setCombinationVector(const std::vector<CombinationsInCond>& combinationVectorValue) {
85  m_combinationVector = combinationVectorValue;
86  }
87  void swapCombinationVector(std::vector<CombinationsInCond>& combinationVectorValue) {
88  m_combinationVector.swap(combinationVectorValue);
89  }
90 
93  inline const std::vector<L1GtLogicParser::OperandToken>& operandTokenVector() const {
94  return m_operandTokenVector;
95  }
96 
97  void setOperandTokenVector(const std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
98  m_operandTokenVector = operandTokenVectorValue;
99  }
100  void swapOperandTokenVector(std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
101  m_operandTokenVector.swap(operandTokenVectorValue);
102  }
103 
104 public:
105 
107  const CombinationsInCond* getCombinationsInCond(const std::string& condNameVal) const;
108 
110  const CombinationsInCond* getCombinationsInCond(const int condNumberVal) const;
111 
113  const bool getConditionResult(const std::string& condNameVal) const;
114 
115 public:
116 
118  void reset();
119 
121  void print(std::ostream& myCout) const;
122 
123 private:
124 
125  // name of the algorithm
127 
128  // bit number for algorithm
130 
131  // GTL result of the algorithm
133 
136  std::vector<L1GtLogicParser::OperandToken> m_operandTokenVector;
137 
138  // vector of combinations for all conditions in an algorithm
139  std::vector<CombinationsInCond> m_combinationVector;
140 
141 };
142 
143 #endif /* L1GlobalTrigger_L1GlobalTriggerObjectMap_h */
const std::vector< CombinationsInCond > & combinationVector() const
void swapCombinationVector(std::vector< CombinationsInCond > &combinationVectorValue)
void setAlgoName(const std::string &algoNameValue)
const std::vector< L1GtLogicParser::OperandToken > & operandTokenVector() const
void swapOperandTokenVector(std::vector< L1GtLogicParser::OperandToken > &operandTokenVectorValue)
const std::string & algoName() const
get / set name for algorithm in the object map
std::vector< L1GtLogicParser::OperandToken > m_operandTokenVector
const CombinationsInCond * getCombinationsInCond(const std::string &condNameVal) const
return all the combinations passing the requirements imposed in condition condNameVal ...
void print(std::ostream &myCout) const
print the full object map
void setAlgoGtlResult(bool algoGtlResultValue)
std::vector< CombinationsInCond > m_combinationVector
void setAlgoBitNumber(int algoBitNumberValue)
void setCombinationVector(const std::vector< CombinationsInCond > &combinationVectorValue)
int algoBitNumber() const
get / set bit number for algorithm in the object map
L1GlobalTriggerObjectMap()
constructor(s)
void setOperandTokenVector(const std::vector< L1GtLogicParser::OperandToken > &operandTokenVectorValue)
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
void reset()
reset the object map
const bool getConditionResult(const std::string &condNameVal) const
return the result for the condition condNameVal