fixed the doTree option if statement so that it correctly prints out ntuples when doTree=1 This was because the statement was written ''if doTree='1' '' instead of ''if doTree=1 '' .