82 m_gtExternalTemplate = eSumTempl;
90 LogDebug(
"L1TGlobal") <<
"Evaluating External Condition " << m_gtExternalTemplate->condName() <<
" on Channel "
91 << m_gtExternalTemplate->extChannel() <<
" relative Bx "
92 << m_gtExternalTemplate->condRelativeBx() << std::endl;
99 bool condResult =
false;
106 (combinationsInCond()).
clear();
109 objectsInComb.clear();
114 int useBx = bxEval + m_gtExternalTemplate->condRelativeBx();
115 unsigned int exCondCh = m_gtExternalTemplate->extChannel();
118 if ((useBx < candVec->getFirstBX()) || (useBx > candVec->
getLastBX())) {
122 int numberObjects = candVec->
size(useBx);
123 if (numberObjects < 1) {
133 LogDebug(
"L1TGlobal") <<
"\t\t External Condition was not set" << std::endl;
141 objectsInComb.push_back(indexObj);
142 (combinationsInCond()).push_back(objectsInComb);
147 LogDebug(
"L1TGlobal") <<
"\t\t Congrats, External Condition was set!" << std::endl;
153 m_gtExternalTemplate->print(myCout);
~ExternalCondition() override
unsigned size(int bx) const
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
virtual void print(std::ostream &myCout) const
print condition
std::vector< int > SingleCombInCond
typedefs
ExternalCondition & operator=(const ExternalCondition &)
bool condLastResult() const
get the latest result for the condition
int m_verbosity
verbosity level
const ExternalTemplate * gtExternalTemplate() const
get / set the pointer to a L1GtCondition
int condMaxNumberObjects() const
void copy(const ExternalCondition &cp)
copy function for copy constructor and operator=
bool getExternalDecision(unsigned int bit) const
Get decision bits.
int m_condMaxNumberObjects
void setGtExternalTemplate(const ExternalTemplate *)
void print(std::ostream &myCout) const override
print condition
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
const T & at(int bx, unsigned i) const