23 #define LOG std::cout << "TCS::DisambiguationIncl2: "
48 p_NumberLeading1 = parameter(
"InputWidth1").value();
49 p_NumberLeading2 = parameter(
"InputWidth2").value();
50 if(parameter(
"MaxTob1").
value() > 0) p_NumberLeading1 = parameter(
"MaxTob1").value();
51 if(parameter(
"MaxTob2").
value() > 0) p_NumberLeading2 = parameter(
"MaxTob2").value();
53 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
54 p_MinET1[
i] = parameter(
"MinET1",
i).value();
55 p_MinET2[
i] = parameter(
"MinET2",
i).value();
57 p_DisambDR[
i] = parameter(
"DisambDRSqrMin",
i).value();
77 const std::vector<TCS::TOBArray *> &
output,
82 if(
input.size() == 2) {
97 unsigned int deltaR2 = calcDeltaR2BW( *tob1, *tob2 );
99 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
101 if(
parType_t((*tob1)->Et()) <= p_MinET1[
i])
continue;
102 if(
parType_t((*tob2)->Et()) <= p_MinET2[
i])
continue;
114 TCS_EXCEPTION(
"DisambiguationIncl2 alg must have 2 inputs, but got " <<
input.size());
123 const std::vector<TCS::TOBArray *> &
output,
128 if(
input.size() == 2) {
143 unsigned int deltaR2 = calcDeltaR2( *tob1, *tob2 );
145 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
147 if(
parType_t((*tob1)->Et()) <= p_MinET1[
i])
continue;
148 if(
parType_t((*tob2)->Et()) <= p_MinET2[
i])
continue;
160 TCS_EXCEPTION(
"DisambiguationIncl2 alg must have 2 inputs, but got " <<
input.size());