diff --git a/PhysicsAnalysis/Algorithms/SelectionHelpers/Root/ISelectionAccessor.cxx b/PhysicsAnalysis/Algorithms/SelectionHelpers/Root/ISelectionAccessor.cxx index 8b61a68a8b5ab35e4584f271225230d3d5773d81..dc4269bc46f9334b33bf3db3b7421ef3c976a8d5 100644 --- a/PhysicsAnalysis/Algorithms/SelectionHelpers/Root/ISelectionAccessor.cxx +++ b/PhysicsAnalysis/Algorithms/SelectionHelpers/Root/ISelectionAccessor.cxx @@ -64,6 +64,12 @@ namespace CP } } + if (asChar && asBits) + { + ANA_MSG_ERROR ("can't specify both 'as_bits' and 'as_char' for the same selection decoration, pick one!!!"); + return StatusCode::FAILURE; + } + if (!asChar && !asBits) { if (defaultToChar)