CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/FWLite/interface/OutputFiles.h

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