CMS 3D CMS Logo

OutputFiles.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_interface_OutputFiles_h
2 #define DataFormats_FWLite_interface_OutputFiles_h
3 
4 #include <vector>
5 #include <string>
8 
17 namespace fwlite {
18 
19  class OutputFiles {
20  public:
22  OutputFiles() { throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl; }
25  : file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")){};
27  std::string const& file() const { return file_; }
28 
29  protected:
32  };
33 } // namespace fwlite
34 
35 #endif
std::string file_
output file name
Definition: OutputFiles.h:31
std::string const & file() const
return output fuke name
Definition: OutputFiles.h:27
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition: OutputFiles.h:24
ParameterSet const & getParameterSet(ParameterSetID const &id)
OutputFiles()
empty constructor
Definition: OutputFiles.h:22