23#define LOG std::cout << name() << ": "
64 for(
int i=0; i<2; ++i) {
74 const std::vector<TCS::TOBArray *> & output,
78 return process(input,output,decision);
84 const std::vector<TCS::TOBArray *> & output,
89 TCS_EXCEPTION(
"Ratio alg must have exactly 2 input lists, but got " << input.size());
92 unsigned int sumET = 0;
105 if( tob->Et() <=
p_MinET2 )
continue;
118 decision.
setBit( i, accept );
123 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" HT = " << sumET <<
" XE = " <<
met.Et() );
#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)
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)
Ratio(const std::string &name)
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
virtual StatusCode initialize()
const std::string process