-
Notifications
You must be signed in to change notification settings - Fork 20
Old fashioned DY scale factors
In KLUB we have the possibility to computed DY scale factors for three bins: 0b, 1b, 2b.
Use the script https://github.com/LLRCMS/KLUBAnalysis/blob/VBF_UL/scripts/splitDYbybflav.py to split the DY merged sample in 0b, 1b, 2b samples. Change the DY skim folder here (https://github.com/LLRCMS/KLUBAnalysis/blob/b522bfddebb90020229641428c218714a289f6bc/scripts/splitDYbybflav.py#L37)
Config files for MuMu channel are https://github.com/LLRCMS/KLUBAnalysis/blob/VBF_UL/config/mainCfg_MuMu.cfg and https://github.com/LLRCMS/KLUBAnalysis/blob/VBF_UL/config/selectionCfg_MuMu.cfg. They probably need some update but the latest selection we agreed on is defined here https://github.com/LLRCMS/KLUBAnalysis/blob/b522bfddebb90020229641428c218714a289f6bc/config/selectionCfg_MuMu.cfg#L64.
A RooFit macro is used to extract the scale factors https://github.com/LLRCMS/KLUBAnalysis/blob/VBF_UL/scripts/FitDY.C: selections and sample used should be changed here https://github.com/LLRCMS/KLUBAnalysis/blob/b522bfddebb90020229641428c218714a289f6bc/scripts/FitDY.C#L170.
The scale factors are coded in the skimmers e.g. here: https://github.com/LLRCMS/KLUBAnalysis/blob/b522bfddebb90020229641428c218714a289f6bc/test/skimNtuple2016_HHbtag.cpp#L77