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 
21  public:
24  throw cms::Exception("InvalidInput") << "Must specify a string fileName" << std::endl;
25  }
28  file_(cfg.getParameterSet("fwliteOutput").getParameter<std::string>("fileName")) {};
30  std::string const & file() const { return file_; }
31 
32  protected:
35  };
36 }
37 
38 #endif
std::string file_
output file name
Definition: OutputFiles.h:34
ParameterSet const & getParameterSet(ParameterSetID const &id)
OutputFiles(const edm::ParameterSet &cfg)
default constructor from parameter set
Definition: OutputFiles.h:27
OutputFiles()
empty constructor
Definition: OutputFiles.h:23
std::string const & file() const
return output fuke name
Definition: OutputFiles.h:30