Added flag to turn on and off event and lepton selection.