makePUReWeightJSON: option to derive MC PU profile from files
The positional arguments are taken as filenames, as an example to use a full sample:
makePUReWeightJSON --makePlot -o Fall17_QCDEM_300toInf.json \
--nominal=~/ttW/run2/data/source_PU/PileupHistogram-goldenJSON-13tev-2016-69200ub.root \
--up=~/ttW/run2/data/source_PU/PileupHistogram-goldenJSON-13tev-2016-72400ub.root \
--down=~/ttW/run2/data/source_PU/PileupHistogram-goldenJSON-13tev-2016-66000ub.root \
$(dasgoclient -query 'file dataset=/QCD_Pt-300toInf_EMEnriched_TuneCP5_13TeV_pythia8/RunIIFall17NanoAODv5-PU2017_12Apr2018_Nano1June2019_102X_mc2017_realistic_v7-v1/NANOAODSIM' | sed 's=^\(.*\)$=/storage/data/cms\1=g')