/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/FWLite/interface/OutputFiles.h
35 строк
1 KB
Shahzad Malik Muzaffar
[CORE] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:11
05 сен 2024, 17:11
c249daf
Код
Авторство
О чём код?
#ifndef DataFormats_FWLite_interface_OutputFiles_h #define DataFormats_FWLite_interface_OutputFiles_h #include <vector> #include <string> #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Utilities/interface/Exception.h" /** \class OutputFiles OutputFiles.h "DataFormats/FWLite/interface/OutputFiles.h" \brief Helper class to handle FWLite file output names This is a very simple class to handle the appropriate python configuration of output files in FWLite. */ namespace fwlite { class OutputFiles { public: /// empty constructor OutputFiles() { throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl; } /// default constructor from parameter set OutputFiles(const edm::ParameterSet& cfg) : file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {} /// return output fuke name std::string const& file() const { return file_; } protected: /// output file name std::string file_; }; } // namespace fwlite #endif