57 m_gtExternalTemplate =
cp.gtExternalTemplate();
58 m_uGtB =
cp.getuGtB();
60 m_condMaxNumberObjects =
cp.condMaxNumberObjects();
61 m_condLastResult =
cp.condLastResult();
62 m_combinationsInCond =
cp.getCombinationsInCond();
64 m_verbosity =
cp.m_verbosity;
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) {
132 if (!
ext.getExternalDecision(exCondCh)) {
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
std::vector< int > SingleCombInCond
typedefs
ExternalCondition & operator=(const ExternalCondition &)
unsigned size(int bx) const
const T & at(int bx, unsigned i) const
virtual void print(std::ostream &myCout) const
print condition
void copy(const ExternalCondition &cp)
copy function for copy constructor and operator=
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
void clear(HadCaloObj &c)
int m_condMaxNumberObjects
void setGtExternalTemplate(const ExternalTemplate *)
void print(std::ostream &myCout) const override
print condition
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