1 #ifndef CommonTools_MVAUtils_GBRForestWriter_h 2 #define CommonTools_MVAUtils_GBRForestWriter_h 44 throw cms::Exception(
"GBRForestWriter") <<
" Undefined Configuration Parameter 'inputFileName !!\n";
46 if (inputFileType_string ==
"XML")
48 else if (inputFileType_string ==
"GBRForest")
52 <<
" Invalid Configuration Parameter 'inputFileType' = " << inputFileType_string <<
" !!\n";
76 if (cfg.
exists(
"categories")) {
78 for (edm::VParameterSet::const_iterator cfgCategory = cfgCategories.begin();
79 cfgCategory != cfgCategories.end(); ++cfgCategory) {
81 categories_.push_back(category);
85 categories_.push_back(category);
88 if (outputFileType_string ==
"GBRForest")
90 else if (outputFileType_string ==
"SQLLite")
91 outputFileType_ = kSQLLite;
94 <<
" Invalid Configuration Parameter 'outputFileType' = " << outputFileType_string <<
" !!\n";
98 if (outputFileType_ == kSQLLite) {
104 for (std::vector<categoryEntryType*>::iterator it = categories_.begin(); it != categories_.end(); ++it) {
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
categoryEntryType(const edm::ParameterSet &cfg)
std::vector< ParameterSet > VParameterSet
bool exists(std::string const ¶meterName) const
checks if a parameter exists
GBRForestWriter(const edm::ParameterSet &)
std::string gbrForestName_
std::vector< categoryEntryType * > categories_
vstring spectatorVariables_
std::string outputFileName_
~GBRForestWriter() override
std::string outputRecord_
jobEntryType(const edm::ParameterSet &cfg)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< jobEntryType * > jobs_
std::string fullPath() const
std::vector< std::string > vstring
std::string inputFileName_