10 |
|
#include <TROOT.h> |
11 |
|
#include <TChain.h> |
12 |
|
#include <TFile.h> |
13 |
+ |
#include <vector> |
14 |
+ |
|
15 |
+ |
using namespace std; |
16 |
|
|
17 |
|
class rootNtupleClass { |
18 |
|
public : |
80 |
|
Double_t VrtxChi2[25]; //[NVrtx] |
81 |
|
Double_t VrtxNtrks[25]; //[NVrtx] |
82 |
|
Double_t VrtxSumPt[25]; //[NVrtx] |
83 |
+ |
|
84 |
+ |
Int_t VrtxTrkIndex[25][400]; |
85 |
+ |
|
86 |
|
Int_t NGenLeptons; |
87 |
|
Int_t GenLeptonID[100]; //[NGenLeptons] |
88 |
|
Double_t GenLeptonPt[100]; //[NGenLeptons] |
595 |
|
TBranch *b_VrtxChi2; //! |
596 |
|
TBranch *b_VrtxNtrks; //! |
597 |
|
TBranch *b_VrtxSumPt; //! |
598 |
+ |
|
599 |
+ |
TBranch *b_VrtxTrkIndex; |
600 |
+ |
|
601 |
|
TBranch *b_NGenLeptons; //! |
602 |
|
TBranch *b_GenLeptonID; //! |
603 |
|
TBranch *b_GenLeptonPt; //! |
1195 |
|
fChain->SetBranchAddress("VrtxChi2", VrtxChi2, &b_VrtxChi2); |
1196 |
|
fChain->SetBranchAddress("VrtxNtrks", VrtxNtrks, &b_VrtxNtrks); |
1197 |
|
fChain->SetBranchAddress("VrtxSumPt", VrtxSumPt, &b_VrtxSumPt); |
1198 |
+ |
|
1199 |
+ |
fChain->SetBranchAddress("VrtxTrkIndex", VrtxTrkIndex, &b_VrtxTrkIndex); |
1200 |
+ |
|
1201 |
|
fChain->SetBranchAddress("NGenLeptons", &NGenLeptons, &b_NGenLeptons); |
1202 |
|
fChain->SetBranchAddress("GenLeptonID", &GenLeptonID, &b_GenLeptonID); |
1203 |
|
fChain->SetBranchAddress("GenLeptonPt", &GenLeptonPt, &b_GenLeptonPt); |