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 
20 // system include files
21 #include <string>
22 #include <vector>
23 
24 #include <iosfwd>
25 
26 // user include files
29 
31 
32 // forward declarations
33 
34 // class declaration
36 {
37 
38 public:
39 
42 
45 
46 public:
47 
49  inline const std::string & algoName() const
50  {
51  return m_algoName;
52  }
53 
54  void setAlgoName(const std::string& algoNameValue) {
55  m_algoName = algoNameValue;
56  }
57 
59  inline int algoBitNumber() const
60  {
61  return m_algoBitNumber;
62  }
63 
64  void setAlgoBitNumber(int algoBitNumberValue)
65  {
66  m_algoBitNumber = algoBitNumberValue;
67  }
68 
71  inline bool algoGtlResult() const {
72  return m_algoGtlResult;
73  }
74 
75  void setAlgoGtlResult(bool algoGtlResultValue) {
76  m_algoGtlResult = algoGtlResultValue;
77  }
78 
81  inline const std::vector<CombinationsInCond>& combinationVector() const
82  {
83  return m_combinationVector;
84  }
85 
86  void setCombinationVector(const std::vector<CombinationsInCond>& combinationVectorValue) {
87  m_combinationVector = combinationVectorValue;
88  }
89  void swapCombinationVector(std::vector<CombinationsInCond>& combinationVectorValue) {
90  m_combinationVector.swap(combinationVectorValue);
91  }
92 
95  inline const std::vector<L1GtLogicParser::OperandToken>& operandTokenVector() const {
96  return m_operandTokenVector;
97  }
98 
99  void setOperandTokenVector(const std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
100  m_operandTokenVector = operandTokenVectorValue;
101  }
102  void swapOperandTokenVector(std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
103  m_operandTokenVector.swap(operandTokenVectorValue);
104  }
105 
106 public:
107 
109  const CombinationsInCond* getCombinationsInCond(const std::string& condNameVal) const;
110 
112  const CombinationsInCond* getCombinationsInCond(const int condNumberVal) const;
113 
115  const bool getConditionResult(const std::string& condNameVal) const;
116 
117 public:
118 
120  void reset();
121 
123  void print(std::ostream& myCout) const;
124 
125 private:
126 
127  // name of the algorithm
128  std::string m_algoName;
129 
130  // bit number for algorithm
132 
133  // GTL result of the algorithm
135 
138  std::vector<L1GtLogicParser::OperandToken> m_operandTokenVector;
139 
140  // vector of combinations for all conditions in an algorithm
141  std::vector<CombinationsInCond> m_combinationVector;
142 
143 };
144 
145 #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