move minimizer into separate code
checks on the the background distributions of photon purity
Merge remote-tracking branch 'origin/master'