Since you are using only isRealData() why not make getJets(bool is_real_data) ?