giuliaripellino / GOAR-ML-Project

2 stars 1 forks source link

9 add scaling to signal #11

Closed gallenaxel closed 9 months ago

gallenaxel commented 9 months ago

Added info about my python script in the ntuplewriting README. I have attached one question there which connects to if the "run=9999" is an ATLAS convention or not.

The signal scaling has also been implemented, so please check the implementation before Thursday. The values before and after scaling are the following (for a subset of the events) (note that the variable names are a bit shifted in the printout):

HT  LJet_m_plus_RCJet_m_12  bb_m_for_minDeltaR  bjet_n  deltaRLep2ndClosestBJet  deltaRLepClosestBJet  event  jet_n  lep_n   run
0     1405.600464              661.047668         1073.317505       2                 2.872278              1.038703      8      9      1  9999
1      850.198853              191.083298          383.035614       2                 3.703826              3.102181     10      5      1  9999
2     1649.194458              795.859985          771.469421       2                 2.402062              1.164032     23      4      1  9999
3     1296.258179              623.416260           53.205814       4                 2.429837              0.873898     38      9      1  9999
4     1646.512451              529.713562          294.680664       3                 1.971582              1.764562     39      6      1  9999
...           ...                     ...                 ...     ...                      ...                   ...    ...    ...    ...   ...
7573  1198.521606              355.935333           77.050415       2                 0.877006              0.589469  49949      5      1  9999
7574  1957.215088              659.000183          104.732285       3                 1.946156              1.538082  49975      8      1  9999
7575   588.920288              271.287048          457.230713       2                 2.780445              2.683116  49990      5      1  9999
7576  1295.591064              205.486893          418.555664       3                 1.603243              1.480575  49993      6      1  9999
7577  1144.603882              662.758484          273.143036       4                 1.031991              0.711821  49999      8      1  9999

[7578 rows x 10 columns]
SIGNAL! Applying weights... 
HT  LJet_m_plus_RCJet_m_12  bb_m_for_minDeltaR  bjet_n  deltaRLep2ndClosestBJet  deltaRLepClosestBJet  event  jet_n  lep_n   run
0     1.200123                0.564412            0.916415       2                 0.002452              0.000887      8      9      1  9999
1     0.725913                0.163150            0.327042       2                 0.003162              0.002649     10      5      1  9999
2     1.408107                0.679517            0.658692       2                 0.002051              0.000994     23      4      1  9999
3     1.106765                0.532282            0.045428       4                 0.002075              0.000746     38      9      1  9999
4     1.405817                0.452277            0.251603       3                 0.001683              0.001507     39      6      1  9999
...        ...                     ...                 ...     ...                      ...                   ...    ...    ...    ...   ...
7573  1.023316                0.303903            0.065787       2                 0.000749              0.000503  49949      5      1  9999
7574  1.671100                0.562664            0.089422       3                 0.001662              0.001313  49975      8      1  9999
7575  0.502829                0.231629            0.390390       2                 0.002374              0.002291  49990      5      1  9999
7576  1.106195                0.175448            0.357369       3                 0.001369              0.001264  49993      6      1  9999
7577  0.977280                0.565873            0.233214       4                 0.000881              0.000608  49999      8      1  9999