CMS 3D CMS Logo

GlobalObjectMap.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1TGtObjectMap_h
2 #define L1GlobalTrigger_L1TGtObjectMap_h
3 
18 // system include files
19 #include <string>
20 #include <vector>
21 
22 #include <iosfwd>
23 
24 // user include files
26 
28 
29 // forward declarations
30 
31 // class declaration
33 public:
36 
38  //~GlobalObjectMap(){}
39 
40 public:
42  inline const std::string& algoName() const { return m_algoName; }
43 
44  void setAlgoName(const std::string& algoNameValue) { m_algoName = algoNameValue; }
45 
47  inline int algoBitNumber() const { return m_algoBitNumber; }
48 
49  void setAlgoBitNumber(int algoBitNumberValue) { m_algoBitNumber = algoBitNumberValue; }
50 
53  inline bool algoGtlResult() const { return m_algoGtlResult; }
54 
55  void setAlgoGtlResult(bool algoGtlResultValue) { m_algoGtlResult = algoGtlResultValue; }
56 
59  inline const std::vector<CombinationsInCond>& combinationVector() const { return m_combinationVector; }
60 
61  void setCombinationVector(const std::vector<CombinationsInCond>& combinationVectorValue) {
62  m_combinationVector = combinationVectorValue;
63  }
64  void swapCombinationVector(std::vector<CombinationsInCond>& combinationVectorValue) {
65  m_combinationVector.swap(combinationVectorValue);
66  }
67 
70  inline const std::vector<GlobalLogicParser::OperandToken>& operandTokenVector() const { return m_operandTokenVector; }
71 
72  void setOperandTokenVector(const std::vector<GlobalLogicParser::OperandToken>& operandTokenVectorValue) {
73  m_operandTokenVector = operandTokenVectorValue;
74  }
75  void swapOperandTokenVector(std::vector<GlobalLogicParser::OperandToken>& operandTokenVectorValue) {
76  m_operandTokenVector.swap(operandTokenVectorValue);
77  }
78 
81  inline const std::vector<L1TObjectTypeInCond>& objectTypeVector() const { return m_objectTypeVector; }
82  void setObjectTypeVector(const std::vector<L1TObjectTypeInCond>& objectTypeVectorValue) {
83  m_objectTypeVector = objectTypeVectorValue;
84  }
85  void swapObjectTypeVector(std::vector<L1TObjectTypeInCond>& objectTypeVectorValue) {
86  m_objectTypeVector.swap(objectTypeVectorValue);
87  }
88 
89 public:
91  const CombinationsInCond* getCombinationsInCond(const std::string& condNameVal) const;
92 
94  const CombinationsInCond* getCombinationsInCond(const int condNumberVal) const;
95 
97  const bool getConditionResult(const std::string& condNameVal) const;
98 
99 public:
101  void reset();
102 
104  void print(std::ostream& myCout) const;
105 
106 private:
107  // name of the algorithm
109 
110  // bit number for algorithm
112 
113  // GTL result of the algorithm
115 
118  std::vector<GlobalLogicParser::OperandToken> m_operandTokenVector;
119 
120  // vector of combinations for all conditions in an algorithm
121  std::vector<CombinationsInCond> m_combinationVector;
122 
123  // vector of object type vectors for all conditions in an algorithm
124  std::vector<L1TObjectTypeInCond> m_objectTypeVector;
125 };
126 
127 #endif /* L1GlobalTrigger_L1TGtObjectMap_h */
void setAlgoBitNumber(int algoBitNumberValue)
void swapOperandTokenVector(std::vector< GlobalLogicParser::OperandToken > &operandTokenVectorValue)
const std::vector< L1TObjectTypeInCond > & objectTypeVector() const
GlobalObjectMap()
constructor(s)
bool algoGtlResult() const
void swapObjectTypeVector(std::vector< L1TObjectTypeInCond > &objectTypeVectorValue)
void swapCombinationVector(std::vector< CombinationsInCond > &combinationVectorValue)
void setObjectTypeVector(const std::vector< L1TObjectTypeInCond > &objectTypeVectorValue)
void print(std::ostream &myCout) const
print the full object map
void setOperandTokenVector(const std::vector< GlobalLogicParser::OperandToken > &operandTokenVectorValue)
void reset()
reset the object map
int algoBitNumber() const
get / set bit number for algorithm in the object map
void setAlgoGtlResult(bool algoGtlResultValue)
const std::vector< CombinationsInCond > & combinationVector() const
std::vector< GlobalLogicParser::OperandToken > m_operandTokenVector
std::vector< L1TObjectTypeInCond > m_objectTypeVector
const std::vector< GlobalLogicParser::OperandToken > & operandTokenVector() const
const std::string & algoName() const
destructor
const bool getConditionResult(const std::string &condNameVal) const
return the result for the condition condNameVal
void setAlgoName(const std::string &algoNameValue)
const CombinationsInCond * getCombinationsInCond(const std::string &condNameVal) const
return all the combinations passing the requirements imposed in condition condNameVal ...
std::vector< CombinationsInCond > m_combinationVector
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
std::string m_algoName
void setCombinationVector(const std::vector< CombinationsInCond > &combinationVectorValue)