25 defineParameter(
"InputWidth", 3);
26 defineParameter(
"MaxTob", 0);
27 defineParameter(
"NumResultBits", 1);
28 defineParameter(
"PhiMin", 0);
29 defineParameter(
"PhiMax", 63);
30 defineParameter(
"EtaMin", 0);
31 defineParameter(
"EtaMax", 5);
32 defineParameter(
"MinET",1);
33 setNumberOutputBits(1);
41 p_NumberLeading1 = parameter(
"InputWidth").value();
42 if(parameter(
"MaxTob").
value() > 0) p_NumberLeading1 = parameter(
"MaxTob").value();
43 p_PhiMin = parameter(
"PhiMin").value();
44 p_PhiMax = parameter(
"PhiMax").value();
45 p_EtaMin = parameter(
"EtaMin").value();
46 p_EtaMax = parameter(
"EtaMax").value();
47 p_MinET = parameter(
"MinET").value();
62 const std::vector<TCS::TOBArray *> &
output,
66 if(
input.size() == 1) {
70 unsigned int nLeading = p_NumberLeading1;
78 if(
parType_t((*tob1)->Et()) <= p_MinET )
continue;
79 if(
parType_t((*tob1)->eta()) <= p_EtaMin )
continue;
80 if(
parType_t((*tob1)->eta()) >= p_EtaMax )
continue;
81 if(
parType_t(abs((*tob1)->phi())) <= p_PhiMin )
continue;
82 if(
parType_t(abs((*tob1)->phi())) >= p_PhiMax )
continue;
108 const std::vector<TCS::TOBArray *> &
output,
112 if(
input.size() == 1) {
116 unsigned int nLeading = p_NumberLeading1;
124 if(
parType_t((*tob1)->Et()) <= p_MinET )
continue;
125 if(
parType_t((*tob1)->eta()) <= p_EtaMin )
continue;
126 if(
parType_t((*tob1)->eta()) >= p_EtaMax )
continue;
127 if(
parType_t(abs((*tob1)->phi())) <= p_PhiMin )
continue;
128 if(
parType_t(abs((*tob1)->phi())) >= p_PhiMax )
continue;
136 TRG_MSG_DEBUG(
"TOB " <<
distance(
input[0]->
begin(), tob1) <<
" ET = " << (*tob1)->Et() <<
" ETa = " << (*tob1)->eta() <<
" phi = " << (*tob1)->phi() );