1 #ifndef RecoMET_METPUSubtraction_GBRForestWriter_h 2 #define RecoMET_METPUSubtraction_GBRForestWriter_h 46 <<
" Undefined Configuration Parameter 'inputFileName !!\n";
51 <<
" Invalid Configuration Parameter 'inputFileType' = " << inputFileType_string <<
" !!\n";
74 if ( cfg.
exists(
"categories") ) {
76 for ( edm::VParameterSet::const_iterator cfgCategory = cfgCategories.begin();
77 cfgCategory != cfgCategories.end(); ++cfgCategory ) {
79 categories_.push_back(category);
83 categories_.push_back(category);
86 if ( outputFileType_string ==
"GBRForest" ) outputFileType_ =
kGBRForest;
87 else if ( outputFileType_string ==
"SQLLite" ) outputFileType_ = kSQLLite;
89 <<
" Invalid Configuration Parameter 'outputFileType' = " << outputFileType_string <<
" !!\n";
93 if ( outputFileType_ == kSQLLite ) {
99 for ( std::vector<categoryEntryType*>::iterator it = categories_.begin();
100 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_