ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/root/vars_are_identical.C
Revision: 1.2
Committed: Mon Apr 27 16:31:09 2009 UTC (16 years ago) by kukartse
Content type: text/plain
Branch: MAIN
CVS Tags: V00-03-01, ZMorph_BASE_20100408, gak040610_morphing, V00-02-02, gak011410, gak010310, ejterm2010_25nov2009, V00-02-01, V00-02-00, gak112409, CMSSW_22X_branch_base, segala101609, V00-01-15, V00-01-14, V00-01-13, HEAD
Branch point for: ZMorph-V00-03-01, CMSSW_22X_branch
Changes since 1.1: +4 -5 lines
Error occurred while calculating annotation data.
Log Message:
list of TMVA variables updated. BDT parameters updated

File Contents

# Content
1 #include "TTree.h"
2 #include "TCanvas.h"
3
4 bool is_identical(TTree * tree, std::string var1, std::string var2){
5 bool result = false;
6 std::string _res = var1;
7 _res.append("-");
8 _res.append(var2);
9 TCanvas * c = new TCanvas("canvas","canvas",800,600);
10 c->Divide(2,2);
11 c->cd(1);
12 tree->Draw(var1.c_str());
13 c->cd(2);
14 tree->Draw(var2.c_str());
15 c->cd(3);
16 tree->Draw(_res.c_str());
17 return result;
18 }