25#define LOG std::cout << "TCS::DisambiguationDRIncl3: "
99 const std::vector<TCS::TOBArray *> & output,
104 if( input.size() == 3) {
108 tob1 != input[0]->end() && distance(input[0]->begin(), tob1) <
p_NumberLeading1;
114 tob2 != input[1]->end() && distance(input[1]->begin(), tob2) <
p_NumberLeading2;
122 tob3 != input[2]->end() ;
140 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" deltaR13 = " << deltaR13 <<
" deltaR23 = " << deltaR23);
149 output[i]->setAmbiguityFlag(hasAmbiguousInputs);
152 TCS_EXCEPTION(
"DisambiguationDRIncl3 alg must have 3 inputs, but got " << input.size());
159 const std::vector<TCS::TOBArray *> & output,
164 if( input.size() == 3) {
168 tob1 != input[0]->end() && distance(input[0]->begin(), tob1) <
p_NumberLeading1;
174 tob2 != input[1]->end() && distance(input[1]->begin(), tob2) <
p_NumberLeading2;
179 unsigned int deltaR2Cut =
calcDeltaR2( *tob1, *tob2 );
182 tob3 != input[2]->end() ;
184 unsigned int deltaR13 =
calcDeltaR2( *tob1, *tob3 );
185 unsigned int deltaR23 =
calcDeltaR2( *tob2, *tob3 );
200 TRG_MSG_DEBUG(
"Decision " << i <<
": " << (accept?
"pass":
"fail") <<
" deltaR13 = " << deltaR13 <<
" deltaR23 = " << deltaR23);
206 TCS_EXCEPTION(
"DisambiguationDRIncl3 alg must have 3 inputs, but got " << input.size());
#define REGISTER_ALG_TCS(CLASS)
#define TCS_EXCEPTION(MSG)
const Parameter & parameter(const std::string ¶meterName) const
const std::string & name() const
unsigned int calcDeltaR2BW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
void defineParameter(const std::string &name, TCS::parType_t value)
unsigned int calcDeltaR2(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
data_t::const_iterator const_iterator
void setNumberOutputBits(unsigned int numberOutputBits)
DecisionAlg(const std::string &name)
unsigned int numberOutputBits() const
void setBit(unsigned int index, bool value)
parType_t p_NumberLeading1
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
parType_t p_NumberLeading3
virtual ~DisambiguationDRIncl3()
virtual StatusCode process(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
parType_t p_NumberLeading2
DisambiguationDRIncl3(const std::string &name)
virtual StatusCode initialize()
bool isAmbiguousTruncation(TCS::TOBArray const *tobs, size_t pos, unsigned minEt=0)