100 m_gtExternalTemplate = eSumTempl;
116 LogDebug(
"L1TGlobal") <<
"Evaluating External Condition "
117 << m_gtExternalTemplate->condName()
118 <<
" on Channel " << m_gtExternalTemplate->extChannel()
119 <<
" relative Bx " << m_gtExternalTemplate->condRelativeBx() << std::endl;
126 bool condResult =
false;
133 (combinationsInCond()).
clear();
136 objectsInComb.clear();
141 int useBx = bxEval + m_gtExternalTemplate->condRelativeBx();
142 unsigned int exCondCh = m_gtExternalTemplate->extChannel();
145 if( ( useBx < candVec->getFirstBX() ) ||
150 int numberObjects = candVec->
size(useBx);
151 if (numberObjects < 1) {
161 LogDebug(
"L1TGlobal") <<
"\t\t External Condition was not set" << std::endl;
169 objectsInComb.push_back(indexObj);
170 (combinationsInCond()).push_back(objectsInComb);
175 LogDebug(
"L1TGlobal") <<
"\t\t Congrats, External Condition was set!" << std::endl;
183 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 setuGtB(const GtBoard *)
set the pointer to uGT GtBoard
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 &)
const GtBoard * getuGtB() const
get / set the pointer to uGt GtBoard
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 T & at(int bx, unsigned i) const