116 bool condResult =
false;
126 objectsInComb.clear();
134 if( ( useBx < candVec->getFirstBX() ) ||
140 int numberObjects = candVec->
size(useBx);
141 if (numberObjects < 1) {
147 bool MissingEnergy =
false;
151 MissingEnergy =
true;
155 MissingEnergy =
false;
159 MissingEnergy =
false;
163 MissingEnergy =
true;
167 MissingEnergy =
false;
171 MissingEnergy =
true;
175 MissingEnergy =
false;
179 MissingEnergy =
false;
183 MissingEnergy =
false;
187 MissingEnergy =
false;
191 MissingEnergy =
false;
196 <<
"Unmatched object type from template to EtSumType, (m_gtEnergySumTemplate->objectType())[0] = " 205 unsigned int candEt = 0;
206 unsigned int candPhi = 0;
207 bool candOverflow =
false;
208 for(
int iEtSum = 0; iEtSum < numberObjects; ++iEtSum ){
211 candEt = cand.
hwPt();
212 candPhi = cand.
hwPhi();
233 LogDebug(
"L1TGlobal") <<
"\t\t l1t::EtSum failed checkThreshold" << std::endl;
237 if( !condGEqVal && candOverflow )
return false;
244 LogDebug(
"L1TGlobal") <<
"\t\t l1t::EtSum failed checkRange(phi)" << std::endl;
253 objectsInComb.push_back(indexObj);
void print(std::ostream &myCout) const override
print condition
unsigned size(int bx) const
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
unsigned int etLowThreshold
unsigned int phiWindow1Lower
~EnergySumCondition() override
virtual void print(std::ostream &myCout) const
print condition
std::vector< int > SingleCombInCond
typedefs
const bool condGEq() const
get / set condition GEq flag
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
unsigned int etHighThreshold
const bool checkThreshold(const Type1 &thresholdL, const Type1 &thresholdH, const Type2 &value, bool condGEqValue) const
const std::vector< ObjectParameter > * objectParameter() const
bool condLastResult() const
get the latest result for the condition
const EnergySumTemplate * gtEnergySumTemplate() const
get / set the pointer to a L1GtCondition
const int & condRelativeBx() const
get / set the condition relative bx
unsigned int phiWindow2Lower
const EnergySumTemplate * m_gtEnergySumTemplate
pointer to a EnergySumTemplate
EnergySumCondition & operator=(const EnergySumCondition &)
const std::vector< l1t::GlobalObject > & objectType() const
get / set the trigger object type(s) in the condition
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
const BXVector< const l1t::EtSum * > * getCandL1EtSum() const
pointer to Tau data list
typedef for a single object template
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
void print(std::ostream &myCout) const override
print the condition
int m_verbosity
verbosity level
int condMaxNumberObjects() const
bool m_condLastResult
the last result of evaluateCondition()
unsigned int phiWindow1Upper
unsigned int phiWindow2Upper
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
int m_condMaxNumberObjects
EtSumType getType() const
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
void setGtEnergySumTemplate(const EnergySumTemplate *)
const bool checkRangePhi(const unsigned int bitNumber, const Type1 &W1beginR, const Type1 &W1endR, const Type1 &W2beginR, const Type1 &W2endR) const
check if a value is in a given range and outside of a veto range
void copy(const EnergySumCondition &cp)
copy function for copy constructor and operator=
const T & at(int bx, unsigned i) const