Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CommonTools
MVAUtils
bin
convertXMLToGBRForestROOT.cc
Go to the documentation of this file.
1
#include "
CommonTools/MVAUtils/interface/GBRForestTools.h
"
2
3
#include "TFile.h"
4
5
#include <filesystem>
6
#include <iostream>
7
8
int
main
(
int
argc
,
char
**
argv
) {
9
if
(
argc
!= 3) {
10
std::cout
<<
"Please pass a (gzipped) BDT weight file and a name for the output ROOT file."
<< std::endl;
11
return
1;
12
}
13
14
char
*
inputFileName
=
argv
[1];
15
char
*
outputFileName
=
argv
[2];
16
17
if
(!std::filesystem::exists(
inputFileName
)) {
18
std::cout
<<
"Input file "
<<
inputFileName
<<
" does not exists."
<< std::endl;
19
return
1;
20
}
21
22
if
(std::filesystem::exists(
outputFileName
)) {
23
std::cout
<<
"Output file "
<<
outputFileName
<<
" already exists."
<< std::endl;
24
return
1;
25
}
26
27
auto
gbrForest =
createGBRForest
(
inputFileName
);
28
std::cout
<<
"Read GBRForest "
<<
inputFileName
<<
" successfully."
<< std::endl;
29
30
TFile{
outputFileName
,
"RECREATE"
}.WriteObject(gbrForest.get(),
"gbrForest"
);
31
std::cout
<<
"GBRForest written to "
<<
outputFileName
<<
" successfully."
<< std::endl;
32
33
return
0;
34
}
InefficientDoubleROC.inputFileName
inputFileName
Definition:
InefficientDoubleROC.py:437
reco_skim_cfg_mod.outputFileName
outputFileName
Definition:
reco_skim_cfg_mod.py:15
GBRForestTools.h
cmsBatch.argv
argv
Definition:
cmsBatch.py:279
main
int main(int argc, char **argv)
Definition:
convertXMLToGBRForestROOT.cc:8
dir2webdir.argc
argc
Definition:
dir2webdir.py:39
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
createGBRForest
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
Definition:
GBRForestTools.cc:266
Generated for CMSSW Reference Manual by
1.8.14