TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Public Member Functions | List of all members
TopPt_weight Class Reference

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...
 

Detailed Description

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().

Member Function Documentation

◆ alpha()

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.

Parameters
GenPart_pdgIdNanoAOD branch
GenPart_statusFlagsNanoAOD branch
GenPart_vectsVector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector)
jet0
jet1
scalePercent variation on \(\alpha\) parameter.
Returns
RVec<float> {up, down} variations of the top \(p_T\) reweighting value divided by the nominal weight.

◆ beta()

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.

Parameters
GenPart_pdgIdNanoAOD branch
GenPart_statusFlagsNanoAOD branch
GenPart_vectsVector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector)
jet0
jet1
scalePercent variation on \(\beta\) parameter.
Returns
RVec<float> {up, down} variations of the top \(p_T\) reweighting value divided by the nominal weight.

◆ corr()

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.

Parameters
GenPart_pdgIdNanoAOD branch
GenPart_statusFlagsNanoAOD branch
GenPart_vectsVector of ROOT::Math::PtEtaPhiMVectors (create through hardware::TLvector)
jet0
jet1
Returns
RVec<float> Will only be length 1. Stored as vector to satisfy TIMBER Correction() requirements

The documentation for this class was generated from the following files: