CMS 3D CMS Logo

GlobalAlgorithm.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_GtAlgorithm_h
2 #define L1Trigger_L1TGlobal_GtAlgorithm_h
3 
20 // system include files
22 
23 #include <vector>
24 #include <iosfwd>
25 
26 // user include files
28 
29 // forward declarations
30 
31 // class declaration
33 public:
37 
39  GlobalAlgorithm(const std::string& algoNameValue);
40 
42  GlobalAlgorithm(const std::string&, const std::string&);
43 
45  GlobalAlgorithm(const std::string&, const std::string&, const int);
46 
48  virtual ~GlobalAlgorithm();
49 
50 public:
52  inline const std::string algoName() const { return m_algoName; }
53 
54  inline void setAlgoName(const std::string& algoNameValue) { m_algoName = algoNameValue; }
55 
57  inline std::string const& algoAlias() const { return m_algoAlias; }
58 
59  inline void setAlgoAlias(const std::string& algoAliasValue) { m_algoAlias = algoAliasValue; }
60 
62  inline std::string const& algoLogicalExpression() const { return m_algoLogicalExpression; }
63 
66  }
67 
69  inline const std::vector<GlobalLogicParser::TokenRPN>& algoRpnVector() const { return m_algoRpnVector; }
70 
72  inline int algoBitNumber() const { return m_algoBitNumber; }
73 
74  inline void setAlgoBitNumber(const int algoBitNumberValue) { m_algoBitNumber = algoBitNumberValue; }
75 
77  inline const int algoChipNumber() const { return m_algoChipNumber; }
78 
79  inline void setAlgoChipNumber(const int algoChipNumberValue) { m_algoChipNumber = algoChipNumberValue; }
80 
81 public:
83  const int algoChipNumber(const int numberConditionChips,
84  const int pinsOnConditionChip,
85  const std::vector<int>& orderConditionChip) const;
86 
88  const int algoOutputPin(const int numberConditionChips,
89  const int pinsOnConditionChip,
90  const std::vector<int>& orderConditionChip) const;
91 
93  virtual void print(std::ostream& myCout) const;
94 
96  friend std::ostream& operator<<(std::ostream&, const GlobalAlgorithm&);
97 
98 private:
101 
104 
107 
109  std::vector<GlobalLogicParser::TokenRPN> m_algoRpnVector;
110 
115 
118 
120 };
121 
122 #endif /*L1Trigger_L1TGlobal_GtAlgorithm_h*/
GlobalAlgorithm::setAlgoChipNumber
void setAlgoChipNumber(const int algoChipNumberValue)
Definition: GlobalAlgorithm.h:79
GlobalAlgorithm::algoName
const std::string algoName() const
get / set algorithm name
Definition: GlobalAlgorithm.h:52
GlobalAlgorithm::algoAlias
std::string const & algoAlias() const
get / set algorithm alias
Definition: GlobalAlgorithm.h:57
hltEGL1SeedsForDoubleEleIsolatedFilter_cfi.logicalExpression
logicalExpression
Definition: hltEGL1SeedsForDoubleEleIsolatedFilter_cfi.py:4
GlobalAlgorithm::m_algoBitNumber
int m_algoBitNumber
Definition: GlobalAlgorithm.h:114
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
GlobalAlgorithm::setAlgoName
void setAlgoName(const std::string &algoNameValue)
Definition: GlobalAlgorithm.h:54
GlobalAlgorithm::algoRpnVector
const std::vector< GlobalLogicParser::TokenRPN > & algoRpnVector() const
return the RPN vector
Definition: GlobalAlgorithm.h:69
GlobalAlgorithm::m_algoAlias
std::string m_algoAlias
algorithm alias
Definition: GlobalAlgorithm.h:103
GlobalAlgorithm::~GlobalAlgorithm
virtual ~GlobalAlgorithm()
destructor
Definition: GlobalAlgorithm.cc:73
GlobalAlgorithm::m_algoChipNumber
int m_algoChipNumber
chip number (redundant with bit number)
Definition: GlobalAlgorithm.h:117
GlobalLogicParser.h
GlobalAlgorithm
Definition: GlobalAlgorithm.h:32
GlobalAlgorithm::algoBitNumber
int algoBitNumber() const
get / set algorithm bit number
Definition: GlobalAlgorithm.h:72
GlobalAlgorithm::algoOutputPin
const int algoOutputPin(const int numberConditionChips, const int pinsOnConditionChip, const std::vector< int > &orderConditionChip) const
get the output pin on the condition chip for the algorithm
Definition: GlobalAlgorithm.cc:95
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalAlgorithm::algoLogicalExpression
std::string const & algoLogicalExpression() const
get / set the logical expression for the algorithm
Definition: GlobalAlgorithm.h:62
GlobalAlgorithm::m_algoLogicalExpression
std::string m_algoLogicalExpression
algorithm logical expression
Definition: GlobalAlgorithm.h:106
Serializable.h
GlobalAlgorithm::GlobalAlgorithm
GlobalAlgorithm()
Definition: GlobalAlgorithm.cc:30
GlobalAlgorithm::setAlgoAlias
void setAlgoAlias(const std::string &algoAliasValue)
Definition: GlobalAlgorithm.h:59
GlobalAlgorithm::m_algoRpnVector
std::vector< GlobalLogicParser::TokenRPN > m_algoRpnVector
algorithm RPN vector
Definition: GlobalAlgorithm.h:109
GlobalAlgorithm::print
virtual void print(std::ostream &myCout) const
print condition
Definition: GlobalAlgorithm.cc:106
GlobalAlgorithm::m_algoName
std::string m_algoName
algorithm name
Definition: GlobalAlgorithm.h:100
GlobalAlgorithm::operator<<
friend std::ostream & operator<<(std::ostream &, const GlobalAlgorithm &)
output stream operator
Definition: GlobalAlgorithm.cc:147
GlobalAlgorithm::setAlgoBitNumber
void setAlgoBitNumber(const int algoBitNumberValue)
Definition: GlobalAlgorithm.h:74
GlobalAlgorithm::setAlgoLogicalExpresssion
void setAlgoLogicalExpresssion(const std::string &logicalExpression)
Definition: GlobalAlgorithm.h:64
GlobalAlgorithm::algoChipNumber
const int algoChipNumber() const
get / set algorithm bit number
Definition: GlobalAlgorithm.h:77