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 
23 class TopPt_weight {
24  private:
25  std::vector<float> matchingGenPt(RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vect,
26  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1);
27 
28  public:
33  TopPt_weight();
34  ~TopPt_weight(){};
51  RVec<float> eval(
52  RVec<int> GenPart_pdgId, RVec<int> GenPart_statusFlags, RVec<ROOT::Math::PtEtaPhiMVector> GenPart_vect,
53  ROOT::Math::PtEtaPhiMVector jet0, ROOT::Math::PtEtaPhiMVector jet1, float scale = 0.5);
54 };
55 #endif
C++ class. Handles the top reweighting value for simulation based on doing gen particle matching...
Definition: TopPt_weight.h:23