![]() |
TIMBER
beta
Tree Interface for Making Binned Events with RDataFrame
|
C++ class. Handles the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. The weight is calculated as. More...
Public Member Functions | |
| RVec< float > | corr (RVec< int > GenPart_pdgId, RVec< int > GenPart_statusFlags, RVec< ROOT::Math::PtEtaPhiMVector > GenPart_vects, ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1) |
| Calculate the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. The weight is calculated as \[ \sqrt{e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen } t}} \cdot e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen } \bar{t}} }} \] . where \(\alpha = 0.0615\) and \(\beta = 0.0005\). See the alpha() and beta() functions to calculate the weights with these parameters varied. More... | |
| RVec< float > | alpha (RVec< int > GenPart_pdgId, RVec< int > GenPart_statusFlags, RVec< ROOT::Math::PtEtaPhiMVector > GenPart_vects, ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale=0.5) |
| Calculate variations of top \(p_T\) weight by varying the \(\alpha\) parameter. The amount of variation can be changed via the scale arguement which is a percent change on \(\alpha\). The output is the weight calculated with the variation divided by the nominal value. When using MakeWeightCols(), the nominal will be multiplied by this variation to recover the total weight. More... | |
| RVec< float > | beta (RVec< int > GenPart_pdgId, RVec< int > GenPart_statusFlags, RVec< ROOT::Math::PtEtaPhiMVector > GenPart_vects, ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale=0.5) |
| Calculate variations of the top \(p_T\) weight by varying the \(\beta\) parameter. The amount of variation can be changed via the scale arguement which is a percent change on \(\beta\). The output is the weight calculated with the variation divided by the nominal value. When using MakeWeightCols(), the nominal will be multiplied by this variation to recover the total weight. More... | |
C++ class. Handles the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. The weight is calculated as.
\[ \sqrt{e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen} t}} \cdot e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen} \bar{t}} }} \]
.
where \(\alpha = 0.0615\) and \(\beta = 0.0005\). See the alpha() and beta() functions to calculate the weights with these parameters varied.
WARNING: You MUST run corr() before alpha() and beta() since these functions recycle information derived from corr().
| RVec< float > alpha | ( | RVec< int > | GenPart_pdgId, |
| RVec< int > | GenPart_statusFlags, | ||
| RVec< ROOT::Math::PtEtaPhiMVector > | GenPart_vects, | ||
| ROOT::Math::PtEtaPhiMVector | jet0, | ||
| ROOT::Math::PtEtaPhiMVector | jet1, | ||
| float | scale = 0.5 |
||
| ) |
Calculate variations of top \(p_T\) weight by varying the \(\alpha\) parameter. The amount of variation can be changed via the scale arguement which is a percent change on \(\alpha\). The output is the weight calculated with the variation divided by the nominal value. When using MakeWeightCols(), the nominal will be multiplied by this variation to recover the total weight.
| GenPart_pdgId | NanoAOD branch |
| GenPart_statusFlags | NanoAOD branch |
| GenPart_vects | Vector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector) |
| jet0 | |
| jet1 | |
| scale | Percent variation on \(\alpha\) parameter. |
| RVec< float > beta | ( | RVec< int > | GenPart_pdgId, |
| RVec< int > | GenPart_statusFlags, | ||
| RVec< ROOT::Math::PtEtaPhiMVector > | GenPart_vects, | ||
| ROOT::Math::PtEtaPhiMVector | jet0, | ||
| ROOT::Math::PtEtaPhiMVector | jet1, | ||
| float | scale = 0.5 |
||
| ) |
Calculate variations of the top \(p_T\) weight by varying the \(\beta\) parameter. The amount of variation can be changed via the scale arguement which is a percent change on \(\beta\). The output is the weight calculated with the variation divided by the nominal value. When using MakeWeightCols(), the nominal will be multiplied by this variation to recover the total weight.
| GenPart_pdgId | NanoAOD branch |
| GenPart_statusFlags | NanoAOD branch |
| GenPart_vects | Vector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector) |
| jet0 | |
| jet1 | |
| scale | Percent variation on \(\beta\) parameter. |
| RVec< float > corr | ( | RVec< int > | GenPart_pdgId, |
| RVec< int > | GenPart_statusFlags, | ||
| RVec< ROOT::Math::PtEtaPhiMVector > | GenPart_vects, | ||
| ROOT::Math::PtEtaPhiMVector | jet0, | ||
| ROOT::Math::PtEtaPhiMVector | jet1 | ||
| ) |
Calculate the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. The weight is calculated as
\[ \sqrt{e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen } t}} \cdot e^{\alpha - \beta \cdot p_{T}^{\textrm{Gen } \bar{t}} }} \]
. where \(\alpha = 0.0615\) and \(\beta = 0.0005\). See the alpha() and beta() functions to calculate the weights with these parameters varied.
| GenPart_pdgId | NanoAOD branch |
| GenPart_statusFlags | NanoAOD branch |
| GenPart_vects | Vector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector) |
| jet0 | |
| jet1 |
1.8.13