26#define LOG std::cout << name() << ": "
112 const std::vector<TCS::TOBArray *> & output,
121 if(input.size()!=3) {
122 TCS_EXCEPTION(
"RatioSum alg must have exactly 3 input lists, but got " << input.size());
126 unsigned int sumET = 0;
127 unsigned int sumET2 = 0;
133 unsigned int objC(0);
138 if( tob->Et() <=
p_MinET2 )
continue;
150 tob1 != input[2]->end() && distance( input[2]->begin(), tob1) < nLeadingele;
156 if( (*tob1)->Et() <=
p_MinET3 )
continue;
157 sumET += (*tob1)->Et() ;
169 decision.
setBit( i, accept );
174 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" HT = " << sumET2 <<
" SUM = " << sumET);
183 const std::vector<TCS::TOBArray *> & output,
187 if(input.size()!=3) {
188 TCS_EXCEPTION(
"RatioSum alg must have exactly 3 input lists, but got " << input.size());
192 unsigned int sumET = 0;
193 unsigned int sumET2 = 0;
199 unsigned int objC(0);
204 if( tob->Et() <=
p_MinET2 )
continue;
215 tob1 != input[2]->end() && distance( input[2]->begin(), tob1) < nLeadingele;
221 if( (*tob1)->Et() <=
p_MinET3 )
continue;
222 sumET += (*tob1)->Et() ;
234 decision.
setBit( i, accept );
239 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" HT = " << sumET2 <<
" SUM = " << sumET);
#define REGISTER_ALG_TCS(CLASS)
#define TCS_EXCEPTION(MSG)
const Parameter & parameter(const std::string ¶meterName) const
const std::string & name() const
void defineParameter(const std::string &name, TCS::parType_t value)
data_t::const_iterator const_iterator
void setNumberOutputBits(unsigned int numberOutputBits)
DecisionAlg(const std::string &name)
unsigned int numberOutputBits() const
void setBit(unsigned int index, bool value)
static GenericTOB * createOnHeap(const GenericTOB &)
virtual StatusCode process(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
virtual StatusCode initialize()
parType_t p_NumberLeading2
RatioSum(const std::string &name)
parType_t p_NumberLeading1
parType_t p_NumberLeading3
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)