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 > eval (RVec< int > GenPart_pdgId, RVec< int > GenPart_statusFlags, RVec< ROOT::Math::PtEtaPhiMVector > GenPart_vect, ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale=0.5)
 Calculate the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. Additionally, 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\). There is no corresponding function for \(\alpha\) because the effect is only a flat normalization change. More...
 
 TopPt_weight ()
 Construct a new TopPt_weight object. No arguments.
 

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 eval() function to calculate the weight plus variations of the \(\beta\) parameter. The \(\alpha\) parameter is not varied since it would only represent a flat normalization change.

Member Function Documentation

◆ eval()

RVec< float > eval ( RVec< int >  GenPart_pdgId,
RVec< int >  GenPart_statusFlags,
RVec< ROOT::Math::PtEtaPhiMVector >  GenPart_vect,
ROOT::Math::PtEtaPhiMVector  jet0,
ROOT::Math::PtEtaPhiMVector  jet1,
float  scale = 0.5 
)

Calculate the top \(p_T\) reweighting value for \(t\bar{t}\) simulation based on doing gen particle matching. Additionally, 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\). There is no corresponding function for \(\alpha\) because the effect is only a flat normalization change.

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

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