Skip to content

Commit

Permalink
Adding Gen Match
Browse files Browse the repository at this point in the history
  • Loading branch information
fcostanz committed Nov 30, 2015
1 parent e1ae75d commit 37b9bca
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions NTupleMaker/interface/Spring15Tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public :
Float_t phi_1;
Float_t eta_1;
Float_t m_1;
Int_t gen_match_1;
Int_t q_1;
Float_t iso_1;
Float_t mva_1;
Expand All @@ -65,6 +66,7 @@ public :
Float_t phi_2;
Float_t eta_2;
Float_t m_2;
Int_t gen_match_2;
Int_t q_2;
Float_t iso_2;
Float_t d0_2;
Expand All @@ -76,6 +78,9 @@ public :
Int_t extraelec_veto;
Int_t extramuon_veto;
Float_t byCombinedIsolationDeltaBetaCorrRaw3Hits_1;
Float_t byLooseCombinedIsolationDeltaBetaCorr3Hits_1;
Float_t byMediumCombinedIsolationDeltaBetaCorr3Hits_1;
Float_t byTightCombinedIsolationDeltaBetaCorr3Hits_1;
Float_t againstElectronLooseMVA5_1;
Float_t againstElectronMediumMVA5_1;
Float_t againstElectronTightMVA5_1;
Expand All @@ -84,6 +89,9 @@ public :
Float_t againstMuonLoose3_1;
Float_t againstMuonTight3_1;
Float_t byCombinedIsolationDeltaBetaCorrRaw3Hits_2;
Float_t byLooseCombinedIsolationDeltaBetaCorr3Hits_2;
Float_t byMediumCombinedIsolationDeltaBetaCorr3Hits_2;
Float_t byTightCombinedIsolationDeltaBetaCorr3Hits_2;
Float_t againstElectronLooseMVA5_2;
Float_t againstElectronMediumMVA5_2;
Float_t againstElectronTightMVA5_2;
Expand Down Expand Up @@ -163,6 +171,7 @@ public :
TBranch *b_phi_1; //!
TBranch *b_eta_1; //!
TBranch *b_m_1; //!
TBranch *b_gen_match_1; //!
TBranch *b_q_1; //!
TBranch *b_iso_1; //!
TBranch *b_mva_1; //!
Expand All @@ -173,6 +182,7 @@ public :
TBranch *b_phi_2; //!
TBranch *b_eta_2; //!
TBranch *b_m_2; //!
TBranch *b_gen_match_2; //!
TBranch *b_q_2; //!
TBranch *b_iso_2; //!
TBranch *b_d0_2; //!
Expand All @@ -184,6 +194,9 @@ public :
TBranch *b_extraelec_veto; //!
TBranch *b_extramuon_veto; //!
TBranch *b_byCombinedIsolationDeltaBetaCorrRaw3Hits_1; //!
TBranch *b_byLooseCombinedIsolationDeltaBetaCorr3Hits_1; //!
TBranch *b_byMediumCombinedIsolationDeltaBetaCorr3Hits_1; //!
TBranch *b_byTightCombinedIsolationDeltaBetaCorr3Hits_1; //!
TBranch *b_againstElectronLooseMVA5_1; //!
TBranch *b_againstElectronMediumMVA5_1; //!
TBranch *b_againstElectronTightMVA5_1; //!
Expand All @@ -192,6 +205,9 @@ public :
TBranch *b_againstMuonLoose3_1; //!
TBranch *b_againstMuonTight3_1; //!
TBranch *b_byCombinedIsolationDeltaBetaCorrRaw3Hits_2; //!
TBranch *b_byLooseCombinedIsolationDeltaBetaCorr3Hits_2; //!
TBranch *b_byMediumCombinedIsolationDeltaBetaCorr3Hits_2; //!
TBranch *b_byTightCombinedIsolationDeltaBetaCorr3Hits_2; //!
TBranch *b_againstElectronLooseMVA5_2; //!
TBranch *b_againstElectronMediumMVA5_2; //!
TBranch *b_againstElectronTightMVA5_2; //!
Expand Down
16 changes: 16 additions & 0 deletions NTupleMaker/src/Spring15Tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void Spring15Tree::ReadInit(TTree *tree)
fChain->SetBranchAddress("phi_1", &phi_1, &b_phi_1);
fChain->SetBranchAddress("eta_1", &eta_1, &b_eta_1);
fChain->SetBranchAddress("m_1", &m_1, &b_m_1);
fChain->SetBranchAddress("gen_match_1", &gen_match_1, &b_gen_match_1);
fChain->SetBranchAddress("q_1", &q_1, &b_q_1);
fChain->SetBranchAddress("iso_1", &iso_1, &b_iso_1);
fChain->SetBranchAddress("mva_1", &mva_1, &b_mva_1);
Expand All @@ -95,6 +96,7 @@ void Spring15Tree::ReadInit(TTree *tree)
fChain->SetBranchAddress("phi_2", &phi_2, &b_phi_2);
fChain->SetBranchAddress("eta_2", &eta_2, &b_eta_2);
fChain->SetBranchAddress("m_2", &m_2, &b_m_2);
fChain->SetBranchAddress("gen_match_2", &gen_match_2, &b_gen_match_2);
fChain->SetBranchAddress("q_2", &q_2, &b_q_2);
fChain->SetBranchAddress("iso_2", &iso_2, &b_iso_2);
fChain->SetBranchAddress("d0_2", &d0_2, &b_d0_2);
Expand All @@ -106,6 +108,9 @@ void Spring15Tree::ReadInit(TTree *tree)
fChain->SetBranchAddress("extraelec_veto", &extraelec_veto, &b_extraelec_veto);
fChain->SetBranchAddress("extramuon_veto", &extramuon_veto, &b_extramuon_veto);
fChain->SetBranchAddress("byCombinedIsolationDeltaBetaCorrRaw3Hits_1", &byCombinedIsolationDeltaBetaCorrRaw3Hits_1, &b_byCombinedIsolationDeltaBetaCorrRaw3Hits_1);
fChain->SetBranchAddress("byLooseCombinedIsolationDeltaBetaCorr3Hits_1", &byLooseCombinedIsolationDeltaBetaCorr3Hits_1, &b_byLooseCombinedIsolationDeltaBetaCorr3Hits_1);
fChain->SetBranchAddress("byMediumCombinedIsolationDeltaBetaCorr3Hits_1", &byMediumCombinedIsolationDeltaBetaCorr3Hits_1, &b_byMediumCombinedIsolationDeltaBetaCorr3Hits_1);
fChain->SetBranchAddress("byTightCombinedIsolationDeltaBetaCorr3Hits_1", &byTightCombinedIsolationDeltaBetaCorr3Hits_1, &b_byTightCombinedIsolationDeltaBetaCorr3Hits_1);
fChain->SetBranchAddress("againstElectronLooseMVA5_1", &againstElectronLooseMVA5_1, &b_againstElectronLooseMVA5_1);
fChain->SetBranchAddress("againstElectronMediumMVA5_1", &againstElectronMediumMVA5_1, &b_againstElectronMediumMVA5_1);
fChain->SetBranchAddress("againstElectronTightMVA5_1", &againstElectronTightMVA5_1, &b_againstElectronTightMVA5_1);
Expand All @@ -114,6 +119,9 @@ void Spring15Tree::ReadInit(TTree *tree)
fChain->SetBranchAddress("againstMuonLoose3_1", &againstMuonLoose3_1, &b_againstMuonLoose3_1);
fChain->SetBranchAddress("againstMuonTight3_1", &againstMuonTight3_1, &b_againstMuonTight3_1);
fChain->SetBranchAddress("byCombinedIsolationDeltaBetaCorrRaw3Hits_2", &byCombinedIsolationDeltaBetaCorrRaw3Hits_2, &b_byCombinedIsolationDeltaBetaCorrRaw3Hits_2);
fChain->SetBranchAddress("byLooseCombinedIsolationDeltaBetaCorr3Hits_2", &byLooseCombinedIsolationDeltaBetaCorr3Hits_2, &b_byLooseCombinedIsolationDeltaBetaCorr3Hits_2);
fChain->SetBranchAddress("byMediumCombinedIsolationDeltaBetaCorr3Hits_2", &byMediumCombinedIsolationDeltaBetaCorr3Hits_2, &b_byMediumCombinedIsolationDeltaBetaCorr3Hits_2);
fChain->SetBranchAddress("byTightCombinedIsolationDeltaBetaCorr3Hits_2", &byTightCombinedIsolationDeltaBetaCorr3Hits_2, &b_byTightCombinedIsolationDeltaBetaCorr3Hits_2);
fChain->SetBranchAddress("againstElectronLooseMVA5_2", &againstElectronLooseMVA5_2, &b_againstElectronLooseMVA5_2);
fChain->SetBranchAddress("againstElectronMediumMVA5_2", &againstElectronMediumMVA5_2, &b_againstElectronMediumMVA5_2);
fChain->SetBranchAddress("againstElectronTightMVA5_2", &againstElectronTightMVA5_2, &b_againstElectronTightMVA5_2);
Expand Down Expand Up @@ -267,6 +275,7 @@ void Spring15Tree::WriteInit(TTree *tree) {
fChain->Branch("phi_1", &phi_1, "phi_1/F");
fChain->Branch("eta_1", &eta_1, "eta_1/F");
fChain->Branch("m_1", &m_1, "m_1/F");
fChain->Branch("gen_match_1", &gen_match_1, "gen_match_1/I");
fChain->Branch("q_1", &q_1, "q_1/I");
fChain->Branch("iso_1", &iso_1, "iso_1/F");
fChain->Branch("mva_1", &mva_1, "mva_1/F");
Expand All @@ -278,6 +287,7 @@ void Spring15Tree::WriteInit(TTree *tree) {
fChain->Branch("phi_2", &phi_2, "phi_2/F");
fChain->Branch("eta_2", &eta_2, "eta_2/F");
fChain->Branch("m_2", &m_2, "m_2/F");
fChain->Branch("gen_match_2", &gen_match_2, "gen_match_2/I");
fChain->Branch("q_2", &q_2, "q_2/I");
fChain->Branch("iso_2", &iso_2, "iso_2/F");
fChain->Branch("d0_2", &d0_2, "d0_2/F");
Expand All @@ -291,6 +301,9 @@ void Spring15Tree::WriteInit(TTree *tree) {
fChain->Branch("extramuon_veto", &extramuon_veto, "extramuon_veto/I");

fChain->Branch("byCombinedIsolationDeltaBetaCorrRaw3Hits_1", &byCombinedIsolationDeltaBetaCorrRaw3Hits_1, "byCombinedIsolationDeltaBetaCorrRaw3Hits_1/F");
fChain->Branch("byLooseCombinedIsolationDeltaBetaCorr3Hits_1", &byLooseCombinedIsolationDeltaBetaCorr3Hits_1, "byLooseCombinedIsolationDeltaBetaCorr3Hits_1/F");
fChain->Branch("byMediumCombinedIsolationDeltaBetaCorr3Hits_1", &byMediumCombinedIsolationDeltaBetaCorr3Hits_1, "byMediumCombinedIsolationDeltaBetaCorr3Hits_1/F");
fChain->Branch("byTightCombinedIsolationDeltaBetaCorr3Hits_1", &byTightCombinedIsolationDeltaBetaCorr3Hits_1, "byTightCombinedIsolationDeltaBetaCorr3Hits_1/F");
fChain->Branch("againstElectronLooseMVA5_1", &againstElectronLooseMVA5_1, "againstElectronLooseMVA5_1/F");
fChain->Branch("againstElectronMediumMVA5_1", &againstElectronMediumMVA5_1, "againstElectronMediumMVA5_1/F");
fChain->Branch("againstElectronTightMVA5_1", &againstElectronTightMVA5_1, "againstElectronTightMVA5_1/F");
Expand All @@ -300,6 +313,9 @@ void Spring15Tree::WriteInit(TTree *tree) {
fChain->Branch("againstMuonTight3_1", &againstMuonTight3_1, "againstMuonTight3_1/F");

fChain->Branch("byCombinedIsolationDeltaBetaCorrRaw3Hits_2", &byCombinedIsolationDeltaBetaCorrRaw3Hits_2, "byCombinedIsolationDeltaBetaCorrRaw3Hits_2/F");
fChain->Branch("byLooseCombinedIsolationDeltaBetaCorr3Hits_2", &byLooseCombinedIsolationDeltaBetaCorr3Hits_2, "byLooseCombinedIsolationDeltaBetaCorr3Hits_2/F");
fChain->Branch("byMediumCombinedIsolationDeltaBetaCorr3Hits_2", &byMediumCombinedIsolationDeltaBetaCorr3Hits_2, "byMediumCombinedIsolationDeltaBetaCorr3Hits_2/F");
fChain->Branch("byTightCombinedIsolationDeltaBetaCorr3Hits_2", &byTightCombinedIsolationDeltaBetaCorr3Hits_2, "byTightCombinedIsolationDeltaBetaCorr3Hits_2/F");
fChain->Branch("againstElectronLooseMVA5_2", &againstElectronLooseMVA5_2, "againstElectronLooseMVA5_2/F");
fChain->Branch("againstElectronMediumMVA5_2", &againstElectronMediumMVA5_2, "againstElectronMediumMVA5_2/F");
fChain->Branch("againstElectronTightMVA5_2", &againstElectronTightMVA5_2, "againstElectronTightMVA5_2/F");
Expand Down

0 comments on commit 37b9bca

Please sign in to comment.