98 m_gtExternalTemplate = eSumTempl;
114 LogDebug(
"L1TGlobal") <<
"Evaluating External Condition "
115 << m_gtExternalTemplate->condName()
116 <<
" on Channel " << m_gtExternalTemplate->extChannel()
117 <<
" relative Bx " << m_gtExternalTemplate->condRelativeBx() << std::endl;
124 bool condResult =
false;
131 (combinationsInCond()).
clear();
134 objectsInComb.clear();
139 int useBx = bxEval + m_gtExternalTemplate->condRelativeBx();
140 unsigned int exCondCh = m_gtExternalTemplate->extChannel();
143 if( ( useBx < candVec->getFirstBX() ) ||
148 int numberObjects = candVec->
size(useBx);
149 if (numberObjects < 1) {
159 LogDebug(
"L1TGlobal") <<
"\t\t External Condition was not set" << std::endl;
167 objectsInComb.push_back(indexObj);
168 (combinationsInCond()).push_back(objectsInComb);
173 LogDebug(
"L1TGlobal") <<
"\t\t Congrats, External Condition was set!" << std::endl;
181 m_gtExternalTemplate->print(myCout);
unsigned size(int bx) const
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
void print(std::ostream &myCout) const
print 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
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
int m_verbosity
verbosity level
virtual ~ExternalCondition()
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.
const bool evaluateCondition(const int bxEval) const
the core function to check if the condition matches
int m_condMaxNumberObjects
void setGtExternalTemplate(const ExternalTemplate *)
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
const T & at(int bx, unsigned i) const