Add an explicit check for the 'recon' string in the AOD dataset name.
This prevents the script grabbing the 'merge.AOD' dataset instead of the 'recon.AOD' dataset. In case of sample extensions, the 'merge.AOD' dataset will not have the correct number of events.