Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifiy way to load TMVA weight file path and add TMVA weight files i… #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions analysis/bin/vtsAnalyser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ void vtsAnalyser::SetMVAReader() {
#define jetTMVABranch(name) TMVABranch_(m_jetReader,name);
#define jksTMVABranch(name) TMVABranch_(m_jksReader,name);

TString CMSSW_BASE = getenv("CMSSW_BASE");

m_hadReader = new TMVA::Reader();
hadTMVABranch(Ks_d); hadTMVABranch(Ks_pt); hadTMVABranch(Ks_eta); hadTMVABranch(Ks_phi);
hadTMVABranch(Ks_lxy); hadTMVABranch(Ks_lxySig);
Expand All @@ -521,7 +523,7 @@ void vtsAnalyser::SetMVAReader() {
hadTMVABranch(Ks_chi2); hadTMVABranch(Ks_dca);
hadTMVABranch(Ks_dau1_chi2); hadTMVABranch(Ks_dau1_ipsigXY); hadTMVABranch(Ks_dau1_ipsigZ); hadTMVABranch(Ks_dau1_pt);
hadTMVABranch(Ks_dau2_chi2); hadTMVABranch(Ks_dau2_ipsigXY); hadTMVABranch(Ks_dau2_ipsigZ); hadTMVABranch(Ks_dau2_pt);
m_hadReader->BookMVA("KS_BDT", "/cms/ldap_home/wjjang/wj_nanoAOD_CMSSW_9_4_4/src/nano/analysis/test/vts/tmva/dataset/Had/pp_real_vs_fake/weights/vts_dR_04_Had_BDT.weights.xml");
m_hadReader->BookMVA("KS_BDT", CMSSW_BASE+"/src/nano/analysis/test/vts/tmva/dataset/Had/pp_real_vs_fake/weights/vts_dR_04_Had_BDT.weights.xml");

m_jetReader = new TMVA::Reader();
jetTMVABranch(pt); jetTMVABranch(eta); jetTMVABranch(phi); jetTMVABranch(mass);
Expand All @@ -530,7 +532,7 @@ void vtsAnalyser::SetMVAReader() {
jetTMVABranch(cmult); jetTMVABranch(nmult);
jetTMVABranch(axis1); jetTMVABranch(axis2);
jetTMVABranch(ptD); jetTMVABranch(area); jetTMVABranch(CSVV2);
m_jetReader->BookMVA("Jet_BDT_highest", "/cms/ldap_home/wjjang/wj_nanoAOD_CMSSW_9_4_4/src/nano/analysis/test/vts/tmva/dataset/Jet/pp_combined_J_BDT_highest/weights/vts_dR_04_Jet_BDT.weights.xml");
m_jetReader->BookMVA("Jet_BDT_highest", CMSSW_BASE+"/src/nano/analysis/test/vts/tmva/dataset/Jet/pp_combined_J_BDT_highest/weights/vts_dR_04_Jet_BDT.weights.xml");

m_jksReader = new TMVA::Reader();
jksTMVABranch(pt); jksTMVABranch(eta); jksTMVABranch(phi); jksTMVABranch(mass);
Expand All @@ -550,7 +552,7 @@ void vtsAnalyser::SetMVAReader() {

jksTMVABranch(Ks_bdt_score);
jksTMVABranch(Ks_x);
m_jksReader->BookMVA("JKS_BDT_highest", "/cms/ldap_home/wjjang/wj_nanoAOD_CMSSW_9_4_4/src/nano/analysis/test/vts/tmva/dataset/JKS/pp_combined_JKS_BDT_highest/weights/vts_dR_04_Jet_BDT.weights.xml");
m_jksReader->BookMVA("JKS_BDT_highest", CMSSW_BASE+"/src/nano/analysis/test/vts/tmva/dataset/JKS/pp_combined_JKS_BDT_highest/weights/vts_dR_04_Jet_BDT.weights.xml");
}

void vtsAnalyser::ResetJetTree() {
Expand Down
26,754 changes: 26,754 additions & 0 deletions analysis/test/vts/tmva/dataset/Had/pp_real_vs_fake/weights/vts_dR_04_Had_BDT.class.C

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

27,782 changes: 27,782 additions & 0 deletions analysis/test/vts/tmva/dataset/all/all_highest/weights/vts_dR_04_Jet_BDT.class.C

Large diffs are not rendered by default.

13,330 changes: 13,330 additions & 0 deletions analysis/test/vts/tmva/dataset/all/all_highest/weights/vts_dR_04_Jet_BDT.weights.xml

Large diffs are not rendered by default.

23,940 changes: 23,940 additions & 0 deletions analysis/test/vts/tmva/dataset/all/all_highest/weights/vts_dR_04_Jet_BDTG.class.C

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.