116 bool condResult =
false;
129 if (etSumCand == 0) {
137 const unsigned int numberL1HfRingEtSums = 4;
139 const unsigned int cIndex = objPar.
etSumIndex;
140 if (cIndex >= numberL1HfRingEtSums) {
142 edm::LogError(
"L1GlobalTrigger") <<
"\nL1GtHfRingEtSumsCondition error: etSumIndex " 143 << cIndex <<
"greater than GCT maximum index = " << numberL1HfRingEtSums
144 <<
"\n ==> condResult = false " << std::endl;
149 const unsigned int etSumValue = etSumCand->
etSum(cIndex);
160 objectsInComb.push_back(indexObj);
virtual ~L1GtHfRingEtSumsCondition()
const bool evaluateCondition() const
the core function to check if the condition matches
typedef for a single object template
int m_verbosity
verbosity level
bool m_condLastResult
the last result of evaluateCondition()
void setGtHfRingEtSumsTemplate(const L1GtHfRingEtSumsTemplate *)
unsigned int etSumThreshold
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
const L1GctHFRingEtSums * getCandL1HfRingEtSums() const
pointer to HfRingEtSums data list
void print(std::ostream &myCout) const override
print the condition
std::vector< int > SingleCombInCond
typedefs
int condMaxNumberObjects() const
void setGtPSB(const L1GlobalTriggerPSB *)
set the pointer to PSB
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
const bool checkThreshold(const Type1 &threshold, const Type2 &value, const bool condGEqValue) const
const L1GtHfRingEtSumsTemplate * m_gtHfRingEtSumsTemplate
pointer to a L1GtHfRingEtSumsTemplate
int m_condMaxNumberObjects
L1GtHfRingEtSumsCondition & operator=(const L1GtHfRingEtSumsCondition &)
void print(std::ostream &myCout) const
print condition
const L1GlobalTriggerPSB * m_gtPSB
pointer to PSB, to be able to get the trigger objects
uint16_t etSum(unsigned const i) const
virtual void print(std::ostream &myCout) const
print condition
const bool condGEq() const
get / set condition GEq flag
const L1GlobalTriggerPSB * gtPSB() const
get / set the pointer to PSB
L1GtHfRingEtSumsCondition()
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
const L1GtHfRingEtSumsTemplate * gtHfRingEtSumsTemplate() const
get / set the pointer to a L1GtCondition
void copy(const L1GtHfRingEtSumsCondition &cp)
copy function for copy constructor and operator=
const std::vector< ObjectParameter > * objectParameter() const
bool condLastResult() const
get the latest result for the condition