CMS 3D CMS Logo

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 public:
37 
40 
41 public:
43  inline const std::string& algoName() const { return m_algoName; }
44 
45  void setAlgoName(const std::string& algoNameValue) { m_algoName = algoNameValue; }
46 
48  inline int algoBitNumber() const { return m_algoBitNumber; }
49 
50  void setAlgoBitNumber(int algoBitNumberValue) { m_algoBitNumber = algoBitNumberValue; }
51 
54  inline bool algoGtlResult() const { return m_algoGtlResult; }
55 
56  void setAlgoGtlResult(bool algoGtlResultValue) { m_algoGtlResult = algoGtlResultValue; }
57 
60  inline const std::vector<CombinationsInCond>& combinationVector() const { return m_combinationVector; }
61 
62  void setCombinationVector(const std::vector<CombinationsInCond>& combinationVectorValue) {
63  m_combinationVector = combinationVectorValue;
64  }
65  void swapCombinationVector(std::vector<CombinationsInCond>& combinationVectorValue) {
66  m_combinationVector.swap(combinationVectorValue);
67  }
68 
71  inline const std::vector<L1GtLogicParser::OperandToken>& operandTokenVector() const { return m_operandTokenVector; }
72 
73  void setOperandTokenVector(const std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
74  m_operandTokenVector = operandTokenVectorValue;
75  }
76  void swapOperandTokenVector(std::vector<L1GtLogicParser::OperandToken>& operandTokenVectorValue) {
77  m_operandTokenVector.swap(operandTokenVectorValue);
78  }
79 
82  inline const std::vector<ObjectTypeInCond>& objectTypeVector() const { return m_objectTypeVector; }
83  void setObjectTypeVector(const std::vector<ObjectTypeInCond>& objectTypeVectorValue) {
84  m_objectTypeVector = objectTypeVectorValue;
85  }
86  void swapObjectTypeVector(std::vector<ObjectTypeInCond>& objectTypeVectorValue) {
87  m_objectTypeVector.swap(objectTypeVectorValue);
88  }
89 
90 public:
92  const CombinationsInCond* getCombinationsInCond(const std::string& condNameVal) const;
93 
95  const CombinationsInCond* getCombinationsInCond(const int condNumberVal) const;
96 
98  const bool getConditionResult(const std::string& condNameVal) const;
99 
100 public:
102  void reset();
103 
105  void print(std::ostream& myCout) const;
106 
107 private:
108  // name of the algorithm
110 
111  // bit number for algorithm
113 
114  // GTL result of the algorithm
116 
119  std::vector<L1GtLogicParser::OperandToken> m_operandTokenVector;
120 
121  // vector of combinations for all conditions in an algorithm
122  std::vector<CombinationsInCond> m_combinationVector;
123 
124  // vector of object type vectors for all conditions in an algorithm
125  std::vector<ObjectTypeInCond> m_objectTypeVector;
126 };
127 
128 #endif /* L1GlobalTrigger_L1GlobalTriggerObjectMap_h */
L1GlobalTriggerObjectMap::setAlgoName
void setAlgoName(const std::string &algoNameValue)
Definition: L1GlobalTriggerObjectMap.h:45
L1GlobalTriggerObjectMap::m_algoBitNumber
int m_algoBitNumber
Definition: L1GlobalTriggerObjectMap.h:112
L1GlobalTriggerReadoutSetupFwd.h
L1GlobalTriggerObjectMap::algoName
const std::string & algoName() const
get / set name for algorithm in the object map
Definition: L1GlobalTriggerObjectMap.h:43
L1GlobalTriggerObjectMap::operandTokenVector
const std::vector< L1GtLogicParser::OperandToken > & operandTokenVector() const
Definition: L1GlobalTriggerObjectMap.h:71
L1GlobalTriggerObjectMap::setAlgoGtlResult
void setAlgoGtlResult(bool algoGtlResultValue)
Definition: L1GlobalTriggerObjectMap.h:56
CombinationsInCond
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
Definition: L1GlobalTriggerObjectMapFwd.h:32
L1GlobalTriggerObjectMap::m_objectTypeVector
std::vector< ObjectTypeInCond > m_objectTypeVector
Definition: L1GlobalTriggerObjectMap.h:125
L1GlobalTriggerObjectMap::m_algoGtlResult
bool m_algoGtlResult
Definition: L1GlobalTriggerObjectMap.h:115
L1GlobalTriggerObjectMap::m_combinationVector
std::vector< CombinationsInCond > m_combinationVector
Definition: L1GlobalTriggerObjectMap.h:122
L1GlobalTriggerObjectMap::algoGtlResult
bool algoGtlResult() const
Definition: L1GlobalTriggerObjectMap.h:54
L1GlobalTriggerObjectMap::~L1GlobalTriggerObjectMap
~L1GlobalTriggerObjectMap()
destructor
Definition: L1GlobalTriggerObjectMap.h:39
L1GlobalTriggerObjectMap
Definition: L1GlobalTriggerObjectMap.h:33
L1GlobalTriggerObjectMap::reset
void reset()
reset the object map
Definition: L1GlobalTriggerObjectMap.cc:83
L1GlobalTriggerObjectMap::L1GlobalTriggerObjectMap
L1GlobalTriggerObjectMap()
constructor(s)
Definition: L1GlobalTriggerObjectMap.h:36
L1GlobalTriggerObjectMap::getConditionResult
const bool getConditionResult(const std::string &condNameVal) const
return the result for the condition condNameVal
Definition: L1GlobalTriggerObjectMap.cc:68
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GlobalTriggerObjectMap::combinationVector
const std::vector< CombinationsInCond > & combinationVector() const
Definition: L1GlobalTriggerObjectMap.h:60
L1GlobalTriggerObjectMap::print
void print(std::ostream &myCout) const
print the full object map
Definition: L1GlobalTriggerObjectMap.cc:100
L1GlobalTriggerObjectMap::swapCombinationVector
void swapCombinationVector(std::vector< CombinationsInCond > &combinationVectorValue)
Definition: L1GlobalTriggerObjectMap.h:65
L1GlobalTriggerObjectMap::objectTypeVector
const std::vector< ObjectTypeInCond > & objectTypeVector() const
Definition: L1GlobalTriggerObjectMap.h:82
L1GlobalTriggerObjectMap::setObjectTypeVector
void setObjectTypeVector(const std::vector< ObjectTypeInCond > &objectTypeVectorValue)
Definition: L1GlobalTriggerObjectMap.h:83
L1GlobalTriggerObjectMap::m_algoName
std::string m_algoName
Definition: L1GlobalTriggerObjectMap.h:109
L1GlobalTriggerObjectMapFwd.h
L1GlobalTriggerObjectMap::swapOperandTokenVector
void swapOperandTokenVector(std::vector< L1GtLogicParser::OperandToken > &operandTokenVectorValue)
Definition: L1GlobalTriggerObjectMap.h:76
L1GtLogicParser.h
L1GlobalTriggerObjectMap::setOperandTokenVector
void setOperandTokenVector(const std::vector< L1GtLogicParser::OperandToken > &operandTokenVectorValue)
Definition: L1GlobalTriggerObjectMap.h:73
L1GlobalTriggerObjectMap::getCombinationsInCond
const CombinationsInCond * getCombinationsInCond(const std::string &condNameVal) const
return all the combinations passing the requirements imposed in condition condNameVal
Definition: L1GlobalTriggerObjectMap.cc:34
L1GlobalTriggerObjectMap::setAlgoBitNumber
void setAlgoBitNumber(int algoBitNumberValue)
Definition: L1GlobalTriggerObjectMap.h:50
L1GlobalTriggerObjectMap::setCombinationVector
void setCombinationVector(const std::vector< CombinationsInCond > &combinationVectorValue)
Definition: L1GlobalTriggerObjectMap.h:62
L1GlobalTriggerObjectMap::swapObjectTypeVector
void swapObjectTypeVector(std::vector< ObjectTypeInCond > &objectTypeVectorValue)
Definition: L1GlobalTriggerObjectMap.h:86
L1GlobalTriggerObjectMap::algoBitNumber
int algoBitNumber() const
get / set bit number for algorithm in the object map
Definition: L1GlobalTriggerObjectMap.h:48
L1GlobalTriggerObjectMap::m_operandTokenVector
std::vector< L1GtLogicParser::OperandToken > m_operandTokenVector
Definition: L1GlobalTriggerObjectMap.h:119