Actually it would be better if you could change the comparison to 
... && currentEvent->getDataType() == DataType::TTJets
as it is one lookup less (slightly faster).