UMN-CMS/cms-WR

Fix reading SF from file every single event.

Closed this issue · 1 comments

This line
https://github.com/UMN-CMS/cms-WR/blob/master/bin/analysis.cpp#L470
opens a text file and reads the same number once per event. Should be once per dataset.

Yes, unfortunately we are doing the same silly game with the lumi*Xsxn
weight and the data/DY MC weight. Both only need to be read once per
dataset, but when I implemented the data/DY MC reweighting in analysis.cpp
the simplest way was to add an extra multiplicative factor to the weight
which is calculated for every event.

Peter do you see a better way to do this, such that the file
dyScalingFactors.txt only needs to be read once per dataset?

Regards,
Sean Kalafut

Physics PhD candidate
University of Minnesota Twin Cities

On Fri, May 13, 2016 at 5:31 PM, Peter Hansen notifications@github.com
wrote:

This line
https://github.com/UMN-CMS/cms-WR/blob/master/bin/analysis.cpp#L470
opens a text file and reads the same number once per event. Should be once
per dataset.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#52