Preparation script for combine cards and histograms