File indexing completed on 2024-09-07 04:35:52
0001 #ifndef DataFormats_FWLite_interface_OutputFiles_h
0002 #define DataFormats_FWLite_interface_OutputFiles_h
0003
0004 #include <vector>
0005 #include <string>
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "FWCore/Utilities/interface/Exception.h"
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 namespace fwlite {
0018
0019 class OutputFiles {
0020 public:
0021
0022 OutputFiles() { throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl; }
0023
0024 OutputFiles(const edm::ParameterSet& cfg)
0025 : file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {}
0026
0027 std::string const& file() const { return file_; }
0028
0029 protected:
0030
0031 std::string file_;
0032 };
0033 }
0034
0035 #endif