Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
Utils
interface
TMVAZipReader.h
Go to the documentation of this file.
1
/*
2
* =====================================================================================
3
*
4
* Filename: TMVAZipReader.h
5
*
6
* Description: A stupid function that initializes a TMVA Reader
7
* using a gzipped or non-zipped xml file.
8
*
9
* The file will be unzipped if it ends in .gz or .gzip
10
* It will be passed as normal if it ends in .xml
11
*
12
* This file is header-only.
13
*
14
* Usage: loadTMVAWeights(&myReader, "BDT", "path_to_file.xml.gz");
15
*
16
*
17
* Author: Evan Friis, evan.friis@cern.ch
18
* Company: UW Madison
19
*
20
* =====================================================================================
21
*/
22
23
#ifndef TMVAZIPREADER_7RXIGO70
24
#define TMVAZIPREADER_7RXIGO70
25
26
#include "TMVA/Reader.h"
27
#include <string>
28
29
namespace
reco
{
30
namespace
details {
31
32
bool
hasEnding
(
std::string
const
&fullString,
std::string
const
&ending);
33
char
*
readGzipFile
(
const
std::string
& weightFile);
34
35
void
loadTMVAWeights
(TMVA::Reader*
reader
,
const
std::string
&
method
,
36
const
std::string
& weightFile,
bool
verbose
=
false
);
37
38
39
}}
40
#endif
/* end of include guard: TMVAZIPREADER_7RXIGO70 */
reco::details::hasEnding
bool hasEnding(std::string const &fullString, std::string const &ending)
Definition:
TMVAZipReader.cc:12
verbose
Definition:
MagVerbosity.h:11
PFRecoTauDiscriminationAgainstElectronMVA3GBR_cfi.method
tuple method
Definition:
PFRecoTauDiscriminationAgainstElectronMVA3GBR_cfi.py:15
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
reco::details::readGzipFile
char * readGzipFile(const std::string &weightFile)
Definition:
TMVAZipReader.cc:21
matplotRender.reader
tuple reader
Definition:
matplotRender.py:819
reco::details::loadTMVAWeights
void loadTMVAWeights(TMVA::Reader *reader, const std::string &method, const std::string &weightFile, bool verbose=false)
Definition:
TMVAZipReader.cc:57
Generated for CMSSW Reference Manual by
1.8.5