24#define LOG std::cout << name() << ": "
63 const std::vector<TCS::TOBArray *> & output,
67 return process(input,output,decision);
73 const std::vector<TCS::TOBArray *> & output,
78 TCS_EXCEPTION(
"JetMatch alg must have exactly 1 input list, but got " << input.size());
82 std::vector<TCS::GenericTOB*> TOBvector;
91 if( tob->EtWide() <=
p_MinET1 )
continue;
93 if( tob->EtNarrow() <=
p_MinET2 )
continue;
95 TRG_MSG_DEBUG(
"Jet " << objC-1 <<
": ETWide = " << tob->EtWide() <<
", ETNarrow = " << tob->EtNarrow());
98 TOBvector.push_back( tob );
106 decision.
setBit( i, accept );
111 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" Njets = " << TOBvector.size());
#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)
virtual StatusCode initialize()
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
JetMatch(const std::string &name)
virtual StatusCode process(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
parType_t p_NumberLeading1
const std::string process