turn doPhoton to true for the analysis