114 LogDebug(
"L1TGlobal") <<
"Evaluating External Condition " 124 bool condResult =
false;
134 objectsInComb.clear();
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);
173 LogDebug(
"L1TGlobal") <<
"\t\t Congrats, External Condition was set!" << std::endl;
const BXVector< const GlobalExtBlk * > * getCandL1External() const
pointer to Tau data list
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
const int & condRelativeBx() const
get / set the condition relative bx
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
virtual void print(std::ostream &myCout) const
print the condition
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
const ExternalTemplate * m_gtExternalTemplate
pointer to a ExternalTemplate
const std::string & condName() const
get / set condition name
int m_verbosity
verbosity level
virtual ~ExternalCondition()
const ExternalTemplate * gtExternalTemplate() const
get / set the pointer to a L1GtCondition
int condMaxNumberObjects() const
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
bool m_condLastResult
the last result of evaluateCondition()
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
const unsigned int & extChannel() const
get external channel number
int m_condMaxNumberObjects
void setGtExternalTemplate(const ExternalTemplate *)
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
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