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 
107  inline const std::vector<ObjectTypeInCond>& objectTypeVector() const {
108  return m_objectTypeVector;
109  }
110  void setObjectTypeVector(const std::vector<ObjectTypeInCond>& objectTypeVectorValue) {
111  m_objectTypeVector = objectTypeVectorValue;
112  }
113  void swapObjectTypeVector(std::vector<ObjectTypeInCond>& objectTypeVectorValue) {
114  m_objectTypeVector.swap(objectTypeVectorValue);
115  }
116 
117 public:
118 
120  const CombinationsInCond* getCombinationsInCond(const std::string& condNameVal) const;
121 
123  const CombinationsInCond* getCombinationsInCond(const int condNumberVal) const;
124 
126  const bool getConditionResult(const std::string& condNameVal) const;
127 
128 public:
129 
131  void reset();
132 
134  void print(std::ostream& myCout) const;
135 
136 private:
137 
138  // name of the algorithm
140 
141  // bit number for algorithm
143 
144  // GTL result of the algorithm
146 
149  std::vector<L1GtLogicParser::OperandToken> m_operandTokenVector;
150 
151  // vector of combinations for all conditions in an algorithm
152  std::vector<CombinationsInCond> m_combinationVector;
153 
154  // vector of object type vectors for all conditions in an algorithm
155  std::vector<ObjectTypeInCond> m_objectTypeVector;
156 
157 };
158 
159 #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::vector< ObjectTypeInCond > & objectTypeVector() const
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)
void setObjectTypeVector(const std::vector< ObjectTypeInCond > &objectTypeVectorValue)
std::vector< CombinationsInCond > m_combinationVector
std::vector< ObjectTypeInCond > m_objectTypeVector
void setAlgoBitNumber(int algoBitNumberValue)
void setCombinationVector(const std::vector< CombinationsInCond > &combinationVectorValue)
void swapObjectTypeVector(std::vector< ObjectTypeInCond > &objectTypeVectorValue)
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