Skip to content
Snippets Groups Projects
Commit 17024681 authored by Jean Yves Beaucamp's avatar Jean Yves Beaucamp Committed by Petar Bokan
Browse files

Add protection for the bdtScore on TOB-based eTau RoIs

Add protection for the bdtScore on TOB-based eTau RoIs
parent 98316550
No related branches found
No related tags found
No related merge requests found
......@@ -175,8 +175,7 @@ namespace xAOD {
/// Tau BDT score, only available in xTOBs
unsigned int eFexTauRoI_v1::bdtScore() const {
/// Was the BDT algorithm run?
if (tobVersion() != BDT) return 0;
/// If the object is not an xTOB this will return 0
if (tobVersion() != BDT || type() != xTOB) return 0;
return (word0() >> s_bdtScoreBit) & s_bdtScoreMask;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment