Read reco geometry production tag and use it get max number of RE stations.
Pack tag info in reco file.