24 #define LOG std::cout << name() << ": "
45 p_NumberLeading1 = parameter(
"InputWidth").value();
46 if(parameter(
"MaxTob").
value() > 0) p_NumberLeading1 = parameter(
"MaxTob").value();
47 p_MinET1 = parameter(
"MinET1").value();
48 p_MinET2 = parameter(
"MinET2").value();
49 p_EtaMin = parameter(
"EtaMin").value();
50 p_EtaMax = parameter(
"EtaMax").value();
63 const std::vector<TCS::TOBArray *> &
output,
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;
89 if(
parType_t(std::abs(tob->eta())) > p_EtaMax )
continue;
90 if(
parType_t(std::abs(tob->eta())) < p_EtaMin )
continue;
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 );
102 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
104 bool accept = TOBvector.size() >= p_NumberLeading1 ;
111 TRG_MSG_DEBUG(
"Decision " <<
i <<
": " << (
accept?
"pass":
"fail") <<
" Njets = " << TOBvector.size());