CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
7 
16 namespace fwlite {
17 
18  class OutputFiles {
19 
20  public:
23  throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl;
24  }
27  file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {};
29  std::string const & file() const { return file_; }
30 
31  protected:
33  std::string file_;
34  };
35 }
36 
37 #endif
std::string file_
output file name
Definition: OutputFiles.h:33
ParameterSet const & getParameterSet(ParameterSetID const &id)
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition: OutputFiles.h:26
OutputFiles()
empty constructor
Definition: OutputFiles.h:22
std::string const & file() const
return output fuke name
Definition: OutputFiles.h:29