TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
TopPt_weight.h
1 #ifndef _TIMBER_TOPPT_WEIGHT
2 #define _TIMBER_TOPPT_WEIGHT
3 #include "common.h"
4 #include <cmath>
5 #include <stdbool.h>
6 #include <ctime>
7 #include <vector>
8 #include <stdio.h>
9 
10 using namespace ROOT::VecOps;
11 
25 class TopPt_weight {
26  private:
27  std::vector<float> matchingGenPt(RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vects,
28  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1);
29 
30  public:
31  TopPt_weight(){};
32  ~TopPt_weight(){};
47  RVec<float> corr(RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vects,
48  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1);
64  RVec<float> alpha(
65  RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vects,
66  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale = 0.5);
82  RVec<float> beta(
83  RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vects,
84  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale = 0.5);
85 };
86 #endif
C++ class. Handles the top reweighting value for simulation based on doing gen particle matching...
Definition: TopPt_weight.h:25