57 m_gtEnergySumZdcTemplate =
cp.gtEnergySumZdcTemplate();
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_gtEnergySumZdcTemplate = eSumTempl;
95 bool condResult =
false;
102 (combinationsInCond()).
clear();
105 objectsInComb.clear();
110 int useBx = bxEval + m_gtEnergySumZdcTemplate->condRelativeBx();
113 if ((useBx < candVecZdc->getFirstBX()) || (useBx > candVecZdc->
getLastBX())) {
118 int numberObjectsZdc = candVecZdc->
size(useBx);
120 if (numberObjectsZdc < 1) {
126 switch ((m_gtEnergySumZdcTemplate->objectType())[0]) {
136 <<
"Unmatched object type from template to EtSumZdcType, (m_gtEnergySumZdcTemplate->objectType())[0] = " 137 << (m_gtEnergySumZdcTemplate->objectType())[0] << std::endl;
144 bool condGEqVal = m_gtEnergySumZdcTemplate->condGEq();
148 unsigned int candZDCPEsum = 0;
149 unsigned int candZDCMEsum = 0;
152 for (
int iEtSum = 0; iEtSum < numberObjectsZdc; ++iEtSum) {
159 candZdcPlus = *(candVecZdc->
at(useBx, iEtSum));
160 candZDCPEsum = candZdcPlus.
hwPt();
163 candZdcMinus = *(candVecZdc->
at(useBx, iEtSum));
164 candZDCMEsum = candZdcMinus.
hwPt();
167 LogDebug(
"L1TGlobal") <<
"\t\t l1t::EtSum failed ZDC checkThreshold" << std::endl;
171 LogDebug(
"L1TGlobal") <<
"CANDZdc: " << candZdc.
hwPt() <<
", " << useBx <<
", " << candZdc.
getType();
174 <<
"----------------------------------------------> ZDC EtSumType object from EnergySumZdcTemplate" 176 <<
"\n objPar.etHighThreshold = " << objPar.
etHighThreshold <<
"\n candZDCPEsum = " << candZDCPEsum
177 <<
"\n candZDCMEsum = " << candZDCMEsum <<
"\n condGEqVal = " << condGEqVal <<
"\n myres = " << myres
187 objectsInComb.push_back(indexObj);
188 (combinationsInCond()).
push_back(objectsInComb);
197 m_gtEnergySumZdcTemplate->print(myCout);
std::vector< int > SingleCombInCond
typedefs
Log< level::Error, false > LogError
unsigned size(int bx) const
void setGtEnergySumZdcTemplate(const EnergySumZdcTemplate *)
unsigned int etLowThreshold
void print(std::ostream &myCout) const override
print condition
EnergySumZdcCondition & operator=(const EnergySumZdcCondition &)
const T & at(int bx, unsigned i) const
virtual void print(std::ostream &myCout) const
print condition
void setuGtB(const GlobalBoard *)
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
void copy(const EnergySumZdcCondition &cp)
copy function for copy constructor and operator=
int m_condMaxNumberObjects
unsigned int etHighThreshold
~EnergySumZdcCondition() override
EtSumType getType() const