381{
382
383 bool bPass = false;
385 {
387 bPass = true;
388 break;
390 static const SG::ConstAccessor<char> acc_OmniVeryLoose("omni_score_VL");
391 if (!acc_OmniVeryLoose.isAvailable(xTau))
m_tDTST->msg() << MSG::WARNING <<
"Omni VeryLoose WP not available" <<
endmsg;
392 else bPass = acc_OmniVeryLoose(xTau);
393 break;
395 static const SG::ConstAccessor<char> acc_OmniLoose("omni_score_L");
396 if (!acc_OmniLoose.isAvailable(xTau))
m_tDTST->msg() << MSG::WARNING <<
"Omni Loose WP not available" <<
endmsg;
397 else bPass = acc_OmniLoose(xTau);
398 break;
400 static const SG::ConstAccessor<char> acc_OmniMedium("omni_score_M");
401 if (!acc_OmniMedium.isAvailable(xTau))
m_tDTST->msg() << MSG::WARNING <<
"Omni Medium WP not available" <<
endmsg;
402 else bPass = acc_OmniMedium(xTau);
403 break;
405 static const SG::ConstAccessor<char> acc_OmniTight("omni_score_T");
406 if (!acc_OmniTight.isAvailable(xTau))
m_tDTST->msg() << MSG::WARNING <<
"Omni Tight WP not available" <<
endmsg;
407 else bPass = acc_OmniTight(xTau);
408 break;
409 default:
410 m_tDTST->msg() << MSG::WARNING <<
"The Omni ID working point with the enum " <<
m_tDTST->m_iOmniIDWP <<
" is not available" <<
endmsg;
411 break;
412 }
413 if (bPass)
414 {
415 acceptData.setCutResult( "OmniIDWP", true );
416 return true;
417 }
418 m_tDTST->msg() << MSG::VERBOSE <<
"DiTau failed OmniIDWP requirement" <<
endmsg;
419 return false;
420}