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 */
GlobalObjectMap::setCombinationVector
void setCombinationVector(const std::vector< CombinationsInCond > &combinationVectorValue)
Definition: GlobalObjectMap.h:61
GlobalObjectMap
Definition: GlobalObjectMap.h:32
GlobalObjectMap::GlobalObjectMap
GlobalObjectMap()
constructor(s)
Definition: GlobalObjectMap.h:35
GlobalObjectMap::m_algoGtlResult
bool m_algoGtlResult
Definition: GlobalObjectMap.h:114
GlobalObjectMapFwd.h
GlobalObjectMap::m_algoBitNumber
int m_algoBitNumber
Definition: GlobalObjectMap.h:111
GlobalObjectMap::combinationVector
const std::vector< CombinationsInCond > & combinationVector() const
Definition: GlobalObjectMap.h:59
GlobalObjectMap::m_objectTypeVector
std::vector< L1TObjectTypeInCond > m_objectTypeVector
Definition: GlobalObjectMap.h:124
CombinationsInCond
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
Definition: L1GlobalTriggerObjectMapFwd.h:32
GlobalObjectMap::swapCombinationVector
void swapCombinationVector(std::vector< CombinationsInCond > &combinationVectorValue)
Definition: GlobalObjectMap.h:64
GlobalObjectMap::reset
void reset()
reset the object map
Definition: GlobalObjectMap.cc:81
GlobalLogicParser.h
GlobalObjectMap::setObjectTypeVector
void setObjectTypeVector(const std::vector< L1TObjectTypeInCond > &objectTypeVectorValue)
Definition: GlobalObjectMap.h:82
GlobalObjectMap::m_operandTokenVector
std::vector< GlobalLogicParser::OperandToken > m_operandTokenVector
Definition: GlobalObjectMap.h:118
GlobalObjectMap::algoBitNumber
int algoBitNumber() const
get / set bit number for algorithm in the object map
Definition: GlobalObjectMap.h:47
GlobalObjectMap::getCombinationsInCond
const CombinationsInCond * getCombinationsInCond(const std::string &condNameVal) const
return all the combinations passing the requirements imposed in condition condNameVal
Definition: GlobalObjectMap.cc:33
GlobalObjectMap::setAlgoBitNumber
void setAlgoBitNumber(int algoBitNumberValue)
Definition: GlobalObjectMap.h:49
GlobalObjectMap::setAlgoGtlResult
void setAlgoGtlResult(bool algoGtlResultValue)
Definition: GlobalObjectMap.h:55
GlobalObjectMap::swapObjectTypeVector
void swapObjectTypeVector(std::vector< L1TObjectTypeInCond > &objectTypeVectorValue)
Definition: GlobalObjectMap.h:85
GlobalObjectMap::algoGtlResult
bool algoGtlResult() const
Definition: GlobalObjectMap.h:53
GlobalObjectMap::objectTypeVector
const std::vector< L1TObjectTypeInCond > & objectTypeVector() const
Definition: GlobalObjectMap.h:81
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalObjectMap::operandTokenVector
const std::vector< GlobalLogicParser::OperandToken > & operandTokenVector() const
Definition: GlobalObjectMap.h:70
GlobalObjectMap::m_algoName
std::string m_algoName
Definition: GlobalObjectMap.h:108
GlobalObjectMap::print
void print(std::ostream &myCout) const
print the full object map
Definition: GlobalObjectMap.cc:98
GlobalObjectMap::swapOperandTokenVector
void swapOperandTokenVector(std::vector< GlobalLogicParser::OperandToken > &operandTokenVectorValue)
Definition: GlobalObjectMap.h:75
GlobalObjectMap::m_combinationVector
std::vector< CombinationsInCond > m_combinationVector
Definition: GlobalObjectMap.h:121
GlobalObjectMap::setOperandTokenVector
void setOperandTokenVector(const std::vector< GlobalLogicParser::OperandToken > &operandTokenVectorValue)
Definition: GlobalObjectMap.h:72
GlobalObjectMap::algoName
const std::string & algoName() const
destructor
Definition: GlobalObjectMap.h:42
GlobalObjectMap::getConditionResult
const bool getConditionResult(const std::string &condNameVal) const
return the result for the condition condNameVal
Definition: GlobalObjectMap.cc:66
GlobalObjectMap::setAlgoName
void setAlgoName(const std::string &algoNameValue)
Definition: GlobalObjectMap.h:44