Go to the documentation of this file.00001 #ifndef DataFormats_FWLite_interface_OutputFiles_h
00002 #define DataFormats_FWLite_interface_OutputFiles_h
00003
00004
00015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00016 #include <vector>
00017 #include <string>
00018
00019 namespace fwlite {
00020 class OutputFiles {
00021 public:
00022 OutputFiles() {
00023 throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl;
00024 }
00025 OutputFiles( edm::ParameterSet const & pset ) :
00026 file_( pset.getParameter<edm::ParameterSet>("fwliteOutput").getParameter<std::string>("fileName") )
00027 {
00028 }
00029
00030 std::string const & file() const { return file_; }
00031
00032 protected:
00033 std::string file_;
00034
00035 };
00036 }
00037
00038 #endif